![]() |
|
#1
|
|||
|
|||
Help with C++ Compiling ErrorHey guys I need some help with something. For some reason, my code isn't compiling. The weird thing is, I don't think the code is the problem... I tried putting in different codes, and it had the same error each time. I'm not going to supply the code I'm using, because nothing works, no matter what I put in. This is what the Compile error says every time:
CPP / C++ / C Code:
And here's the actual compile log: CPP / C++ / C Code:
So, yeah. If anybody could help me, that would be great. Thanks! |
|
#2
|
|||
|
|||
Re: Help with C++ Compiling ErrorQuote:
Regards, Dave |
|
#3
|
|||
|
|||
Re: Help with C++ Compiling ErrorNo, there's nothing else running. Thanks for trying, but that's not it. But what does this mean?:
CPP / C++ / C Code:
|
|
#4
|
|||
|
|||
Re: Help with C++ Compiling ErrorQuote:
Quote:
That is a result of the previous error that you showed: Code:
Since you say that there is no process named "examples.exe" running, maybe the file, somehow, attained a read-only status. Or some such thing. Here is what I would do: Close the project. Quit out of dev-cpp. Get back into dev-cpp. Start a new project somewhere other than C:\Program Files.... For example, create a new directory, say c:\dev_cpp_projects. Then create your new project in that directory. Copy the source code into the new project main.cpp file (or whatever). Try again. Regards, Dave |
|
#5
|
|||
|
|||
Re: Help with C++ Compiling ErrorThe error you're getting is from the actual c++ compiler (g++). What its telling you is that it can't create a file (in this case "examples.exe"). This can happen for a couple of reasons. The first thing to do is to work out where "examples.exe" is supposed to appear once compiled. This may be in the project settings of dev-c++, but I'm not sure as I havn't used that IDE in a couple of years.
Once you know where the compiler is trying to put it, then makesure that location actually exists. g++ WON'T create a folder. If memory serves, then it may be trying to put the EXE in a "debug" folder within the main project folder. Also make sure that this folder isnt read-only and delete any existing copys of "examples.exe" just to be on the safe side. Hope this helps |
|
#6
|
|||
|
|||
Re: Help with C++ Compiling Errorg++ can't make folders (directorys).
Make sure that the target location exists (ie: check that the folder that examples.exe is supposed to appear in is there). Also check that this folder and the folders it's in etc. are NOT read only. Perhapse delete any existing copy of "examples.exe". just in case. hope this helps. |
Recent GIDBlog
Observations of Iraq by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Major newbie problem | cynack | MS Visual C++ / MFC Forum | 1 | 08-Apr-2007 11:25 |
| Winsock error when compiling FLTK 2.0 Projects | mauriciorossi | FLTK Forum | 3 | 16-Aug-2005 10:18 |
| Help with syntax errors | PeteGallo | C Programming Language | 7 | 08-Aug-2005 20:30 |
| What is "Ambigious symbol" ??*( a compilation error) | small_ticket | C++ Forum | 2 | 07-Jan-2005 21:10 |
| Can enum have same name as class? | crystalattice | C++ Forum | 3 | 08-Dec-2004 16:43 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The