Linux C++ Help

Jayanta Narayan Choudhuri sss@cal.vsnl.net.in
Fri Dec 6 14:06:00 GMT 2002


Dear Andrea
 
Thanks for your great help and suggestions. I have Red Hat 7.2 .
 
After your suggestion I included <string.h> and ultimately wrote the
small test program "jnctest.cpp" and got it to work. Apparently the
<string.h> should be before <string> as I experienced.
 
uname -a
Linux sss.sssdom 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown
 
ldd x.exe
        libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2
(0x40032000)
        libm.so.6 => /lib/libm.so.6 (0x40074000)
        libc.so.6 => /lib/libc.so.6 (0x40097000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
 
comp.txt -- the output of g++ -v is attached.
  _____  

Once this little program worked I was able to link my main STL project
almost immediately and it produced perfect results.
 
Thanks a LOT for your tip.
Regards & Best Wishes
-jnc
 
PS. I will mechanically include always, right in the beginning, with g++
 
extern "C" {
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdarg.h>
#include <time.h>
#include <ctype.h>
#include <string.h>
#include <sys/types.h>
#include <sys/timeb.h>
#include <pthread.h>
}
 
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20021206/8b9acf99/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jnctest.cpp
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20021206/8b9acf99/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: comp.txt
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20021206/8b9acf99/attachment-0001.txt>


More information about the Gcc-help mailing list