Community
cancel
Showing results for 
Search instead for 
Did you mean: 
karoyakani
Beginner
215 Views

allow-shlib-undefined link option?

Does icc/icpc C/C++ compiler have "--(no)-allow-shlib-undefined" link option?
0 Kudos
1 Reply
Feilong_H_Intel
Employee
215 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