程序在编译时没有问题,链接的时候弹出如下问题:
test.obj : error LNK2001: unresolved external symbol _fclose
test.obj : error LNK2001: unresolved external symbol _fread
test.obj : error LNK2001: unresolved external symbol _rewind
test.obj : error LNK2001: unresolved external symbol _ftell
test.obj : error LNK2001: unresolved external symbol _fseek
test.obj : error LNK2001: unresolved external symbol _fopen
我在函数的开始部分已经include 了stdio.h和string.h可是还是不行,
我的link的内容如下:
ernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib vfw32.lib winmm.lib /nologo /base:"0x03140000" /version:1.1 /entry:"WinMain@16" /subsystem:windows /pdb:none /map:"Release/test.map" /machine:I386 /nodefaultlib /out:"Release/test.exe"
test.obj : error LNK2001: unresolved external symbol _fclose
test.obj : error LNK2001: unresolved external symbol _fread
test.obj : error LNK2001: unresolved external symbol _rewind
test.obj : error LNK2001: unresolved external symbol _ftell
test.obj : error LNK2001: unresolved external symbol _fseek
test.obj : error LNK2001: unresolved external symbol _fopen
我在函数的开始部分已经include 了stdio.h和string.h可是还是不行,
我的link的内容如下:
ernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib vfw32.lib winmm.lib /nologo /base:"0x03140000" /version:1.1 /entry:"WinMain@16" /subsystem:windows /pdb:none /map:"Release/test.map" /machine:I386 /nodefaultlib /out:"Release/test.exe"
解决方案 »
- 在VS2005中添加头文件目录
- 该SQL.Format("Select * From 某表 Where FactCode =d%", 字符串变量)为何不对?
- 这样释放二维数组还是有内存泄露啊
- 高分求救,关于ACCESS数据库(ODBC)的弱问题。
- CPoint CSize 难道在声名时就有了对应的坐标模式?
- 一个关于DLL的问题
- 为什么别人的机子下栽不了我的OCX控件?急
- 如何控制窗口中CButton ,CEdit, Static的可见与不可见呢?
- VC中应用ADO访问ACCESS数据库
- 命令窗口中运行MFC程序的问题
- 急呀!怎样利用HTTP POST模拟表单上传文件呀?
- 请问,瑞星的那个小狮子是怎么做出来的?
LIBC.LIB 编译参数是_MT
如果是调试的话就使用 LIBCD.LIB 编译参数是 _DEBUG ,
嗯,尝试一下吧。