Welcome to iraf.net Thursday, March 28 2024 @ 09:52 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 xc error
   
prajwel
 05/06/2014 12:22PM (Read 1490 times)  
+----
Newbie
curious

Status: offline


Registered: 02/24/2014
Posts: 7
I've just started to learn SPP programming, and the very start ended in a unprecedented predicament.
I had saved this code as hello.x


PHP Formatted Code
# hello

task hello = t_hello_world

procedure t_hello_world ()

begin
        call printf ("hello,world!\n")
end


when I
PHP Formatted Code
xc hello.x
it, it compiles it as hello.c and gives out the following message

PHP Formatted Code
hello.x:
   sys_runtask:
   t_hello_world:
hello.f:
   sysruk:
   thelld:
/iraf/iraf/unix/hlib/f77.sh: line 200: gcc: command not found
 


please help me with this Frown Confused

 
Profile Email
 Quote
fitz
 05/06/2014 01:56PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

If this is a Mac system then the XCode tools (i.e. GCC) needs to be installed separately from the App Store, specifically you will need the "command-line tools" package. On a Linux system, the developer tools aren't always installed by default and so must be installed separately as well from the package installer. SPP is compiled to C code using XC and F2C that come with IRAF, the actual C code is then compiled with GCC which is assumed to be on the system.

 
Profile Email
 Quote
prajwel
 05/06/2014 02:38PM  
+----
Newbie

Status: offline


Registered: 02/24/2014
Posts: 7
Thank you so much. I very much appreciate your help and sorry to bug you with such trivial questions.

 
Profile Email
 Quote
   
Content generated in: 0.12 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login