compiler problem
Arthur Gold
agold@bga.com
Thu Dec 2 13:44:00 GMT 1999
Nicole Bogeajis wrote:
>
> I have these programs writen in C that were running on our DG systems. We
> recently moved them to our Sun system. When i try to run them from this new
> location, i get the error
>
> ksh: qw_check.run: cannot execute
>
> It was suggested to me that the reason we are getting this error is that the
> program needs to be re-compiled on the Sun. I was "man"-ing the compile
> command cc on the Sun to try to come up with a compile command on this
> system. The programs were originally compiled with an executable file that
> contained the commands.
>
> esqlc $1.sc
> cc -o $1.run $1.c -L /usr/opt/ingres/lib -l ingres -l sd -l m
> cp $1.run /jaxrpt/RUN/.
> ~
>
Should be: cc -o $1.run $1.c -L/usr/opt/ingres/lib -lingres -lsd -lm
[i.e. lose the spaces]
(assuming the existence of libingres and libsd in /usr/opt/ingres/lib or
somewhere in your path)
HTH,
--ag
> This compile command does not work on the Sun. I get the error:
>
> $ ./make qw_check_new
> ESQL qw_check_new.sc:
> cc1: Invalid option `-L'
> cc1: Invalid option `-l'
> cc1: Invalid option `-l'
> cc1: Invalid option `-l'
> cc1: m: No such file or directory
> cp: cannot access qw_check_new.run
>
> do you know what changes i
> need to make to fix this problem...it was suggested that i use gcc as a
> compiler...sorry for my vagueness on the
> subject...thats about all i know about it.
>
> Thank you for any help or suggestions you could give me
>
> Nicole
> bogeajis@usgs.gov
--
Artie Gold, Austin, TX (finger the cs.utexas.edu account for more info)
mailto:agold@bga.com or mailto:agold@cs.utexas.edu
--
?
More information about the Gcc-help
mailing list