1833016 Members
2768 Online
110048 Solutions
New Discussion

Linker error

 
SOLVED
Go to solution
Anand_30
Regular Advisor

Linker error

I have ported some Objective C code from one 10.20 machine to another 10.20 machine. However, I am not able to compile the code in the current 10.20 machine. I am getting the warning message:

"/usr/bin/ld: (Warning) Linker features were used that may not be supported in future releases. The +vallcompatwarnings option can be used to display more details, and the ld(1) man page contains additional information. This warning can be suppressed with the +vnocompatwarnings option."

This error did not occus while compiling the code in the previous 10.20 machine. Both the machines have the same settings except that in the current machine there is no ANSI C compiler installed whereas in the previous machine ANSI C was installed. We are using 'gcc' to compile the code in both the machines.

Can anyone tell me under what circumstances this error occurs and what can be done to solve this problem.

Regards,
Anand
3 REPLIES 3
Tim Adamson_1
Honored Contributor
Solution

Re: Linker error

Anand,

It is not an error but a warning and can be ignored.

The most likely cause of the warning appearing on the newer server is because ld has been patched to a more recent version than the other system. Compare the patch details for ld on both servers.


Tim.
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
ranganath ramachandra
Esteemed Contributor

Re: Linker error

this is not an error, just a warning and does not indicate that your build failed. if you build with '-v' in the environment variable CCOPTS, you should see the difference between the different commands that the ansi C compiler and gcc send to the linker. as the message says, you can include "+vnocompatwarnings" option in the environment variable LDOPTS if you want the linker to not print this message.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

ranganath ramachandra
Esteemed Contributor

Re: Linker error

and, as the message says, you can include "+vallcompatwarnings" option in the environment variable LDOPTS to see what linker option (sent by gcc) made the linker give you this warning.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo