Mein cpp CodeLLD undefined symbol: mainCRTStartup
int main(int argc, char** argv){
}
Ich verwende den folgenden Befehl, es zu kompilieren und verknüpfen:
// I want to read the result ir
clang -S -emit-llvm main.cpp
// I want to compile directly from ir
llc -filetype=obj main.ll
lld -flavor link main.obj // <root>: undefined symbol: mainCRTStartup Link failed
Habe ich etwas verpasst?