Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.

allow-shlib-undefined link option?

karoyakani
Beginner
466 Views
Does icc/icpc C/C++ compiler have "--(no)-allow-shlib-undefined" link option?
0 Kudos
1 Reply
Feilong_H_Intel
Employee
466 Views
Hi karoyakani,

--[no-]allow-shlib-undefined is a linker option. In order to pass it to ld, you may use either of the following icc options.

-Xlinker

pass directly to the linker for processing

-Wl,[,,...]

pass options o1, o2, etc. to the linker for processing

For example, you may do
icc -Xlinker --allow-shlib-undefined
or
icc -Wl,--allow-shlib-undefined

Please note that icc will pass everything after -Xlinker to ld, which is different from -Wl.

Thanks,
Feilong

Reply