Are you sure?

$ strings ./srcds_i686 | grep GNU
GCC: (GNU) 3.2.3
GCC: (GNU) 3.4.1
GNU AS 2.14.90.0.2
GNU C 3.2.3
GNU C++ 3.4.1
GNU C 3.4.1

(Duplicate lines removed. Basically same output for srcds_i486 and
bin/tier0_s_i486.so.)

Maybe you should check with the people responsible for the build...
unless you're the one and something slipped your attention. In any case,
thanks for unknowingly going with the newer ABI. ;-) Now let's hope GNU
doesn't "revolutionize" it with 4.2 and 4.3...

Any serious mod/plugin makers with Linux binaries here: which GCC/G++
version do you use?

~~ Ondra

Alfred Reynolds wrote:
We are using GCC 3.3 and have no upgrade plans at the moment (upgrading would 
break all existing mods so it would be a rare event if it ever happens).

- Alfred

Ondrej Hošek wrote:

(Transplanted from [hlds_linux]...)

Actually, GCC 3.4 and 4.x have the same ABI. The big change happened
3.3 -> 3.4. I don't know what Valve compiled their current engine
versions
with (please tell), but is there a plan to move to one of these
versions (3.4, 4.0, 4.1)? What would the timeframe be?

You may wish to read about the ABIs at
http://gcc.gnu.org/onlinedocs/libstdc++/abi.html. It's the major
version (first number) of libstdc++.so that matters. Since GCC 3.4
(versions of
4.2 and 4.3 are not known yet), they're at major 6.

Oh... and here's a tip: DON'T add "-Wall -Werror -pedantic" to and
remove "-fpermissive" from the CCFLAGS. g++ will hate you. ;-)

~~ Ondra

Alfred Reynolds wrote:

This question is better asked on the hlcoders list (subscribe via
http://list.valvesoftware.com).  The reason you need to do it is
because the Source engine is compiled with GCC 3.x and GCC 4.x
binaries aren't binary compatible for the C++ ABI.

- Alfred

Dave Dodd wrote:


Hi,

Can someone either point me towards discussion of why the linux_sdk
need to be compiled under GCC 3.?.?   I am trying to resolve a
problem with my Battlegrounds 2 server and I don't want to downgrade
my compiler from 4.1.1 .  I was able to compile a server under 4.1.1
by simply tweaking two source files lightglow.cpp & mathlib.cpp

Anyone ?

-- Dave



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

Reply via email to