Compiler Command Line Arguments - Include a searchpath dir

Previous topic - Next topic

bigsofty

Hi,

I am trying to use the project settings optional "Command Line Argument" (-IC:\myheaders"), to force the GCC compiler to add a search path for some #inlined C headers. The headers are not found, any tips on how to achieve a search path for a bunch of C headers at compile time?
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Kitty Hello

put them in the project directory. It will search there.

The option >> -I"C:\MyHeaders"<< for "cmp" should work, too.

bigsofty

Nope does not work for me?

Code (glbasic) Select
C:\Users\Dad\AppData\Local\Temp\glbasic\gpc_temp0.cpp:23:18: test.h: No such file or directory
*** FATAL ERROR - Please post this output in the forum


Code (glbasic) Select
INLINE
#include "test.h"
ENDINLINE

Code (glbasic) Select
#ifndef ImHere
#define ImHere
#endif

Code (glbasic) Select
-I"C:\MyHeaders"

It works if I copy a header into one of GLBs default (eg. "C:\Program Files (x86)\GLBasic\Compiler\platform\Include") search paths but I want to avoid messing with the compiler dir if I can.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Kitty Hello

the project path is included. Is that an option?
When you add a stupid option --please-dont-know-this, will it complain?
Maybe the cmp box isn't used?

bigsofty

Oooh, added, -funkeymunky, it was not perturbed in the slightest... not good!  :P
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Kitty Hello

OK. Worked for me. Are you sure you added it to "Win32" configuration?

bigsofty

Tried this on the laptop, its working fine.  :( I'' do a clean GLB install and see if that helps.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

bigsofty

Hmmm, clean install sorted the problem... no idea what happened. Thanks for looking into it for me Gernot!  :)
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)