简体   繁体   English

通过命令行在Turbo C ++中出现链接器错误

[英]Linker error in Turbo C++ through Command line

When using Turbo C++ normally, I can include the, say graphics library through Options -> Linker -> Settings. 通常使用Turbo C ++时,我可以通过选项->链接器->设置包括图形库。

But how do I do the same thing in Command Line in DOS (DOSBox)? 但是,如何在DOS(DOSBox)的命令行中执行相同的操作? When I compile using tcc, I get lots of linker errors. 使用tcc进行编译时,出现很多链接器错误。 How do I include the Graphics Library through Command line? 如何通过命令行包含图形库?

使用-L选项将路径添加到您的库,例如

tcc -LC:\LIB hello.cpp 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM