Hello All,
The Support page says you can risk support here so I will try. I am trying to port from an old SVS Pascal compiler under SCO Unix to Linux using GPC, and having a few problems and very little resources to find answers.
In the main part of the program I am using this: InputDir := ARGV[2]^; when compiled using so special compiler parameters, I get this: editpars.pas:400: undeclared identifier `Argv' (first use this function) editpars.pas:400: (Each undeclared identifier is reported only once editpars.pas:400: for each function it appears in.) editpars.pas:400: subscripted object is not an array or string
I am stumped and can't find any GPC references to using ARGV. Any ideas?
Adam
----------------------------------------------------------------------- C. Adam Oldham Marconi Commerce Systems Inc. Software Engineer 7300 West Friendly Ave. adam.oldham@marconi.com Greensboro, NC 27420-2087 Phone : 336.547.5952 Fax : 336.547.5079 ----------------------------------------------------------------------- This document contains confidential information of Marconi Commerce Systems Inc. In consideration of the receipt of this document, the recipient agrees not to reproduce, copy, use or transmit this document and/or the information contained herein, in whole or in part, or to suffer such actions by others, for any purpose except with written permission, first obtained, of Marconi Commerce Systems Inc., and further agrees to surrender the same to Marconi Commerce Systems Inc. upon demand. -----------------------------------------------------------------------
Oldham, Adam wrote:
InputDir := ARGV[2]^; [...] editpars.pas:400: undeclared identifier `Argv' (first use this function)
InputDir := ParamStr (2);
Hope this helps,
Peter