LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   ide for g++ programming and how to build make file? (https://www.linuxquestions.org/questions/programming-9/ide-for-g-programming-and-how-to-build-make-file-669849/)

matiasar 09-14-2008 07:43 AM

ide for c++ programming and how to build make file?
 
Hello all!
I started a c++ course yesterday. At school the workshop only has windows and the ide there is DEV+...
I did my first program but I'd like to work in linux, which is my System at home.

(1) Is there any light IDE (not such big as eclipse), similar to DEV but for linux?

They told me to use this structure: my_main_prog.cpp (main file), my_functions.cpp (a file containing the functions implementation) and a my_headers.h (which contains the functions prototypes).
The problem is that I don't know how to put it all together in linux and compile using g++... I supouse I have to make a makefile.

(2) I like vim very much. Anybody knows how or where can I find a simple document to know how to create makefile. I mean "simple" because I'd like to start practicing and focus on coding without spending so much time understanding the development environment.


Thanks in advance,
Matías

rubadub 09-14-2008 08:47 AM

When I go across to windows I use the 'codeblocks' IDE, which uses mingw

sdmoralesma 09-14-2008 09:00 AM

Geany
 
Quote:

Originally Posted by matiasar (Post 3279970)
Hello all!
I started a c++ course yesterday. At school the workshop only has windows and the ide there is DEV+...
I did my first program but I'd like to work in linux, which is my System at home.

(1) Is there any light IDE (not such big as eclipse), similar to DEV but for linux?

They told me to use this structure: my_main_prog.cpp (main file), my_functions.cpp (a file containing the functions implementation) and a my_headers.h (which contains the functions prototypes).
The problem is that I don't know how to put it all together in linux and compile using g++... I supouse I have to make a makefile.

(2) I like vim very much. Anybody knows how or where can I find a simple document to know how to create makefile. I mean "simple" because I'd like to start practicing and focus on coding without spending so much time understanding the development environment.


Thanks in advance,
Matías

HI matias,

(1) offcourse!, linux have a ide light and very easy to use, GEANY, this program is in the repositories. is like c++. =)

good luck.

LordAnta 09-14-2008 09:51 AM

you can also try KDevelop, Anjuta.

rlhartmann 09-14-2008 11:48 AM

If you want to stick with vim and just need a simple make file to compile the program,
here is a set of slides that show how to create one http://linux.starkstate.net/rhartman...dMakefiles.pdf and here are the files for the example make file
http://linux.starkstate.net/rhartman...ke-example.tar.

matiasar 09-14-2008 02:49 PM

Thank folks for the info.
Well, I put a wrong title to the thread, but you understood.
I started looking to anjuta, but I think it will require me some study of the ide itself.
I'll see if I can use vi and ideally be able to create makefile.
The document and example will be sure usefull.
I'll let you know if I can get my first c++ program compilled in linux.

Regards,
Matías

jiml8 09-14-2008 03:28 PM

I generally avoid IDEs, but I have found kdevelop to be pretty nice.

matiasar 09-15-2008 09:57 AM

Thanks again for the info and tips.
Yesterday I was able to make my makefiles and start compilling my firsts c++ little programs.
rlhartmann, the pdf was very usefull for me. I just adapted to g++ compiller and worked nice.
So, I think I will start learning using vim, and take some time to understand how ide could help later.

Using win and Dev at schooll... and linux + vim at home. Nothing like home :)

Regards,
Matías


All times are GMT -5. The time now is 10:44 PM.