[opensuse] gcc-cpp?
Hi, a few weeks ago I was advised to add gcc-cpp to my installed programs if I wished to compile programs on linux. I looked through the software management and can't find that program. Does it masquerade under another name? Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Look for g++ You should be able to compile cpp programs with gcc also, but you must have libstdc++ installed and use the switch -lstdc++ for linking. On Wednesday 14 May 2008 20:43:31 Mark Misulich wrote:
Hi, a few weeks ago I was advised to add gcc-cpp to my installed programs if I wished to compile programs on linux. I looked through the software management and can't find that program. Does it masquerade under another name?
Mark
-- Bogdan Cristea -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bogdan Cristea wrote:
Look for g++
You should be able to compile cpp programs with gcc also, but you must have libstdc++ installed and use the switch -lstdc++ for linking.
On Wednesday 14 May 2008 20:43:31 Mark Misulich wrote:
Hi, a few weeks ago I was advised to add gcc-cpp to my installed programs if I wished to compile programs on linux. I looked through the software management and can't find that program. Does it masquerade under another name?
Mark
cpp has nothing to do with C++ (at least not directly), it's the GNU preprocessor and comes in its own RPM package called cpp. $> which cpp /usr/bin/cpp $> rpm -qf /usr/bin/cpp cpp-4.2-24 $> rpm -qfi /usr/bin/cpp | grep Summary Summary : The system GNU Preprocessor If you are looking for the C++ compiler (called g++), then you should follow Bogdan's advice and install the gcc-c++ RPM (plus dependencies). The basic RPM package for the GNU compiler collection is called gcc. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Thomas Hertweck wrote:
Bogdan Cristea wrote:
Look for g++
You should be able to compile cpp programs with gcc also, but you must have libstdc++ installed and use the switch -lstdc++ for linking.
On Wednesday 14 May 2008 20:43:31 Mark Misulich wrote:
Hi, a few weeks ago I was advised to add gcc-cpp to my installed programs if I wished to compile programs on linux. I looked through the software management and can't find that program. Does it masquerade under another name?
Mark
cpp has nothing to do with C++ (at least not directly), it's the GNU preprocessor and comes in its own RPM package called cpp.
$> which cpp /usr/bin/cpp $> rpm -qf /usr/bin/cpp cpp-4.2-24 $> rpm -qfi /usr/bin/cpp | grep Summary Summary : The system GNU Preprocessor
If you are looking for the C++ compiler (called g++), then you should follow Bogdan's advice and install the gcc-c++ RPM (plus dependencies). The basic RPM package for the GNU compiler collection is called gcc.
Allright, I guess that is as clear as it will get. They are both installed, and my bash readout for cpp is the same as yours above. Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bogdan Cristea wrote:
Look for g++
You should be able to compile cpp programs with gcc also, but you must have libstdc++ installed and use the switch -lstdc++ for linking.
On Wednesday 14 May 2008 20:43:31 Mark Misulich wrote:
Hi, a few weeks ago I was advised to add gcc-cpp to my installed programs if I wished to compile programs on linux. I looked through the software management and can't find that program. Does it masquerade under another name?
Mark
Hi, I can't find g++, do you mean gcc-c++? I do have gcc-c++ installed. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 14 May 08, Bogdan Cristea wrote:
Look for g++
You should be able to compile cpp programs with gcc also, but you must have libstdc++ installed and use the switch -lstdc++ for linking.
Please stop top-posting. You've been guided to the rules for this mailing list. -- The Second Amendment is in place in case the politicians ignore the others. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mark Misulich escribió:
Hi, a few weeks ago I was advised to add gcc-cpp to my installed programs if I wished to compile programs on linux. I looked through the software management and can't find that program. Does it masquerade under another name?
You have to install gcc-c++ package. -- "Progress is possible only if we train ourselves to think about programs without thinking of them as pieces of executable code.” - Edsger W. Dijkstra Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
On Wed, 14 May 2008 13:43:31 -0400, Mark Misulich wrote:
a few weeks ago I was advised to add gcc-cpp to my installed programs if I wished to compile programs on linux.
If you want to compile programs, the package you need depends on the programming language: C : gcc C++ : gcc-c++ Fortran : gcc-fortran Objective C : gcc-objc Objective C++ : gcc-obj-c++ Ada : gcc-ada If you install one of these packages with yast2, zypper, smart etc. these will pull in all other needed packages (eg. gcc42-c++ and libstdc++ for gcc-c++). If you use rpm directly, you'll have to manually install all needed packages. As the GNU compiler collection only produces assembler code, you also need the binutils package that contains (among other) the assembler as and the linker ld. Typically you also need a host of other tools and librabies so the easiest way is to select one of the 'software development' schemes in YaST2. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Bogdan Cristea
-
Cristian Rodríguez
-
JB2
-
Mark Misulich
-
Philipp Thomas
-
Thomas Hertweck