GTuner and header/include file locations

Gtuner IV general support. Operation, questions, updates, feature request.

GTuner and header/include file locations

Postby Liquidkhaos » Fri Dec 08, 2023 1:20 am

I was wondering about the environment.

I use a PC and I have a path that looks like this

C:\Source\TitanTwo\game1
\game2 etc

my header/include files are over under my documents
ThisPC\Documents\_things1
ThisPC\Documents\_things2 etc

My tuner has NEVER found these files unless I put them in the same folder as the .gpc

I have tried to reference them by creating a folder at \Source\_things and use things like #include "..\ColorLED.gph" or #include "../ColorLED.gph" to no avail. How can I keep things organized better?

I looked for a gtuner setting that would allow me to set the header location(s) and not found it. I think I must have missed something super basic. I know I created some technical debt by copying the headers but now it's time to pay the bill.

Thanks in advance,
User avatar
Liquidkhaos
First Sergeant
First Sergeant
 
Posts: 61
Joined: Fri Sep 22, 2017 11:34 pm
Location: USA Tidewater Virginia

Re: GTuner and header/include file locations

Postby Scachi » Fri Dec 08, 2023 12:11 pm

you are using completely different paths ?
I think your only option is to set the full path to the header files then.
Example:
#include "C:\Users\YOURUSERNAMEHERE\Documents\_things1\ColorLED.gph"

I am not aware of an option to define an additional include search path in gtuner.

A possible workaround is creating a symlink to the directory where your include files are located so you can refer to your include files more easily without having to type your whole path all the time:
in C:\Source\TitanTwo\ create a symlink to C:\Users\YOURUSERNAMEHERE\Documents\

command line (with administrative privileges):
c:
cd Source\TitanTwo
mklink /D inc C:\Users\YOURUSERNAMEHERE\Documents\

the above creates a symlink in c:\Source\TitanTwo\ named "inc"

then you can use it like that from within your C:\Source\TitanTwo\game1\your.gpc:
#include "../inc/_things1\ColorLED.gph"
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: GTuner and header/include file locations

Postby Liquidkhaos » Wed Dec 13, 2023 11:54 pm

The symlink is a good idea. I think I'll use that rather than move the headers. This way I get what I like and I dont have the admin overhead of managing updates/downloads in two places. :)

Thanks!
User avatar
Liquidkhaos
First Sergeant
First Sergeant
 
Posts: 61
Joined: Fri Sep 22, 2017 11:34 pm
Location: USA Tidewater Virginia


Return to Gtuner IV Support

Who is online

Users browsing this forum: No registered users and 80 guests