From mboxrd@z Thu Jan 1 00:00:00 1970 From: bogeajis@usgs.gov (Nicole Bogeajis) To: help-gcc@gnu.org Subject: compiler problem Date: Thu, 02 Dec 1999 05:42:00 -0000 Message-id: <825rhv$5vn$1@qvarsx.er.usgs.gov> X-SW-Source: 1999-12/msg00020.html 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/. ~ 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: bogeajis@usgs.gov (Nicole Bogeajis) To: help-gcc@gnu.org Subject: compiler problem Date: Fri, 31 Dec 1999 22:24:00 -0000 Message-ID: <825rhv$5vn$1@qvarsx.er.usgs.gov> X-SW-Source: 1999-12n/msg00020.html Message-ID: <19991231222400.fEWrVD6WYk6ililk9ptwi6xtRWyg9T_4sOA-lxU6XFU@z> 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/. ~ 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