This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Linux C++ Help
- From: "Jayanta Narayan Choudhuri" <sss at cal dot vsnl dot net dot in>
- To: "'Andrea 'fwyzard' Bocci'" <fwyzard at inwind dot it>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Sat, 7 Dec 2002 03:36:54 +0530
- Subject: RE: Linux C++ Help
Title: Message
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>
}
Attachment:
jnctest.cpp
Description: Text document
Attachment:
comp.txt
Description: Text document