News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Custom makefile problems

Started by tomasbym, March 16, 2011, 12:36:13 PM

Previous topic - Next topic

Jenna

#15
It might help to find the reason for your problem if you switch on the debuggers debug log ("Settings -> Compiler and debugger... -> Debugger settings -> Display debugger's debug log" and post the output here (with code-tags).

tomasbym

I see what may cause the problem. When I compile the project in CB I got few errors that filename_*.h cannot be found (I have the filename.h files in the project). Even though the project is compiled correctly. I don't get this type of errors when I run the same command from terminal. There is probably some mistake in the makefile but it is strange than it runs without problem from the terminal.
T.

MortenMacFly

Quote from: tomasbym on March 21, 2011, 11:15:07 PM
I see what may cause the problem. When I compile the project in CB I got few errors that filename_*.h cannot be found (I have the filename.h files in the project). Even though the project is compiled correctly. I don't get this type of errors when I run the same command from terminal. There is probably some mistake in the makefile but it is strange than it runs without problem from the terminal.
T.
Make sure the project base (which is the base path for compilation) is the same for both cases: The command line compilation and the compilation inside C::B.

If you are using relative path's for includes (which is the common way of doing) the base path matters, obviously.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]