This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
谢谢。我举个例子,我经常调用的函数unsigned int a1()和unsigned int a2()放在文件aaa.c中,我在工程1中aaa.c这个文件参加编译,整个工程没问题。我现在想在工程2中调用a1和a2两个函数,但不想aaa.c参加编译,就是想把aaa作为库函数进行调用,怎样实现? 您说新建工程的时候,选择生成的文件是.lib, 不是.out 即可,我不是很明白,单个文件可以选择生成文件的类型吗?aaa.lib怎样生成?
就是将aaa.c生成aaa.lib啊
aaa,c中包含a1()和a2()
怎么生成,就是在新建aaa.pjt的时候,选择输出类型是.lib 而不是.out 即可