求助VC6.0 cannot open file "ConsoleOut.lib"问题
具体情况是这样的:
首先新建的工程是Win32 console application
然后 在demo.cpp文件中建立了这么一点代码如下:
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<string.h>
#include<conio.h>
#include<windows.h>
#include"ConsoleOut.h"
#pragma comment (lib, "ConsoleOut.lib")
#define NULL 0
还没有开始写main函数,运行的时候就出现下面的错误
LINK : fatal error LNK1104: cannot open file "ConsoleOut.lib"
我是在网上找的别人的源代码,用他写好的源代码运行没有错误,但是我自己想重新把他的代码自己写一遍,但是自己弄的时候就出现这个错误了。
在网上收了一下各种解决方法,如:“在vc6.0中【工程】-【设置】-【连接】-【对象/库模块】,然后将X.lib
添加进去,记得要和已有的库文件之间有空格”等等办法
最后在D:\Program Files\Microsoft Visual Studio\VC98\Lib中把这个X.lib添加进去,
链接以后又出现新的错误:LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/test1.exe : fatal error LNK1120: 1 unresolved externals
哪位大神给点帮助啊!