c - GCC flags during linking -
is there situation in flags such -ansi, -wall, , -pedantic might relevant during linking part of process?
what -o optimization flags? relevant during compile steps or relevant during linking?
thanks!
in practice, no - in theory, -ansi
dialect option, conceivably impact linking. i've seen similar behaviour older versions of clang utilize libc++ or libstdc++, when using c++11 or c++03 respectively. find easier set these flags in cc
variable: cc = gcc -std=c99
or cc = gcc -std=c90
(ansi).
i invoke c++ (or c) $cxx
or $cc
out of habit. , passed default configure scripts.
i'm not aware of beingness issue c, long abi , calling conventions haven't changed. c++, on other hand, requires changes c++ runtime back upwards new language features. in either case, it's compiler invokes linker relevant libraries.
c gcc compilation linker
No comments:
Post a Comment