Unix/Linux Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Error when run makefile to compile C program

AIX


Tags
cprogramming, ibm aix, mq

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-29-2017   -   Original Discussion by digioleg54
digioleg54's Unix or Linux Image
digioleg54 digioleg54 is offline
Registered User
 
Join Date: Jan 2012
Last Activity: 29 December 2017, 10:39 AM EST
Posts: 102
Thanks: 17
Thanked 3 Times in 3 Posts
Error when run makefile to compile C program

I have a make file for C program, which always gives the error



Code:
ld: 0711-738 ERROR: Input file ../src/file_name.o
XCOFF32 object files are not allowed in 64 mode

Does anybody know the problem?

Thanks for contribution
Sponsored Links
    #2  
Old Unix and Linux 12-29-2017   -   Original Discussion by digioleg54
rbatte1's Unix or Linux Image
rbatte1 rbatte1 is offline Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 23 February 2018, 10:02 AM EST
Location: Lancashire, UK
Posts: 3,487
Thanks: 1,518
Thanked 679 Times in 612 Posts
I regret that my crystal ball has a hangover from its Christmas indulgence.

Without the makefile and the c-program, I will be unable to spot an error, however the digits suggest that you may have a 32-bit library item trying to be bound into a 64-bit executable. I may be completely wrong though.........



Robin
Sponsored Links
    #3  
Old Unix and Linux 01-06-2018   -   Original Discussion by digioleg54
agent.kgb's Unix or Linux Image
agent.kgb agent.kgb is offline
Registered User
 
Join Date: Feb 2015
Last Activity: 22 February 2018, 4:27 PM EST
Location: basement, Lubyanka, Moscow
Posts: 342
Thanks: 8
Thanked 98 Times in 87 Posts
It seems, that you try to compile a program in 64-bit mode, but forget to set the variable OBJECT_MODE=64 or vice versa.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to compile and run the ProC (*.pc) program? prakashs1218 Programming 2 08-19-2015 01:50 PM
java compile and run program help cokedude UNIX for Advanced & Expert Users 1 10-09-2012 05:26 PM
Can someone compile and run a program on AIX 6.1 please? StuBob Programming 2 03-09-2011 07:28 AM
Makefile problem - How to run module load in a Makefile hernandinho UNIX for Advanced & Expert Users 2 04-13-2009 11:20 AM
Compile and Run C Program on Solaris selva_ss Programming 0 02-21-2008 01:52 PM



All times are GMT -4. The time now is 11:49 AM.