Skip to content

使用MSVC,链接时如何忽略默认库(/NODEFAULTLIB)? #4622

Closed Answered by yechao666
yechao666 asked this question in Q&A
Discussion options

You must be logged in to vote
        target:add("ldflags", "-nodefaultlib", {force = true})
        target:add("shflags", "-nodefaultlib", {force = true})

改成这样就解决了

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yechao666
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant