Frank Heckenbach wrote:
Toby Ewing wrote:
--automake does work, and so does gp --no-check-platform. Thank you! I'm particularly pleased that I can use gp, which I really like.
Thanks.
gp.info makes reference to the possibility of using a .gp file to store user-specific options, but I've had no luck with this, either in the gp directory, or in the source directory. I just made a file .gp with --no-check-platform in it. Is there more involved than this?
Yes -- I have to implement it. ;-) GP is still work in progress. Parts of the config file support exists, but I have to finish them, I currently I'm busy with GPC.
For now, you could use a small script or shell alias to add the option.
Frank
I'm no expert, but here are things I did on SuSE 8.1 (I use Red Hat 9.0 for a gateway server but no development).
(I installed GPC and GCC in a /home/rick subdirectory so it is separate from system directories.)
You need to create some "environment" variables to make the GCC back end compile, link, and run programs(very important) from unusual directories. These variables are; C_INCLUDE_PATH, LIBRARY_PATH, and LD_LIBRARY_PATH. Set these variables in your shell configuration script. For user logins on both SuSE and RH this is /home/rick/.bashrc . For example; C_INCLUDE_PATH=/usr/include:/usr/local/include export C_INCLUDE_PATH
Further, you can create a shell alias like this; gpcc='/home/rick/compiler/bin/gpc --executable-file-name --automake --unit-path=/home/rick/gpc/compiler/lib/gcclib/ ... ' export gpcc
Now you should be able to compile and link by typing $gpcc program.pas . Also, your programs will find their libraries at runtime.
Of course, none of this will work if your name is not rick.