From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arthur Gold To: help-gcc@gnu.org Subject: Re: compiler problem Date: Thu, 02 Dec 1999 13:44:00 -0000 Message-id: <3846E64F.C0D653B9@bga.com> References: <825rhv$5vn$1@qvarsx.er.usgs.gov> X-SW-Source: 1999-12/msg00035.html 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 -- ? From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arthur Gold To: help-gcc@gnu.org Subject: Re: compiler problem Date: Fri, 31 Dec 1999 22:24:00 -0000 Message-ID: <3846E64F.C0D653B9@bga.com> References: <825rhv$5vn$1@qvarsx.er.usgs.gov> X-SW-Source: 1999-12n/msg00035.html Message-ID: <19991231222400.W3dJekrwA0q-dqZo2UPXWe9T-D_8C1QQe2JTcXDJ3ZA@z> 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 -- ?