LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 08-02-2005, 06:12 AM   #1
bigapple
LQ Newbie
 
Registered: Oct 2004
Location: Hangzhou.China
Distribution: Suse 9.3 | redhat 9.0 | Solaris 10
Posts: 29

Rep: Reputation: 15
xlC_r and CC compile


hi ,all
I have written some C program on AIX box,and I first use CC compiler to compile it ,and it be successful compiled and linked, I can run the program for a correct result.
But I try use the IBM's compiler --xlC_r to compile the same code, I failed to compile the .c files to .o files.
And then I use CC to compile the .c files to .o files,and then use xlC_r to link them together for a executable file. I've got success, but the executable runs for a wrong result.
So I want to know what's the difference between these two compiler?And how can i modfiy my program to make it successful compiled with xlC_r compiler.
 
Old 08-02-2005, 08:26 AM   #2
Yordan
Member
 
Registered: Nov 2004
Posts: 57

Rep: Reputation: 15
what is CC ? Is it a lind to the gnu cc ?
 
Old 08-02-2005, 09:45 PM   #3
bigapple
LQ Newbie
 
Registered: Oct 2004
Location: Hangzhou.China
Distribution: Suse 9.3 | redhat 9.0 | Solaris 10
Posts: 29

Original Poster
Rep: Reputation: 15
CC is a standard UNIX C compiler,and GNU CC we called it GCC,
 
Old 08-03-2005, 03:51 AM   #4
Yordan
Member
 
Registered: Nov 2004
Posts: 57

Rep: Reputation: 15
Quote:
Originally posted by bigapple
CC is a standard UNIX C compiler
OK, sorry.
I just wanted to understand the difference, on your AIX systems. Usually, on AIX systems, cc and CC are the standard IBM AIX c compiler. So, I don't clearly see the difference between using CC and IBM c compiler...
Except if you were meaning understanding the difference between CC and xlC_r in the same IBM C compiler environment ? Then "man cc" should help.
 
Old 08-18-2005, 09:41 PM   #5
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 121Reputation: 121
What errors do you see while compiling?

What version of AIX are you using? Also which version of Visual Age?

Code:
# oslevel
# lslpp -l vacpp*
# lslpp -l xlC*
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile .c p4inkill4 Linux - Newbie 4 10-28-2005 03:26 PM
How do I compile? EliasAlucard Linux - Newbie 13 06-04-2005 12:15 AM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
2.6.5 compile - i just don't get it bugsbunny Slackware 27 06-18-2004 09:55 AM
Compile Sifvion Programming 2 07-19-2002 09:20 AM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 04:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration