This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]