我在工程中只写了一个cpp文件内有:
extern "C" __declspec(dllexport) int __stdcall Test(int p)
{
return p*p;
}
生成了一个TEST.lib库.
在其它工程中加入了这个LIB,
并用了
extern "C" __declspec(dllimport) int  __stdcall Test(int);来生明
可出错了:
--------------------Configuration: aaa - Win32 Debug--------------------
Linking...
LINK : fatal error LNK1104: cannot open file "D:\Documents.obj"
Error executing link.exe.aaa.exe - 1 error(s), 0 warning(s)
请各位高手指证!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!