943,929 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 5614
  • C++ RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Feb 24th, 2008
0

Re: problem compiling with Eclipse for linux

Basic eclipse c/c++ usage information is given in:
http://www.linuxdevices.com/articles/AT8349506804.html
Hope it helps.
Reputation Points: 1105
Solved Threads: 389
Posting Virtuoso
mitrmkar is offline Offline
1,714 posts
since Nov 2007
Feb 24th, 2008
0

Re: problem compiling with Eclipse for linux

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
JRM
Reputation Points: 130
Solved Threads: 75
Practically a Master Poster
JRM is offline Offline
618 posts
since Oct 2006
Feb 24th, 2008
0

Re: problem compiling with Eclipse for linux

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.
Reputation Points: 13
Solved Threads: 12
Junior Poster in Training
codeaa is offline Offline
98 posts
since Feb 2008
Feb 24th, 2008
0

Re: problem compiling with Eclipse for linux

it seems not to have a linux(ubuntu) version

can you or anyone else recommend me another program that works on ubuntu?
Reputation Points: 10
Solved Threads: 0
Light Poster
onemanclapping is offline Offline
25 posts
since Feb 2008
Feb 24th, 2008
0

Re: problem compiling with Eclipse for linux

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?
Reputation Points: 13
Solved Threads: 12
Junior Poster in Training
codeaa is offline Offline
98 posts
since Feb 2008
Feb 24th, 2008
0

Re: problem compiling with Eclipse for linux

Click to Expand / Collapse  Quote originally posted by codeaa ...
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
Reputation Points: 10
Solved Threads: 0
Light Poster
onemanclapping is offline Offline
25 posts
since Feb 2008
Feb 24th, 2008
0

Re: problem compiling with Eclipse for linux

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?
JRM
Reputation Points: 130
Solved Threads: 75
Practically a Master Poster
JRM is offline Offline
618 posts
since Oct 2006
Feb 24th, 2008
0

Re: problem compiling with Eclipse for linux

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.
Reputation Points: 13
Solved Threads: 12
Junior Poster in Training
codeaa is offline Offline
98 posts
since Feb 2008
Feb 24th, 2008
0

Re: problem compiling with Eclipse for linux

Click to Expand / Collapse  Quote originally posted by JRM ...
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.
Reputation Points: 13
Solved Threads: 12
Junior Poster in Training
codeaa is offline Offline
98 posts
since Feb 2008
Feb 24th, 2008
0

Re: problem compiling with Eclipse for linux

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
Reputation Points: 10
Solved Threads: 0
Light Poster
onemanclapping is offline Offline
25 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Algorithm for string combinations
Next Thread in C++ Forum Timeline: code executed





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC