LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 09-14-2008, 07:43 AM   #1
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 314
Blog Entries: 1

Rep: Reputation: 31
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

Last edited by matiasar; 09-14-2008 at 02:50 PM.
 
Old 09-14-2008, 08:47 AM   #2
rubadub
Member
 
Registered: Jun 2004
Posts: 233

Rep: Reputation: 33
When I go across to windows I use the 'codeblocks' IDE, which uses mingw
 
Old 09-14-2008, 09:00 AM   #3
sdmoralesma
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Geany

Quote:
Originally Posted by matiasar View Post
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.
 
Old 09-14-2008, 09:51 AM   #4
LordAnta
Member
 
Registered: Apr 2008
Location: Bucharest, Romania
Distribution: Slackware current
Posts: 126

Rep: Reputation: 17
you can also try KDevelop, Anjuta.
 
Old 09-14-2008, 11:48 AM   #5
rlhartmann
Member
 
Registered: Mar 2008
Posts: 73

Rep: Reputation: 16
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.
 
Old 09-14-2008, 02:49 PM   #6
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 314
Blog Entries: 1

Original Poster
Rep: Reputation: 31
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
 
Old 09-14-2008, 03:28 PM   #7
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
I generally avoid IDEs, but I have found kdevelop to be pretty nice.
 
Old 09-15-2008, 09:57 AM   #8
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 314
Blog Entries: 1

Original Poster
Rep: Reputation: 31
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make: File not found: /lib/modules/2.6.18-elive/build/ clhona Linux - Software 3 08-08-2007 12:09 PM
how2 make the kernel scan both PCI IDE and Mboard IDE channels? carboncopy Slackware 1 07-23-2003 03:26 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration