Author Topic: Windows GCC: Can't find my header  (Read 2539 times)

Offline PeterDa

  • Single posting newcomer
  • *
  • Posts: 2
Windows GCC: Can't find my header
« on: January 24, 2015, 11:21:56 am »
Trying to reactivate an ancient (2005) Windows GCC programme (and my C-knowledge) in Code::Blocks. My project includes an own file External.h in the Headers block, but
Code
#include "External.h"
gives 
fatal error: External.h: No such file or directory. Do I have to provide an additional reference somewhere?
-PeterDa

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Windows GCC: Can't find my header
« Reply #1 on: January 24, 2015, 12:26:21 pm »
You have to set the search directory for the include files. This can be done in project-> build options-> search paths-> compiler

Offline PeterDa

  • Single posting newcomer
  • *
  • Posts: 2
Re: Windows GCC: Can't find my header
« Reply #2 on: January 24, 2015, 08:46:44 pm »
Thank you; I had seen this option, but assumed that - since the files were included in the project treelist - it wasn't needed here.
PeterDa

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Windows GCC: Can't find my header
« Reply #3 on: January 24, 2015, 11:10:12 pm »
Thank you; I had seen this option, but assumed that - since the files were included in the project treelist - it wasn't needed here.

Headers are not passed to the compiler over command line,  so the project tree has no influence over this...