User forums > Using Code::Blocks
CB ignores search directories/Global variables
eb:
Thanks Tim. Didn't see that last post over there until now.
And in my defense my original question over here is (basically):
What is the proper CodeBlocks setting so that when I #include <rpc.h> the compiler looks for C:\cygwin\usr\x86_64-w64-mingw32\sys-root\mingw\include\rpc.h?
A a related problem/question is:
If you look at my settings (see previos reply) why is it that #include "tirpc/rpc/clnt.h" leads me to C:\cygwin\usr\include\tirpc\rpc\clnt.h when I do not have "C:\cygwin\usr\include" entered as any of my settings. I did before but as you see I have removed them AND restarted CodeBlocks.
Again I apologize for the elementary question but the online manual has me befuddled.
eb:
"And another thing!..."
This may help someone figure out what i'm doing wrong:
If I add "C:\cygwin\usr\x86_64-w64-mingw32\sys-root\mingw\include\rpc.h" to the project, I can right click-> Open #include file: 'rpc.h' and it with open the proper file but the compiler still can't find it.
eb:
fyi - I have Compiler logging: set to Full command line.
My other 2 choices are 'Task description' and 'No logging'.
stahta01:
--- Quote from: eb on January 20, 2012, 09:37:37 pm ---fyi - I have Compiler logging: set to Full command line.
My other 2 choices are 'Task description' and 'No logging'.
--- End quote ---
That can be true; but, if you do NOT post the full build log after a full rebuild; then it really does NOT help us help you.
Edit: You do realize that you are likely wasting your time. Getting MinGW64 headers to work with the Cygwin compiler is NOT easy and may be impossible!!
Tim S.
eb:
That may be so but my immediate problem is getting Code Blocks to work properly.
For instance I have just changed my Compiler logging setting from 'Full command line' to 'No logging', I executed a 'Rebuild workspace' and the build log says the same EXACT thing it said before.
It seems to me that CodeBlocks is saving my settings as I can see them from session to session, but it's not using them.
And I am happy to lay off of the non-CodeBlocks issue BUT it does not make sense to me that Cygwin would supply Mingw libs that you could not use with Cygwin.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version