ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
I'm trying to learn c++. I've wrote a small little "Hello Worl" and I'm trying to compile it. I've used the commands "c++" and "g++" but they both say they don't exist.
I can use the command "cpp -o test cpp.cpp" and it tells me
cpp.cpp:4:20: iostream: No such file or directory
cpp.cpp:10:1: warning: no newline at end of file
I wrote the code in kwrite, and it is as follows.
//C++ Program
//Writen by:Michael
#include <iostream.h>
int main()
{
cout << "Hello World"\n<<;
return 0;
}
I just recently switched to mandrake from fedora 2, and I could make it work fine in Fedora, but it doesn't want to cooperate now. Please help.
gcc-g++ is on your installation disks so you can install it using the software module in the Mandriva Control Center. You don't use cpp, you use gcc or g++ to compile you apps.
GCC and GCC-C++ are on the Mandriva installation discs. You need to install your packages using the Mandriva Control Center's software module i.e. Kmenu -> System -> Configuration -> Configure Your Computer. Enter roots password when prompted, then go to Look at Installable Software and Install Software. Search for gcc and a list of gcc related packages will be shown. Tick those you wish to install and insert your installation disc when prompted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.