FW: summary: gcc compilation problems

From: Kirkland, Mike # IHTUL <mike.kirkland_at_ndchealth.com>
Date: Fri, 06 Jul 2001 14:09:54 -0500

Thanks to Kevin Partin, Allan E Johannesen, WScates_at_amc.jccbi.gov
<mailto:WScates_at_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_at_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
mike.kirkland_at_ndchealth.com <mailto:mike.kirkland_at_ndchealth.com>
NDC®| HEALTH
6100 South Yale Avenue
Suite 1900
Tulsa, OK 74136
 
Received on Fri Jul 06 2001 - 19:15:44 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT