Author Topic: Search Directories - Look in all sub directories  (Read 7973 times)

rob2687

  • Guest
Search Directories - Look in all sub directories
« 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
« Last Edit: July 27, 2008, 05:42:41 am by rob2687 »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7786
    • My Best Post
Re: Search Directories - Look in all sub directories
« Reply #1 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


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

rob2687

  • Guest
Re: Search Directories - Look in all sub directories
« Reply #2 on: July 27, 2008, 05:41:05 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. =)