Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Redhat-7.2, VectorLinux-5.0 Standard
Posts: 46
Rep:
g++??
hi guys,
I am trying to install GloMoSim onto my linux Redhat-7.2 (Enigma) machine. I am using 2.4.30 kernel. Unfortunately it was unsuccessful because of my linux didn't recognize g++ command. Is it different between gcc and g++? Where can i get g++ source code? Any ideas guys?
Location: Student of University of Mumbai, Maharastra State, India
Distribution: Redhat Linux 9.0, Knoppix LIVE CD, Ubuntu Live CD, Kubuntu Live CD
Posts: 483
Rep:
In short, g++ is a compiler for CPLUS PLUS, and AFIK, gcc compiler is capable of compiling C and C++ programs. I dont know the core difference.
The following link gives you the details from where you could download, read documents, etc....
If you want to be super technical about it, g++ is really just a wrapper for gcc.
"g++" is equivelent to "gcc -lstdc++". gcc can and will automatically detect the code you have is C++ code, but without linking in the libstdc++ library you can't use the base C++ functionality (like the string header for instance). The "g++" executable just automatically includes libstdc++ so you don't have to type out the -lstdc++ part each time.
That being said... I've definitely coded c++ in embedded environments where you have to use gcc and not c++ because you have to use a special cut down version of libstdc++ so you don't want your compiler to automatically link the full version in.
Eitherway... you probably need to install the gcc-g++ package or the stdc++ package for your distribution.
Distribution: Redhat-7.2, VectorLinux-5.0 Standard
Posts: 46
Original Poster
Rep:
hi guys,
i've already solved my problem.. I've found "gcc-g++" rpm package in my disc 2 redhat-7.2 installation cd. Now I am successfully run mu GloMoSim. Thanks guys....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.