User forums > Using Code::Blocks

Custom makefile problems

<< < (4/4)

Jenna:
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.

--- End quote ---
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.

Navigation

[0] Message Index

[*] Previous page

Go to full version