Eric Petit disse: > On Mon, Mar 22, 2004, Andre Stark wrote: >> i think this is al little offtopic, but as i am in my first steps in >> Beos programming i think iwill find help here :-) >> If i do a compile like "g++ pgm1.cpp pgm2.cpp pgm3.cpp" all works >> well, if i do the same with "gcc pgm1.cpp pgm2.cpp pgm3.cpp" there are >> many linker errors. >> The same problem occurs when i try to use jam, only for expierience. >> My jam-file then looks like this >> "Main kap6 : kap6.cpp Student_info.cpp grade.cpp median.cpp ; " and >> behaves same like gcc. >> What is the difference between gcc and g++ and how can i tell jam >> which of them to use? > > g++ automatically links to libstdc++, which is needed for C++ > applications. About jam, try something like: > LINK = g++ ; > Main test : test.cpp ; Or he can just add -lstdc++.r4 to the compile line. -Bruno