Jay Michael <jmichael_ll <at> yahoo.com>
2014-02-25 05:50:26 GMT
SETGPC.BAT does not allow me to compile C using gpc:
gpc tc.c -o tc
As installed by dev_gnu_pascal-18.104.22.168.exe, SETGPC.BAT:
I have been able to compile and link Pascal and C (one each) by
only changing PATH.
Separately, I succeeded by appending
c:\prg\gpc\lib\gcc\mingw32\3.4.5\include to C_INCLUDE_PATH.
(After running SETGPC.BAT)
I don't know what to say is wrong. The lack of a trailing slash on
GPC_EXEC_PREFIX results in a horrible mess in one of the attempted
but appending a slash doesn't solve the real problem, because "libexec"
is the wrong path to get to an include directory.
Does GPC have different rules for the EXEC_PREFIX than GCC, so the
lack of a trailing slash is not a mistake for GPC_EXEC_PREFIX?
Does the setting of all of the variables other than PATH date back
to a time before GPC did such an elaborate job of fabricating
directory names? Or before GPC had the target and version wired in?
Is it likely that all I need is to prepend GPC/bin to PATH?
Or do you think I will need some of the other environment variables
when I get around to trying to compile more substantial programs?
program TPAS( INPUT, OUTPUT ) ;
WRITELN( 'end TPAS' ) ;
int main( int argc, char * argv, char * envp )
int i ;
for ( i = 0 ; i < argc ; i++ )
printf( "argv[%d] = \"%s\"\n", i, argv[i] ) ;
Gpc mailing list
Gpc <at> gnu.de