Results 1 to 10 of 24
hello everyone
i have done c++ programming in windows but now i need to perform c++ programming on Linux.
so can u please tell me how can i get started ...
- 06-01-2008 #1
c++ in linux
hello everyone
i have done c++ programming in windows but now i need to perform c++ programming on Linux.
so can u please tell me how can i get started with this means wt compiler should i use and other stuff needed to compile c++ code
thanks
- 06-01-2008 #2
hi,
you can use g++ of the gcc package. below is the gcc page
gccLinux and me it's a love story
- 06-01-2008 #3
gcc is available in Installation Media. Open Yast and search for gcc. Select and install it.
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 06-01-2008 #4
If you need an IDE, try KDevelop if you use KDE and Anjuta or Geany if you use GNOME.
- 06-07-2008 #5
ok thanks for reply
but how can i know that my system has compiler for c++.
i have opensuse10.3 !!!
do this contain c++ compiler or i have to download it from internet.
plz tell me how to compile a very basic program with c++ compiler on linux,this will help me alot!!!
thanks!!
- 06-07-2008 #6
You can check by doing
If gcc-c++ is not listed in the results, then you do not have the compiler installed. The easiest way to install it would be to go to YAST -> Software -> Software repositories, enable the main oss repository and then run YAST -> Software -> Software Management, search for gcc and then choose the packages you wish to install. If you have the DVD you can skip the first step and go straight to searching for gcc in YAST -> Software -> Software Management and installing it.Code:$rpm -qa | grep -i gcc
- 06-07-2008 #7
Look in Yast-Software-Software Management for the gcc compiler.
If you installed from a DVD the compiler should be on it. If not you can install via the opensuse repository. It is not installed by default.
Once installed you at a konsole prompt type
info gcc
for all the options.
You must crawl before you can run
- 06-08-2008 #8
thanks daark.child and gogalthorp for reply i installed gcc following ur instructions.
but i have a problem in getting started with gcc.
I created a file named test.c on the desktop
and pasted the following code in the file
when I try to compile this code usingCode:#include<iostream.h> #include<conio.h> void main() { cout<<"welcome to the world of Linux"; getch(); }
ahmed@linux-pxgb:~/Desktop> gcc test.c
I am getting the following errors
tell me how i get the output!!!Code:test.c:1:21: error: iostream.h: No such file or directory test.c:2:18: error: conio.h: No such file or directory test.c: In function ‘main’: test.c:5: error: ‘cout’ undeclared (first use in this function) test.c:5: error: (Each undeclared identifier is reported only once test.c:5: error: for each function it appears in.) test.c:4: warning: return type of ‘main’ is not ‘int’ test.c:7:2: warning: no newline at end of file
- 06-08-2008 #9
Looks like you need a path to the location of the *.h files. The compiler can't find them. there are three things you can do
1) add the full path in your #include
2) copy the files to your current work directory
3) set $PATH to point to the *.h location.
- 06-09-2008 #10
thanks gogalthrop for reply.
well i am not getting ur three points.
where can i find the include files and how can i get its address.Code:add the full path in your #include
working directory means wh directory???Code:copy the files to your current work directory
also please tell me about ur last point


Reply With Quote