| | |
problem compiling with Eclipse for linux
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2008
Posts: 25
Reputation:
Solved Threads: 0
hi,
I'm beginning to learn how to program in C++ and though it is teached in my university, it seems noone cares about Linux users, so no one there can help me here (though I think the problem has nothing to do with my OS, but with the version of the program I use: eclipe)
the problem is the following:
http://img409.imageshack.us/img409/9127/eclipse1da1.png
when I try to run this, this new window pops up and I've filled the necessary camps as far as I could, but I don't know what to put where it says "C/C++ Application:"
http://img184.imageshack.us/img184/5857/eclipse2cc8.png
when I click "Search Project" that right side window pops up empty... what am I doing wrong?
thanks in advance,
onemanclapping
PS: sorry for the bad english, I'm portuguese
I'm beginning to learn how to program in C++ and though it is teached in my university, it seems noone cares about Linux users, so no one there can help me here (though I think the problem has nothing to do with my OS, but with the version of the program I use: eclipe)
the problem is the following:
http://img409.imageshack.us/img409/9127/eclipse1da1.png
when I try to run this, this new window pops up and I've filled the necessary camps as far as I could, but I don't know what to put where it says "C/C++ Application:"
http://img184.imageshack.us/img184/5857/eclipse2cc8.png
when I click "Search Project" that right side window pops up empty... what am I doing wrong?
thanks in advance,
onemanclapping
PS: sorry for the bad english, I'm portuguese
I have not used eclipse, so I don't know exactly what steps are needed. But I don't think there is any problem with your eclipse version. Looks like you are adding the source file to the
Try right clicking on the project name and see if there is an option like
.settings folder. Also the file does not have the extension of a C++ source file. Try right clicking on the project name and see if there is an option like
add source file . If there isn't, try reading the manual of eclipse. Doesn't matter which OS you use, the basic steps should be the same. So even the Windows Manual for eclipse would do. •
•
Join Date: Feb 2008
Posts: 25
Reputation:
Solved Threads: 0
•
•
•
•
I have not used eclipse, so I don't know exactly what steps are needed. But I don't think there is any problem with your eclipse version. Looks like you are adding the source file to the.settingsfolder. Also the file does not have the extension of a C++ source file.
Try right clicking on the project name and see if there is an option likeadd source file. If there isn't, try reading the manual of eclipse. Doesn't matter which OS you use, the basic steps should be the same. So even the Windows Manual for eclipse would do.
http://img262.imageshack.us/img262/3...eenshotfy0.png
I changed the extension to "cpp", it that right? if it is, that's not the problem either

do you know another application to program, compile and run C++ programs under linux?
Last edited by onemanclapping; Feb 23rd, 2008 at 1:16 pm.
•
•
Join Date: Feb 2008
Posts: 25
Reputation:
Solved Threads: 0
now it says "Program is not a recognized executable." selecting the program as you told me (/home/omc/workspace/teste/src/atum.cpp)
•
•
Join Date: Feb 2008
Posts: 25
Reputation:
Solved Threads: 0
•
•
•
•
code::blocks is a good IDE
If you just want to compile a program
use the g++ compiler
on the command line:
g++ myprog.cpp -o myprog
this will compile myprog.cpp source into myprog executable.
To run it ;
./myprog
I'd really prefer a program that would compile itself as it would be very boring to keep repeating that code line (g++ myprog.cpp -o myprog)...
•
•
Join Date: Nov 2007
Posts: 978
Reputation:
Solved Threads: 208
Try this link
http://wiki.codeblocks.org/index.php...f_Code::Blocks
http://wiki.codeblocks.org/index.php...f_Code::Blocks
Last edited by mitrmkar; Feb 24th, 2008 at 12:09 pm.
![]() |
Similar Threads
- Programming FAQ - Updated 1/March/2005 (Computer Science)
Other Threads in the C++ Forum
- Previous Thread: Algorithm for string combinations
- Next Thread: code executed
| Thread Tools | Search this Thread |
api array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






