Florian Zschocke wrote:
> Cortex wrote:
>>
>> OK. I search for the command to link statically to a particular lib,
>> but I didn't find it. Do you know it ?
>
> You can check the Admin Mod Makefile for more info, but in essecne it
> boilds down to this:
>
> STDCPPLIB=/usr/lib/libstdc++-libc6.2-2.a.3
> SHLIBLDFLAGS=-shared -nodefaultlibs -lc -lgcc
>
> $(TARGET) : $(OBJS)
>     $(CXX) $(CFLAGS) -o $@ $(OBJS) $(STDCPPLIB) $(LDFLAGS)
> $(SHLIBLDFLAGS)
>
> or
>
> g++ [other flags...] -o library.so [objects...]
> /usr/lib/libstdc++-libc6.2-2.a.3 [other libs like -ldl -lm] -shared
> -nodefaultlibs -lc -lgcc

I tried that, but it doesn't work either :(

I think my problem comes from the fact I use _snprintf and some STL... When
I put the "-static" option instead of "-shared" and when I compile with
egcc, it doesn't find these symbols...

So, how could I link statically to libstdc++ so that the .so "contains" the
libstdc++[bla].so ?

Michaël "Cortex" Monerau.
cort at meloo dot com
== C++ power ! ==


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to