原贴见
http://bbs.pediy.com/showthread.php?s=&threadid=17711
我用作者提供的代码直接编译,却无法连接
使用Debug方式编译时,错误信息如下
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
VBLINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
D:\LinkWithVC\LinkWithVC.exe : fatal error LNK1120: 1 unresolved externals
使用Release方式编译时,错误信息如下
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
LIBC.lib(free.obj) : error LNK2001: unresolved external symbol __imp__HeapFree@12
LIBC.lib(heapinit.obj) : error LNK2001: unresolved external symbol __imp__HeapFree@12
LIBC.lib(sbheap.obj) : error LNK2001: unresolved external symbol __imp__HeapFree@12
LIBC.lib(heapinit.obj) : error LNK2001: unresolved external symbol __imp__HeapDestroy@4
LIBC.lib(heapinit.obj) : error LNK2001: unresolved external symbol __imp__HeapCreate@12
LIBC.lib(heapinit.obj) : error LNK2001: unresolved external symbol __imp__VirtualFree@12
LIBC.lib(sbheap.obj) : error LNK2001: unresolved external symbol __imp__VirtualFree@12
LIBC.lib(sbheap.obj) : error LNK2001: unresolved external symbol __imp__HeapAlloc@12
LIBC.lib(sbheap.obj) : error LNK2001: unresolved external symbol __imp__VirtualAlloc@16
LIBC.lib(sbheap.obj) : error LNK2001: unresolved external symbol __imp__HeapReAlloc@16
LIBC.lib(sbheap.obj) : error LNK2001: unresolved external symbol __imp__IsBadWritePtr@8
D:\LinkWithVC\LinkWithVC.exe : fatal error LNK1120: 8 unresolved externals
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!