Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Error with KPIC option when compiling using cc for a C file with 12.3

eldienerDec 29 2013 — edited Dec 30 2013

When I attempt to compile a .c file with cc, I get an error that the -KPIC option is unrecognized. My command line is:

"cc" -g -erroff=%none -KPIC -DBOOST_ALL_NO_LIB=1 -I"../../.." -c -o "arithmetic_c.o" "arithmetic.c"

and the error is:

cc: error: unrecognized command line option ‘-KPIC’

Is this a bug in the C compile ( notice the output of the error ) or is the -KPIC option not used for C compilation ? If the latter is there an equivalent option for -KPIC when doing C compilation ?

This post has been answered by Steve.Clamage-Oracle on Dec 30 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 27 2014
Added on Dec 29 2013
2 comments
1,816 views