From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653652421722.tru64-unix-managers.marc@archive.invalid> From: "Kirkland, Mike # IHTUL" Date: Fri, 06 Jul 2001 19:09:54 +0000 To: tru64-unix-managers Subject: FW: summary: gcc compilation problems X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653652421722 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary_(ID_5Q8Hh15EagO/F7bi4APRIg)" This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --Boundary_(ID_5Q8Hh15EagO/F7bi4APRIg) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Thanks to Kevin Partin, Allan E Johannesen, WScates@amc.jccbi.gov , Chris Bryant, Paul A Sand. =20 try ./a.out. you are executing an a.out that is in your path, not your current directory. =20 try: which a.out then try: ./a.out i.e. it's your path. =20 Hi, try ./a.out to make sure you're running the a.out in the current directory. =20 =20 -----Original Message----- From: Kirkland, Mike # IHTUL=20 Sent: Friday, July 06, 2001 1:55 PM To: 'tru64-unix-managers@ornl.gov' Subject: gcc compilation problems Hi everyone, =20 I just installed gcc-2.95.3 on my server running tru64 v4.0f. =20 When i try to compile a c program I get some strange output. I compile = a program like this: /usr/local/bin/gcc new2.c =20 new2.c contains this code =20 #include main() { printf("This is a C program\n"); } =20 =20 it does not return any errors and returns an a.out, but a.out executed = (or any other c code)returns output like this. =20 ratbert> a.out sin(0.200000) =3D 0.198669, cos(0.200000) =3D 0.980067 sin(0.201000) =3D 0.199649, cos(0.201000) =3D 0.979867 sin(0.202000) =3D 0.200629, cos(0.202000) =3D 0.979667 sin(0.203000) =3D 0.201609, cos(0.203000) =3D 0.979466 sin(0.204000) =3D 0.202588, cos(0.204000) =3D 0.979264 sin(0.205000) =3D 0.203567, cos(0.205000) =3D 0.979061 sin(0.206000) =3D 0.204546, cos(0.206000) =3D 0.978857 sin(0.207000) =3D 0.205525, cos(0.207000) =3D 0.978652 sin(0.208000) =3D 0.206503, cos(0.208000) =3D 0.978446 sin(0.209000) =3D 0.207482, cos(0.209000) =3D 0.978239 sin(0.210000) =3D 0.208460, cos(0.210000) =3D 0.978031 sin(0.211000) =3D 0.209438, cos(0.211000) =3D 0.977822 sin(0.212000) =3D 0.210416, cos(0.212000) =3D 0.977612 . . .=20 sin(2.195000) =3D 0.811429, cos(2.195000) =3D -0.584451 sin(2.196000) =3D 0.810844, cos(2.196000) =3D -0.585262 sin(2.197000) =3D 0.810258, cos(2.197000) =3D -0.586073 sin(2.198000) =3D 0.809672, cos(2.198000) =3D -0.586883 sin(2.199000) =3D 0.809085, cos(2.199000) =3D -0.587692 =20 any ideas on how to resolve this? =20 Thanks in advance =20 Mike Kirkland Unix System Administrator National Data Corporation Phone: (918) 481-2817 Fax: (918) 481-4275 mike.kirkland@ndchealth.com =20 NDC=AE| HEALTH 6100 South Yale Avenue Suite 1900 Tulsa, OK 74136 =20 --Boundary_(ID_5Q8Hh15EagO/F7bi4APRIg) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 8BIT
Thanks to Kevin Partin, Allan E Johannesen, WScates@amc.jccbi.gov, Chris Bryant, Paul A Sand.
 
try ./a.out. you are executing an a.out that is in your path, not your current directory.
 

try:

which a.out

then try:

./a.out

i.e. it's your path.

 

Hi, try

./a.out

to make sure you're running the a.out in the current

directory.

 

 

-----Original Message-----
From: Kirkland, Mike # IHTUL
Sent: Friday, July 06, 2001 1:55 PM
To: 'tru64-unix-managers@ornl.gov'
Subject: gcc compilation problems

Hi everyone,
 
I just installed gcc-2.95.3 on my server running tru64 v4.0f.
 
When i try to compile a c program I get some strange output. I compile a program like this:
/usr/local/bin/gcc new2.c
 
new2.c contains this code
 
#include <stdio.h>

main()
{
        printf("This is a C program\n");
}
 
 
it does not return any errors and returns an a.out, but a.out executed (or any other c code)returns output like this.
 
ratbert> a.out
sin(0.200000) = 0.198669, cos(0.200000) = 0.980067
sin(0.201000) = 0.199649, cos(0.201000) = 0.979867
sin(0.202000) = 0.200629, cos(0.202000) = 0.979667
sin(0.203000) = 0.201609, cos(0.203000) = 0.979466
sin(0.204000) = 0.202588, cos(0.204000) = 0.979264
sin(0.205000) = 0.203567, cos(0.205000) = 0.979061
sin(0.206000) = 0.204546, cos(0.206000) = 0.978857
sin(0.207000) = 0.205525, cos(0.207000) = 0.978652
sin(0.208000) = 0.206503, cos(0.208000) = 0.978446
sin(0.209000) = 0.207482, cos(0.209000) = 0.978239
sin(0.210000) = 0.208460, cos(0.210000) = 0.978031
sin(0.211000) = 0.209438, cos(0.211000) = 0.977822
sin(0.212000) = 0.210416, cos(0.212000) = 0.977612
.
.
. 
sin(2.195000) = 0.811429, cos(2.195000) = -0.584451
sin(2.196000) = 0.810844, cos(2.196000) = -0.585262
sin(2.197000) = 0.810258, cos(2.197000) = -0.586073
sin(2.198000) = 0.809672, cos(2.198000) = -0.586883
sin(2.199000) = 0.809085, cos(2.199000) = -0.587692
 
any ideas on how to resolve this?
 
Thanks in advance
 
Mike Kirkland
Unix System Administrator
National Data Corporation
Phone:  (918) 481-2817
Fax:      (918) 481-4275
NDC�| HEALTH
6100 South Yale Avenue
Suite 1900
Tulsa, OK 74136
 
--Boundary_(ID_5Q8Hh15EagO/F7bi4APRIg)--