problem compiling with Eclipse for linux

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2007
Posts: 978
Reputation: mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice 
Solved Threads: 208
mitrmkar mitrmkar is offline Offline
Posting Shark

Re: problem compiling with Eclipse for linux

 
0
  #11
Feb 24th, 2008
Basic eclipse c/c++ usage information is given in:
http://www.linuxdevices.com/articles/AT8349506804.html
Hope it helps.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 222
Reputation: JRM will become famous soon enough JRM will become famous soon enough 
Solved Threads: 14
JRM's Avatar
JRM JRM is offline Offline
Posting Whiz in Training

Re: problem compiling with Eclipse for linux

 
0
  #12
Feb 24th, 2008
Originally Posted by mitrmkar View Post
Try this link
http://wiki.codeblocks.org/index.php...f_Code::Blocks
That's the ORIGINAL codeblocks. To get the latest and greatest, you need to acquire a "nightly build" for your OS. The Linux builds tend to lag behind the windows builds a bit, but maybe just a week.

These builds are bug fixes and updates. i've found them to be very stable...at least for what I'm doing...
I found it to be a very intuitive IDE.
Try:
http://forums.codeblocks.org/index.p...a31&board=20.0
"I like beating by head against the wall because it feels so good when I stop"
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 98
Reputation: codeaa is an unknown quantity at this point 
Solved Threads: 12
codeaa codeaa is offline Offline
Junior Poster in Training

Re: problem compiling with Eclipse for linux

 
0
  #13
Feb 24th, 2008
It defaults to building your program when you save a file in the project. Once you've done that you select the executable to run it.

If you have a source folder and a source file under that folder with a main() function, it will build when you save the file.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 25
Reputation: onemanclapping is an unknown quantity at this point 
Solved Threads: 0
onemanclapping onemanclapping is offline Offline
Light Poster

Re: problem compiling with Eclipse for linux

 
0
  #14
Feb 24th, 2008
Originally Posted by mitrmkar View Post
Try this link
http://wiki.codeblocks.org/index.php...f_Code::Blocks
it seems not to have a linux(ubuntu) version

can you or anyone else recommend me another program that works on ubuntu?
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 98
Reputation: codeaa is an unknown quantity at this point 
Solved Threads: 12
codeaa codeaa is offline Offline
Junior Poster in Training

Re: problem compiling with Eclipse for linux

 
0
  #15
Feb 24th, 2008
Originally Posted by onemanclapping View Post
it seems not to have a linux(ubuntu) version

can you or anyone else recommend me another program that works on ubuntu?

Eclipse works quite well. You'll have to learn to use any program you try. Since you have eclipse and it works well, I would recommend you fix your problem with it.

Did you try what I suggested before by creating a source folder?
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 25
Reputation: onemanclapping is an unknown quantity at this point 
Solved Threads: 0
onemanclapping onemanclapping is offline Offline
Light Poster

Re: problem compiling with Eclipse for linux

 
0
  #16
Feb 24th, 2008
Originally Posted by codeaa View Post
Eclipse works quite well. You'll have to learn to use any program you try. Since you have eclipse and it works well, I would recommend you fix your problem with it.

Did you try what I suggested before by creating a source folder?
my teacher also sugests me Eclipse...both for windows and linux...but I'm new to this application and have know idea where the problem is...

I guess on that Run menu, where they ask for the "C++ Application" I'm not putting the right thing...but I cant find any executable files on these folders
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 222
Reputation: JRM will become famous soon enough JRM will become famous soon enough 
Solved Threads: 14
JRM's Avatar
JRM JRM is offline Offline
Posting Whiz in Training

Re: problem compiling with Eclipse for linux

 
0
  #17
Feb 24th, 2008
Originally Posted by onemanclapping View Post
it seems not to have a linux(ubuntu) version

can you or anyone else recommend me another program that works on ubuntu?
Try a GENERIC linux build. It should work fine.
I have Fedora, so I can use the RPMs, which are easy.
I think Ubuntu was built on debian? They may have some kind of package system as well. However, i found that it's not nearly as well supported as the Redhat/fedora flavors. That's why I use fedora. Redhat/fedora also has YUM,
which is an update manager that does a very good job of resloving dependencies for complex packages.

Code::blocks should wok OK as a stand-alone install. Do you know haow to use tar?
"I like beating by head against the wall because it feels so good when I stop"
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 98
Reputation: codeaa is an unknown quantity at this point 
Solved Threads: 12
codeaa codeaa is offline Offline
Junior Poster in Training

Re: problem compiling with Eclipse for linux

 
0
  #18
Feb 24th, 2008
I don't have the program on this computer but I'll try to explain exactly what you need to do to create a simple program:

Start Eclipse
File->New->Create a managed C++ project
Right click on the project name in the left panel and go to new and create a new source folder. Name the folder src.
Right click on the source folder and create a new source file. End the file with .cpp.
In that source file, create a simple program with a main() function.
Save the file and Eclipse should automatically build the project.
A dialog window should come up and ask you something about a profile. You can create a new one and point it to the executable with the same name as the source file that you create but without .cpp.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 98
Reputation: codeaa is an unknown quantity at this point 
Solved Threads: 12
codeaa codeaa is offline Offline
Junior Poster in Training

Re: problem compiling with Eclipse for linux

 
0
  #19
Feb 24th, 2008
Originally Posted by JRM View Post
Try a GENERIC linux build. It should work fine.
I have Fedora, so I can use the RPMs, which are easy.
I think Ubuntu was built on debian? They may have some kind of package system as well. However, i found that it's not nearly as well supported as the Redhat/fedora flavors. That's why I use fedora. Redhat/fedora also has YUM,
which is an update manager that does a very good job of resloving dependencies for complex packages.

Code::blocks should wok OK as a stand-alone install. Do you know haow to use tar?
You should try Ubuntu again if that's your opinion. Nothing wrong with Fedora but Ubuntu has excellent support. apt-get is the default package manager.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 25
Reputation: onemanclapping is an unknown quantity at this point 
Solved Threads: 0
onemanclapping onemanclapping is offline Offline
Light Poster

Re: problem compiling with Eclipse for linux

 
0
  #20
Feb 24th, 2008
PROBLEM SOLVED

the problem was with the g++ version I had installed...I reinstalled it and voila! it started working.

thank you all for your kind help...I guess I'll be around here a lot more now as I'm a total beginner in this language and you seem all very helpful
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC