如何在C源代码中包含库文件? [英] How to include library files in C source code?
本文介绍了如何在C源代码中包含库文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello guys
我想告诉编译器在代码中包含特定的库。例如:
Hello guys
I want to tell the compiler to include specific libraries in code. for example:
#ifdef LIBA
//code to include LIBA.LIB
#endif
#ifdef LIBB
//code to include LIBB.LIB
#endif
在上面的例子中是否有任何C指令包含LIBA,LIBB?
谢谢你转发
mr.abzadeh
Is there any C directive to include LIBA, LIBB in above example?
Thanks in forward
mr.abzadeh
推荐答案
发布这个问题只有一个合理的理由 - 你活着在没有谷歌的地方
假设你在谈论Visual Studio
http://msdn.microsoft.com/en-us/library /7f0aews7(v=vs.80).aspx [ ^ ]
http://support.microsoft.com/kb/153901 [ ^ ]
There is only one valid reason for posting this question - you live in a place without Google
Assuming you are talking about Visual Studio
http://msdn.microsoft.com/en-us/library/7f0aews7(v=vs.80).aspx[^]
http://support.microsoft.com/kb/153901[^]
这篇关于如何在C源代码中包含库文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文