Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: tasdev on October 14, 2008, 02:29:14 pm

Title: Search path order
Post by: tasdev on October 14, 2008, 02:29:14 pm
Hello

I have just installed 8.02 on Windows with MinGW - GCC compiler is working fine. I am compiling a project which uses boost and wxWidgets and there is an include:

Code
#include <process.h>

Now this file is present both in Win32 and in wxWidgets, but I need to pick up the Win32 one when compiling boost, but I keep getting the wxWidgets one. My question, how do change the search path order in Code::Blocks?

Thanks for any help.
Title: Re: Search path order
Post by: MortenMacFly on October 15, 2008, 11:32:44 am
My question, how do change the search path order in Code::Blocks?
Move the folder(s) up/down using the controls just right beside the include directories in the build options of your project (search path's).
Title: Re: Search path order
Post by: tasdev on October 15, 2008, 01:48:27 pm
My question, how do change the search path order in Code::Blocks?
Move the folder(s) up/down using the controls just right beside the include directories in the build options of your project (search path's).
Thanks Morten, I tried that, but it did not help. I fixed the problem by moving the search paths to the project options - I had them in the global compiler settings. A beginners mistake?