News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Search Directories - Look in all sub directories

Started by rob2687, July 27, 2008, 03:08:05 AM

Previous topic - Next topic

rob2687

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

stahta01

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


C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

rob2687

Quote from: stahta01 on July 27, 2008, 05:07:48 AM
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. =)