News:

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

Main Menu

Wrong path for ".o"

Started by Buenol, June 24, 2009, 05:01:04 PM

Previous topic - Next topic

Buenol

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

Thanks.

stahta01

#1
I suggest trying to remove the .o files from your project. Example of line that I mean below.


<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.
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]

ollydbg

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
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Buenol

Thanks!!!I have remove the .o and i'm happyyyy! :D :D :D :D :D :D

thanks men!