Click to See Complete Forum and Search --> : C/C++ Compiler question


misled
06-19-2002, 10:21 PM
<Newbie to Linux> - What (if any) C/C++ compilers come with Linux? Do other compilers like Borland for example run in Linux? If so are there any others?
-Thanks

scanez
06-19-2002, 10:23 PM
c compiler == gcc
c++ compiler == g++

really, with these two, you don't need any other c/c++ compiler ;)

Elijah
06-20-2002, 01:29 AM
I'm used to using bloodshed c++ and pressing the compile then build button is the way to go.. it creates some files and executable files

does gcc and g++ do the same?

scanez
06-20-2002, 03:00 AM
Originally posted by Elijah:
<STRONG>I'm used to using bloodshed c++ and pressing the compile then build button is the way to go.. it creates some files and executable files

does gcc and g++ do the same?</STRONG>
I assume you mean creating object (.o) files first then the executable? yes, gcc and g++ can do that easily :)

man gcc
man g++

Wolff
06-20-2002, 06:24 AM
To compile programms in linux you just use the c++/gcc commands, but when it comes to editing you actually have some Borland "copies" personally I like Anjuta or KDevelop best, but you can also use vimrc, which has highlighting to.

Note though there are differences in C++ for linux and windows. Not many, but they are there.

Also note that you don`t get .exe files in linux, but you get the a.out, basically the same.

There are also lots of good books on C/C++ programming in linux and learning how to use gcc is easy