Game Development Community

Linux Compilers

by Robert Stewart · in Technical Issues · 06/20/2005 (8:12 pm) · 6 replies

Ok so I was wondering what compilers are recommended? Also anyone use KDE 3.2? I cant seem to get it to work with torque..

#1
06/20/2005 (9:07 pm)
GNU C (aka gcc or g++) is the standard compiler for Linux and most unixes nowadays. You can also get commercial compilers for linux that are more optimized for x86 architecture. But gcc is pretty robust and it's free.

KDE is a window manager / desktop manager and really has nothing to do with compilers afaik.
#2
06/20/2005 (9:27 pm)
Alex is right, KDE doesn't have anything to do with compiliers, but maybe you're
looking for linux IDE's instead of compilers (VIsual C++ on Win32 for example does both,
it's an IDE with a compilier)

Here's some options:

"Kdevelop" which is a KDE-based application is pretty nice and Visual C++-like (maybe what
your were thinking of when you mentioned KDE)

"Eclipse" is slick & powerful and has C/C++ support you can install into it, although I ran
into performance issues with the size of torque's tag libraries (may have been a a configuration
issue on my part or the fact that the C++ stuff is still in development)

"Anjuta" is a nice fairly simple IDE which I like a lot but it had problems with projects as big
as torque (as far as I remember).

All of the above use GCC to actually do the compiling and are just pretty front ends.

It bit the bullet a while back and bought a copy of Slickedit which I loved from my
working-for-the-man days, but it's kinda expensive (~$290)
#3
06/20/2005 (9:33 pm)
Slickedit is a *really nice* program!

On the other hand if you really want to get hardcode Unix geeky you could use Emacs. But though you might get distracted by learning Lisp instead of writing games ;-)
#4
06/20/2005 (9:37 pm)
Pascal, you may like some of the changes in Eclipse 3.1 then as scalability was a big focus for it. I don't think that CDT has seen the same focus for its upcoming release, but if the problem was in the underlying stuff, hopefully it is better now.

Alex, on the other hand, you could start using Lisp to write your games. :) www.ptarmigangames.com/malcontent/ has been chronicling one man's effort in that area.

Robert, I don't use Torque, but depending on which game project I'm working on, it builds with gcc 3.0, 3.3, 3.4 and 4.0 under Linux. I'd probably suggest sticking with 3.3 or 3.4 for now based on some reports about early 4.0 difficulties.
#5
06/21/2005 (3:46 pm)
Yea your right in this presumption Alex [qoute]"Kdevelop" ... (maybe what
your were thinking of when you mentioned KDE)[qoute]. Thanks everyone, does anyone have experience setting up Kdevelop in Fedora Core 4 to work with Torque? or even Eclipse? I have never programmed on Linux yet so I need a little help setting some stuff up. Searching probrally awnsers my eclipse question, but not so for Kdevelop.
#6
06/23/2005 (3:45 pm)
Ok this is all I get with KDevelop, I have a make with gcc3 and linux settings.
cd '/opt/RTSKit/engine' && gmake -k -j1 
--> Compiling audio/audio.cc
'-mcpu=' is deprecated. Use '-mtune=' or '-march=' instead.
./core/resManager.h: In member function 'void Resource<T>::unlock()':
./core/resManager.h:255: error: invalid use of undefined type 'struct ResManager'
./core/resManager.h:38: error: forward declaration of 'struct ResManager'
./core/resManager.h: In member function 'void Resource<T>::purge()':