Sponsored Content
Full Discussion: Error in compiling .cpp file
Top Forums UNIX for Dummies Questions & Answers Error in compiling .cpp file Post 302947817 by jim mcnamara on Monday 22nd of June 2015 04:39:30 PM
Old 06-22-2015
You need cstdlib - the header where those functions are defined.

Last edited by jim mcnamara; 06-22-2015 at 05:40 PM.. Reason: I cannot type
 

9 More Discussions You Might Find Interesting

1. Programming

Compiling multiple cpp files (abstract factory pattern)

Hi all, I have been working with java for awhile and because of my school projects I needed to switch C++. I tried to implement some patterns in C++ but unfortunately I couldn't. Specifically, I tried to implement abstract factory pattern but since I used separated files (habitual behavior from... (4 Replies)
Discussion started by: SaTYR
4 Replies

2. Shell Programming and Scripting

If file = .cpp then print?

I'm trying to develop a script that makes it so only .cpp programs can print. I'm doing it for my computer programming class because everyone keeps printing the executable instead of the source code and it's wasting a lot of paper. How can I accomplish this? Thanks for the help. :D (5 Replies)
Discussion started by: Irish_Cereal
5 Replies

3. AIX

[AIX] usages of lint for .cpp file?

Hi , I Want to apply AIX lint to my source code which all are *.cpp/*.h >lint test.cpp lint: 1286-332 File test.cpp must have a .c, .C or .ln extension. It is ignored. lint: 1286-334 There are no files to process. I am getting above error. -Ashok (3 Replies)
Discussion started by: ashokd001
3 Replies

4. Shell Programming and Scripting

reading a cpp file

I need to find all the methods in a cpp file ... using shell script Pls guide me regarding the grep criteria for searching methods I mean what are the patterns to be grepped in *.cpp which match methods Hope i have made myself clear Thanks and Regards -- Ultimatix (2 Replies)
Discussion started by: ultimatix
2 Replies

5. Shell Programming and Scripting

want to find out a function name in a cpp file

I have an error in my logs as it shows some function name . 1. I dnt know where is the file.cpp located only i know the machine . 2. How to find out that the function name is loacated in which path and which file into that machine. Thanks . (1 Reply)
Discussion started by: madfox
1 Replies

6. Emergency UNIX and Linux Support

Functions defined in header / cpp file behaves different

File: A.h class A { public: struct x X; int show() { x.member_variable ? 0: -1; } }; Now if A.cpp is complied which includes A.h (which is actually in a huge project space) we see that x.member_variable value is not as expected. But if remove the show() method and place... (4 Replies)
Discussion started by: uunniixx
4 Replies

7. Web Development

<Apache>error when compiling CPP modules

Hi, I am working on Linux Platform. I am just trying to port a CPP module to apache as a module. When I try to build the Apache , it throws an error as follows libtool: unrecognized option `-DLINUX=2' Later I did some search and changed the config_vars.mk file under the "build" directory of... (0 Replies)
Discussion started by: ashabb
0 Replies

8. Shell Programming and Scripting

Calling a function in cpp file inside shell script

Hi I need to call a function written in a cpp file with arguments inside the shell script..Can anyone help me how to do this:( (1 Reply)
Discussion started by: rkrish
1 Replies

9. Programming

Error with shared lIBMpi.so.1 when compiling CPP program

Hello, Met a problem when compiling a C++ program from source code without error, but when ran it there was always an error message: ./Ray: error while loading shared libraries: libmpi_cxx.so.1: cannot open shared object file: No such file or directoryAs the error points to openmpi which was... (0 Replies)
Discussion started by: yifangt
0 Replies
ost::CRC32Digest(3)					     Library Functions Manual					       ost::CRC32Digest(3)

NAME
ost::CRC32Digest - A crc32 collection/computation hash accumulator class. SYNOPSIS
#include <digest.h> Inherits ost::Digest. Public Member Functions CRC32Digest () CRC32Digest (const CRC32Digest &crc) void initDigest (void) unsigned getSize (void) operator const uint32 () const uint32 getDigest (void) unsigned getDigest (unsigned char *buffer) void putDigest (const unsigned char *buffer, unsigned length) CRC32Digest & operator= (const CRC32Digest &right) Protected Member Functions unsigned char overflow (unsigned char octet) std::ostream & strDigest (std::ostream &os) Detailed Description A crc32 collection/computation hash accumulator class. Author: Kevin Kraatz kraatz@arlut.utexas.edu crc32 computation hash. Examples: crc32.cpp. Constructor &; Destructor Documentation ost::CRC32Digest::CRC32Digest () ost::CRC32Digest::CRC32Digest (const CRC32Digest &crc) Member Function Documentation uint32 ost::CRC32Digest::getDigest (void) [inline] Examples: crc32.cpp. unsigned ost::CRC32Digest::getDigest (unsigned char *buffer) [virtual] Implements ost::Digest. unsigned ost::CRC32Digest::getSize (void) [inline], [virtual] Implements ost::Digest. void ost::CRC32Digest::initDigest (void) [virtual] Implements ost::Digest. ost::CRC32Digest::operator const uint32 () const [inline] CRC32Digest& ost::CRC32Digest::operator= (const CRC32Digest &right) unsigned char ost::CRC32Digest::overflow (unsigned charoctet) [protected] void ost::CRC32Digest::putDigest (const unsigned char *buffer, unsignedlength) [virtual] Implements ost::Digest. Examples: crc32.cpp. std::ostream& ost::CRC32Digest::strDigest (std::ostream &os) [protected], [virtual] Implements ost::Digest. Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::CRC32Digest(3)
All times are GMT -4. The time now is 02:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy