Page 1 of 1

Certain Path Not Available

Posted: Fri Jun 15, 2018 10:13 am
by Chikwado
Can Someone Tell Me What I Am Doing Wrong Here. After Building Wxwidget Library Everything Were Ok. Then...This Were Available:

Code: Select all

C:\wxWidget\include\wx\msvc\setup.h
. But This Is Not Available:

Code: Select all

C:\wxWidget\include\wx\msw\setup.h
. Someone Help Please.

Re: Certain Path Not Available

Posted: Fri Jun 15, 2018 10:50 am
by eranon
The first one is certainly this one instead:

Code: Select all

C:\wxWidgets\include\msvc\wx\setup.h
And for the second one you have a useless slash at the end ("setup.h" is a file, not a directory):

Code: Select all

C:\wxWidgets\include\wx\msw\setup.h

Re: Certain Path Not Available

Posted: Fri Jun 15, 2018 10:54 am
by PB
If you are using GCC do not include MSVC-specific header.

Regardless of the compiler, do not #include "wx\msw\setup.h" in your files.

If you are getting "setup.h not found" error, see e.g. here: http://wxwidgets.org/docs/faq/windows/#setuph. Obviously, if you are using GCC your path will have "gcc" instead of "vc". You also need to add the folder with build-specific setup.h (e.g., WXWIN/lib/gcc_lib/mswud) before the general include path (WXWIN/include).

BTW, the library name is wxWidgets.

Re: Certain Path Not Available

Posted: Fri Jun 15, 2018 1:44 pm
by Chikwado
Thanks For Reply, But What Is The Meaning Of "Error: wx/setup.h File Or Directory Not Found" I Has Been Going Around These For A Long Time. Do I Have To Copy The File To Any Foler? I Need Help.

Re: Certain Path Not Available

Posted: Fri Jun 15, 2018 2:14 pm
by PB
Chikwado wrote:Thanks For Reply, But What Is The Meaning Of "Error: wx/setup.h File Or Directory Not Found" I Has Been Going Around These For A Long Time. Do I Have To Copy The File To Any Foler? I Need Help.
The solution is described in the third paragraph of my previous post in this thread.

Re: Certain Path Not Available

Posted: Sat Jun 16, 2018 1:35 am
by stahta01
Post a build log and maybe some can help you.

Link to Code::Blocks FAQ http://wiki.codeblocks.org/index.php/FA ... problem.3F

Re: Certain Path Not Available

Posted: Thu Jun 21, 2018 12:55 pm
by Chikwado
Can Some One Tell Me More, This Folders Are Available:

Code: Select all

C:\wxWidget\lib
But This Are Not Available:

Code: Select all

 C:\wxWidget\lib\gcc_lib\mswud 
Would I Have To Obtain That Folder And Files Any Where? Thanks.

Re: Certain Path Not Available

Posted: Thu Jun 21, 2018 1:02 pm
by eranon
As PB told you above, it's not "wxWidget", but "wxWidgets".

Re: Certain Path Not Available

Posted: Thu Jun 21, 2018 2:09 pm
by Chikwado
Yes, "wxWidgets".

Re: Certain Path Not Available

Posted: Thu Jun 21, 2018 7:35 pm
by eranon
OK, then to obtain "C:\wxWidgets\lib\gcc_lib\mswud", you have to build wxWidgets Debug for Windows against MinGW (aka. GCC) under "C:\wxWidgets\lib\gcc_lib" (here "gcc_lib" is arbitrary, you can name it at your convenience).