Author Topic: Wrong path for ".o"  (Read 6265 times)

Buenol

  • Guest
Wrong path for ".o"
« 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

Thanks.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Wrong path for ".o"
« Reply #1 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.
« Last Edit: June 24, 2009, 05:19:17 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Wrong path for ".o"
« Reply #2 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
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

  • Guest
Re: Wrong path for ".o"
« Reply #3 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!