User forums > Using Code::Blocks

#include MACRO, C::B can't detect dependency

<< < (2/2)

ollydbg:

--- Quote from: stahta01 on February 28, 2018, 02:47:17 am ---
--- Quote from: ollydbg on February 27, 2018, 03:47:17 pm ---You are correct, that is a limitation in our compiler plugin. You can have a look at the Code::Blocks' source code to understand how the dependency is calculated. It is in the folder src\plugins\compilergcc\depslib. Can you find a better way to do it?

--- End quote ---

So for, I have found "plugins\compilergcc\directcommands.cpp" tends to be the file that calls the depslib functions.

Tim S.

--- End quote ---
Correct, if I remember correctly, the depslib just scan each file for some pattern like

--- Code: ---#include <xxx.h>
or
#include "xxx.h"

--- End code ---
And put the xxx.h as the dependency of the current file. It does not use the preprocessor to handle all the sources.

Navigation

[0] Message Index

[*] Previous page

Go to full version