×
UNIX.COM Login
Username:
Password:  
Show Password






👤


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

Tags
cprogramming, ibm aix, mq

👤 Login to reply

 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-29-2017
digioleg54 digioleg54 is offline
Registered User
 
Join Date: Jan 2012
Last Activity: 25 June 2018, 7:40 AM EDT
Posts: 112
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 12-29-2017
rbatte1 rbatte1 is offline Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 16 July 2018, 10:44 AM EDT
Location: Lancashire, UK
Posts: 3,584
Thanks: 1,592
Thanked 706 Times in 633 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 01-06-2018
agent.kgb agent.kgb is offline
Registered User
 
Join Date: Feb 2015
Last Activity: 9 July 2018, 11:01 AM EDT
Location: basement, Lubyanka, Moscow
Posts: 344
Thanks: 8
Thanked 99 Times in 88 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
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 12:50 PM
java compile and run program help cokedude UNIX for Advanced & Expert Users 1 10-09-2012 04:26 PM
Can someone compile and run a program on AIX 6.1 please? StuBob Programming 2 03-09-2011 06:28 AM
Makefile problem - How to run module load in a Makefile hernandinho UNIX for Advanced & Expert Users 2 04-13-2009 10:20 AM
Compile and Run C Program on Solaris selva_ss Programming 0 02-21-2008 12:52 PM



All times are GMT -4. The time now is 02:25 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.