Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 30th, 2008, 11:52 AM   #1
JOORDEE
Programming Student
 
Join Date: Feb 2008
Location: Baltimore,MD,USA
Posts: 30
Rep Power: 0 JOORDEE is on a distinguished road
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
JOORDEE is offline   Reply With Quote
Old Aug 30th, 2008, 3:46 PM   #2
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,288
Rep Power: 5 lectricpharaoh will become famous soon enough
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....
lectricpharaoh is offline   Reply With Quote
Old Aug 30th, 2008, 3:54 PM   #3
JOORDEE
Programming Student
 
Join Date: Feb 2008
Location: Baltimore,MD,USA
Posts: 30
Rep Power: 0 JOORDEE is on a distinguished road
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
JOORDEE is offline   Reply With Quote
Old Aug 30th, 2008, 8:25 PM   #4
L7Sqr
Hobbyist Programmer
 
Join Date: Jun 2005
Location: here
Posts: 152
Rep Power: 4 L7Sqr is on a distinguished road
Re: Compiler issues

might be just a typo, but the return statement from main should end with a semicolon.
c Syntax (Toggle Plain Text)
  1. return 0;
__________________
"...and though our kids are blessed their parents let them shoulder all the blame."
- The Quiet Things That No One Ever Knows [BrandNew]
L7Sqr is offline   Reply With Quote
Old Aug 30th, 2008, 10:36 PM   #5
JOORDEE
Programming Student
 
Join Date: Feb 2008
Location: Baltimore,MD,USA
Posts: 30
Rep Power: 0 JOORDEE is on a distinguished road
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
JOORDEE is offline   Reply With Quote
Old Aug 30th, 2008, 10:42 PM   #6
JOORDEE
Programming Student
 
Join Date: Feb 2008
Location: Baltimore,MD,USA
Posts: 30
Rep Power: 0 JOORDEE is on a distinguished road
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
JOORDEE is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:34 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC