Re: C++ errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxx
D-94030 Passau            | WWW          : http://www.lyxx.de/card


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux