What is clang equivalent to -no- undefined gcc?

I am trying to create a project on Mac OS X using clang, and it does not work at the connection stage with ld: unknown option: --no-undefined, which is intended to be created using gcc. What is the clang equivalent for this option? (Please do not advise using gcc instead of clang.)

In addition, the more general question is, is there any resource where you can find some kind of “mapping” between the differences between gcc and clang (linker) options?

Thank.

+4
source share
1 answer

OS X linker. @rubenvb, , , Apple binutils. man ld "undefined", :

- undefined                  , undefined. : , , dynamic_lookup. .

, -Wl,--no-undefined -Wl,-undefined,error. , .

+6

All Articles