Author Topic: Problems with includes  (Read 4328 times)

Offline grim_asle

  • Multiple posting newcomer
  • *
  • Posts: 14
Problems with includes
« on: July 18, 2013, 06:16:10 pm »
Hi there,

i have got the problem that when I use the "Build" button of the Code::Blocks IDE the compiler ends up complaining it can't find an included header.
I have added all include dirs for the project (and all libs and search directories) in the "settings" window, but the compiler doesn't find any of them.
Anyway, the headers are definitely there, i checked this, and the paths are correct.
It doesn't work with relative paths either.

I tried the same thing a while ago, and it worked, but on another machine.

Sorry that this post is rather indefinit, but i can't look for my exact settings at this moment.
I'm gonna give more detailed information if needed, but my main question for now is:
Are there any problems known concerning the "include directories" ?

Thanks for reading so far ... 

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: Problems with includes
« Reply #1 on: July 18, 2013, 07:07:04 pm »
Do this
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Compare the build log to what is correct.



Check the Global Compiler settings on the Computer that works and the one that does not.

The most likely tab to cause this issue is "build options"

Likely need to check either or both of the Explicitly options.

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

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3352
Re: Problems with includes
« Reply #2 on: July 19, 2013, 07:15:42 am »
hello,

add "-v" in Project->Build Options->other options
gcc will output all info he has, also if a path couldn't be found...You can see this information in the "build log"-tab

@dev: i think this should be added in the standard compiler options (not activated)....
« Last Edit: July 19, 2013, 08:55:56 am by BlueHazzard »

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 563
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Problems with includes
« Reply #3 on: July 19, 2013, 08:27:50 am »
@BlueHazzard
thank you for this information seems very useful.
CB-13670, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-4.1.5
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-14.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3, gcc-13.3.0,
=> !! The messages are translated by 'Deepl'

Offline grim_asle

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Problems with includes
« Reply #4 on: July 19, 2013, 09:11:44 am »
Hi there and thanks for your replies.

They were very helpful, especially the "-v" option ...
There were slashes behind many of the paths, so it they were regarded non-existing.

Now my compiler complains about a few other things ... but i know them ...


Greetings and thanks a lot