On 1 Aug 2003 at 17:29, Samoth wrote:
Hi !
I'm not very familar with unix-based systems and gcc, but I need to change from borland pascal to gnu-pascal on Windows (and later on other os', too). But as soon as I try to configure the system I got the first problems and the docs aren't very helpful at all.
My problem is that most of my old projects need units from several paths on different drives, so I need to add more than one searchpath, but I don't know what is meant by dir[:dir...]. (The ':' follows after the drive-char in windows, so I wanted to now the usage of this seperator.)
Perhabs someone could do an example with two unit-paths ( 'a:\Units1' and 'b:\Units2' ) ?
It would help to know what version of what you are using. What is the output of "gpc -v" ?
To answer your question, if you are using a Mingw compiler, then you would do something like this: "gpc foo.pas --automake --unit-path=c:\gpc\obj;c:\gpc\sys"
Another problem is to use the cfg-file with gpcc.exe The lines with the paths seemed to be ignored, because the output of the arguments passed to gpc.exe does not include them.
My config file looks like
-U a:\unit1;b:\Unit1\ -E g:\exe\
Avoid the leading space, and avoid the trailing back slash - e.g., -Ua:\unit1;b:\Unit1
With more recent versions of GPC, you could just set the environment variable "GPC_UNIT_PATH" in the command window, before you start using GPC. - e.g., set GPC_UNIT_PATH=c:\gpc\obj;c:\gpc\sys;f:\myprog\foo
I have something like this in the batch file that sets up the environment before I start using the command line compiler.
PS: the gpcc program is being updated constantly. If you want a more recent version, let me know, and I'll email it to you.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/