you can mix them all you like :) By "static library" I am refering to
the .a files (archives) that most libraries (such as the stdc++ one)
contain. These .a files are simply library versions of the dynamic
shared library (kinda like the .lib vs .dll differences under windows).
When linking with gcc you can mix dynamic (-lm for example) with static
(libstdc++.a) files without a problem :)
What you can't do is "-static" to gcc, as this will statically link all
libraries (shared or not) into the binary. You generally don't want to
do this as dynamically linking in glibc causes compatability problems on
various linux distro's (running a statically linked glibc2.0 binary on a
glibc2.2 machine won't work for some functions).

Martin Webrant wrote:

Didn't think you could mix shared and static linked libraries... but I'm not
one of those GCC/Linux experts :-)
I had loads of trouble with it so I cut a few things out and only use a STL
version with headerfiles.

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 04, 2003 11:39 PM
Subject: Re: [hlcoders] STL with HL SDK



Alfred, Botman, and Cortex,

Thanks for the info!

Alfred wrote:


Just make sure to statically link the libstc++ library (look in
/usr/lib/gcc-lib for a file called libstc++<something>.a and add that to
the linking stage of the linux binary).
For windows, shouldn't be a problem :)

botman wrote:


I have not tried this, but does anyone know if there are any issues
with
using the Standard Template Library with the HL SDK?



I think other people have had success using STL within the Half-Life SDK.

It seems to give a little more trouble for Linux newbies trying to
get the
proper static/dynamic libraries linked in correctly (issues using gcc
verses
g++, etc.), but I'm sure you won't have any trouble with that.  :)

Jeffrey "botman" Broome

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


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





_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives,

please visit:


http://list.valvesoftware.com/mailman/listinfo/hlcoders






--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.496 / Virus Database: 295 - Release Date: 2003-07-03

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

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



Reply via email to