![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programming Student
Join Date: Feb 2008
Location: Baltimore,MD,USA
Posts: 30
Rep Power: 0
![]() |
Compiler issues
Hi guys, ive been having a problem with my compiler, every type of code I type in ends up with the same error:
general error c10100b1: Failed to load file "..\Debug\Hello world.exe". The system cannot find the path specified. now I dont think theres anything wrong with my code. you tell me: #include <iostream> using namespace std; int main() { cout << " Hello there world!\n"; return 0 } Thats simple hello world code thats works katrillions of times before. Can anyone help me solve this problem?
__________________
I Want Dat Pie |
|
|
|
|
|
#2 |
|
SEXY SHOELESS GOD OF WAR!
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,288
Rep Power: 5
![]() |
Re: Compiler issues
Try removing spaces from the name of your file/project, so the executable is "helloworld.exe" or something instead. If the IDE is not enclosing the path and filename in quotes, the OS won't find it, but will be looking for the file "hello" and trying to pass "world.exe" as a parameter to it.
__________________
Java? Rant? Me? Noooo.... |
|
|
|
|
|
#3 |
|
Programming Student
Join Date: Feb 2008
Location: Baltimore,MD,USA
Posts: 30
Rep Power: 0
![]() |
Re: Compiler issues
I just tried that and it didnt work, ive had files with only one word in the title that didnt work either.
__________________
I Want Dat Pie |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: here
Posts: 152
Rep Power: 4
![]() |
Re: Compiler issues
might be just a typo, but the return statement from main should end with a semicolon.
c Syntax (Toggle Plain Text)
__________________
"...and though our kids are blessed their parents let them shoulder all the blame." - The Quiet Things That No One Ever Knows [BrandNew] |
|
|
|
|
|
#5 |
|
Programming Student
Join Date: Feb 2008
Location: Baltimore,MD,USA
Posts: 30
Rep Power: 0
![]() |
Re: Compiler issues
well I thought you had something there but I opened the project and the semicolon was still there, I even started a new project and did the code over again, so I still need a programming expert to help me with this problem
__________________
I Want Dat Pie |
|
|
|
|
|
#6 |
|
Programming Student
Join Date: Feb 2008
Location: Baltimore,MD,USA
Posts: 30
Rep Power: 0
![]() |
Re: Compiler issues
ok guys problem solved, I had to move the source file into the project file, I know thats common sense but I assumed it was already in the hello world file, I never had a problem like this this before. So thanks alot.
__________________
I Want Dat Pie |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| programming outside the compiler | TwilightProgrammers | C++ | 9 | Jun 4th, 2006 6:21 PM |
| [tutorial] Simple G++ compiler tutorial | coldDeath | C++ | 7 | Nov 27th, 2005 1:33 PM |
| Compiler Issues... | Nabad | Java | 3 | Oct 29th, 2005 9:24 AM |
| DOS Compiler! | Starter | C++ | 11 | Apr 15th, 2005 11:14 PM |
| Newbie : need help with Dev-C++ compiler | gemini_shooter | C++ | 16 | Apr 12th, 2005 4:09 AM |