C++ errors

Benjamin Duehring fedora at lyxx.de
Wed Jul 13 21:46:20 UTC 2005


On Wednesday 13 July 2005 23:04, Archana Naik wrote:
> Hi, All
> 
> I am new to linux and trying to compile my program. I
> get these basic C++ errors.
> 
> **************************************************
> /usr/include/c++/3.2.3/cstring:79: `memcpy' not
> declared
> /usr/include/c++/3.2.3/cstring:80: `memmove' not
> declared
> /usr/include/c++/3.2.3/cstring:81: `strcpy' not
> declared
...

memcpy, memmove, strcpy are all standard c++ functions. Normally your compiler should link to the standard c++ library automatically.
If your call was 'g++ helloworld.cpp -o helloworld' try this : 'g++ helloworld.cpp -lstdc++ -o helloworld'
Does it change anything ? (This tells the compiler to link to the c++ standard library, normally not needed)

__________________________
Benjamin Duehring, FORWISS|
Universitaet Passau       | Priv. e-mail : duehring at forwiss.uni-passau.de
D-94030 Passau            | WWW          : http://www.lyxx.de/card




More information about the fedora-list mailing list