Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: rob2687 on July 27, 2008, 03:08:05 am
-
Hi
I am trying to integrate a certain library into my code.
The library has all the #includes referenced to the base directory.
For example a file BulletCollision/Collide.h has the statement:
#include "LinearMath/Vector3.h"
My problem is that I had to change that line to:
#include "../LinearMath/Vector3.h"
because the files are all referenced from the base directory.
Basically it doesn't use any relative paths. The SDK they provided has only Visual C++ project files. I checked those and they used some option like ".;../..;" to the VC++ search directories.
Is there a similar option for CodeBlocks?
I've tried a few different things with the Search Directories in CodeBlocks but nothing seems to work.
Thanks
-
Did you try setting this Compiler option?
Settings -> "Compiler and debugger"
Tab "Other Settings"
Check mark "Explicitly add project top level directory to compiler search dirs"
Tim S
-
Did you try setting this Compiler option?
Settings -> "Compiler and debugger"
Tab "Other Settings"
Check mark "Explicitly add project top level directory to compiler search dirs"
Tim S
That seems to have fixed it.
Thank you. =)