Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Buenol on June 24, 2009, 05:01:04 pm

Title: Wrong path for ".o"
Post by: Buenol on June 24, 2009, 05:01:04 pm
Bonjour(I'm french :oops:),

I have this Build log after a good compile:

Quote
compile foo.h
...

-------------- Build: Debug in Dail ---------------

Linking console executable: ..\..\Dail -debug\Dail.exe
mingw32-g++.exe: obj\Debug\obj\Debug\Context.o: No such file or directory
mingw32-g++.exe: obj\Debug\obj\Debug\Debug\Exceptions.o: No such file or directory
mingw32-g++.exe: obj\Debug\obj\Debug\Debug\File.o: No such file or directory
mingw32-g++.exe: obj\Debug\obj\Debug\Debug\MemoryManager.o: No such file or directory
mingw32-g++.exe: obj\Debug\obj\Debug\Game.o: No such file or directory
mingw32-g++.exe: obj\Debug\obj\Debug\OgreFramework.o: No such file or directory

And ,as you can watch, C::B search in obj\Debug\obj\Debug\..
So my .o is in obj\Debug like everybody.

So have you a solution?

For my .cbp see here:http://textsnip.com/ff7c1e/xml (http://textsnip.com/ff7c1e/xml)

Thanks.
Title: Re: Wrong path for ".o"
Post by: stahta01 on June 24, 2009, 05:17:35 pm
I suggest trying to remove the .o files from your project. Example of line that I mean below.

Code
<Unit filename="obj\Debug\Context.o" /> 

And, turning on full command line mode.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S.
Title: Re: Wrong path for ".o"
Post by: ollydbg on June 24, 2009, 05:21:53 pm
Yes, I also notices that you have "XXX.o" file in your project
Quote
# <Unit filename="obj\Debug\Context.o" /> 
#         <Unit filename="obj\Debug\Debug\Exceptions.o" /> 
#         <Unit filename="obj\Debug\Debug\File.o" /> 
#         <Unit filename="obj\Debug\Debug\MemoryManager.o" /> 
#         <Unit filename="obj\Debug\Game.o" /> 
#         <Unit filename="obj\Debug\OgreFramework.o" /> 
#         <Unit filename="obj\Debug\data\AbstractObject.o" /> 
#         <Unit filename="obj\Debug\data\Data.o" /> 
#         <Unit filename="obj\Debug\data\DataManager.o" /> 
#         <Unit filename="obj\Debug\data\Player.o" /> 
#         <Unit filename="obj\Debug\engines\Engine.o" /> 
#         <Unit filename="obj\Debug\engines\EngineEvent.o" /> 
#         <Unit filename="obj\Debug\engines\GameEngine.o" /> 
#         <Unit filename="obj\Debug\engines\GameEngine\Event\PlayerEvent.o" /> 
#         <Unit filename="obj\Debug\engines\GraphicsEngine.o" /> 
#         <Unit filename="obj\Debug\engines\GraphicsEngine\EventHandler.o" /> 
#         <Unit filename="obj\Debug\engines\GraphicsEngine\GameEventHandler.o" /> 
#         <Unit filename="obj\Debug\engines\GraphicsEngine\OgreApp.o" /> 
#         <Unit filename="obj\Debug\engines\SoundEngine.o" /> 
#         <Unit filename="obj\Debug\main.o" /> 

You should totally remove them
Title: Re: Wrong path for ".o"
Post by: Buenol on June 24, 2009, 06:31:49 pm
Thanks!!!I have remove the .o and i'm happyyyy! :D :D :D :D :D :D

thanks men!