News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Object File No such file or directory

Started by jimctr, October 11, 2016, 05:35:56 PM

Previous topic - Next topic

jimctr

Downloaded codeblocks-16.01mingw-setup.exe.  Ran Installation.  Created a C++ project.  And tried to build the simple "Hello World" program provided using GNU GCC compiler, but project provided won't build with:

mingw32-g++.exe -Wall -fexceptions -g -std=c++11 -I"C:\Program Files (x86)\CodeBlocks\MinGW\libexec\gcc\mingw32\4.9.2\" -c "C:\Cpp Tutorials\CppTutorials\main.cpp" -o obj\Debug\main.o

mingw32-g++.exe: error: Tutorials\CppTutorials\main.cpp -o obj\Debug\main.o: No such file or directory
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))



stahta01

Please post a full rebuild log in code tags! http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Try NOT using spaces in project path. I am guessing that you did so.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

jimctr


ArakelTheDragon

#3
Good day!

Sorry for bumping an old thread, please post the solution because some of us have the same problem.

The solution is to remove the file from the sources folder and from your code if you have an "#include file" or a function of it.


oBFusCATed

ArakelTheDragon: You don't have the same problem. From the log it seems that you have antivirus software which is deleting your final executable. If this is the case teach it to not do so an all would be fine.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]