Cortex wrote: > > I tried that, but it doesn't work either :(
Which part of it doesn't work? > I think my problem comes from the fact I use _snprintf and some STL... What is _snprintf? Usually that _something is M$ stuff (like _strnicmp(). God knows why they have to prefix them with an underscore). Using STL should be no problem, we use deques from the STL in Admin Mod and can link with libstd++ fine. > When > I put the "-static" option instead of "-shared" and when I compile with > egcc, it doesn't find these symbols... Uhm, you don't want to use -static. YOu want to produce a dynamic shared object, a .so, so you will need to link with -shared which tell the linker that you want a DSO created. > So, how could I link statically to libstdc++ so that the .so "contains" the > libstdc++[bla].so ? You cannot. The libstdc++[bla].so is just that, a DSO. You cannot link statically against a DSO. If you want to link statically against a library you need to use the static version of the library, the archive. You need to link against libstdc++[bla].a <-- Florian. -- Want to produce professional emails and Usenet postings? http://www.netmeister.org/news/learn2quote.html _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

