by Kent » Thu Oct 30, 2003 10:45 pm
I meant, for example...one of the listed valid directories is 'source'. Must I use 'source', or could I use, say, 'src' or 'mysource', etc?
Basically, if you have your source files in, say, C:\Documents\MySource, do:
hc @source=c:\documents\mysource filename.hug
where filename.hug lives in MySource, not in the directory you're executing hc from. If you want to put the output .hex file into Games, say:
hc @source=c:\documents\mysource @object=c:\Games filename.hug
'source', 'object', and others are the directory locations you can specify, found in the manual or by typing 'hc @list'.
Does that clear up what these "directories" are in the compiler invocation?
On a Windows box (or DOS or Unix, etc.) it's possible to set environment variables* for HUGO_SOURCE, HUGO_OBJECT, etc. so that you don't have to set these up every time:
For instance, on my Windows machine, I have the following set:
HUGO_LIB=c:\hugo\lib
HUGO_OBJECT=c:\hugo\hex
HUGO_SAVE=c:\hugo\save
HUGO_TEMP=c:\temp
Which tells the compiler and engine where to look for library files, game files, where to save, and what to use for tempfiles during compilation.
I, um, think this is also in the manual somewhere. I'll have to check when I get a chance.
*If setting environment variables is beyond the scope of this discussion, kindly ignore me.
[quote]I meant, for example...one of the listed valid directories is 'source'. Must I use 'source', or could I use, say, 'src' or 'mysource', etc?[/quote]
Basically, if you have your source files in, say, C:\Documents\MySource, do:
hc @source=c:\documents\mysource filename.hug
where filename.hug lives in MySource, not in the directory you're executing hc from. If you want to put the output .hex file into Games, say:
hc @source=c:\documents\mysource @object=c:\Games filename.hug
'source', 'object', and others are the directory locations you can specify, found in the manual or by typing 'hc @list'.
Does that clear up what these "directories" are in the compiler invocation?
On a Windows box (or DOS or Unix, etc.) it's possible to set environment variables* for HUGO_SOURCE, HUGO_OBJECT, etc. so that you don't have to set these up every time:
For instance, on my Windows machine, I have the following set:
HUGO_LIB=c:\hugo\lib
HUGO_OBJECT=c:\hugo\hex
HUGO_SAVE=c:\hugo\save
HUGO_TEMP=c:\temp
Which tells the compiler and engine where to look for library files, game files, where to save, and what to use for tempfiles during compilation.
I, um, think this is also in the manual somewhere. I'll have to check when I get a chance.
*If setting environment variables is beyond the scope of this discussion, kindly ignore me.