Welcome![Sign In][Sign Up]
Location:
Search - error LNK2001

Search list

[Othererror

Description: VC编译出错的问题解决方法。比如:LNK2001解决外部符号错误,链接错误unresolved external symbol _main的解决
Platform: | Size: 50905 | Author: xmaker | Hits:

[Graph programopencv两个常见的编译错误

Description:

在利用opencv库进行编程中两个常见的问题的解决方法,十分有效!

以openCV的使用为例,并结合个实验经验,总结一下在使用其它库进行编程时VC环境下编译与链接时经常遇到的两个错误的解决办法.

1.编译错误

问题描述:编译时,出现编译如下编译错误:

fatal error C1083: Cannot open include file: 'cv.h': No such file or directory

意思是找不到语句 #include "cv.h" 的cv.h头文件.

解决办法:在工程环境下,Tools->Options->Directories,在页内Show directories for下拉列表框中选择 Include files,然后在Directories列表框中添加上cv.h的路径,
如:D:\OPENCV\CV\INCLUDE,再编译就能找到cv.h头文件了.

2.链接错误

问题描述:链接时出现如下错误:

Linking...

test.obj : error LNK2001: unresolved external symbol _cvCanny

Debug/cvtest.exe : fatal error LNK1120: 1 unresolved externals

解决办法:明明知道cvCanny函数(_cvCanny是纯C编译生成的目标文件的函数名)的原型说明在文件cv.h中,怎么又出现链接错误呢,可能是静态链接库的问题(可能还有其它的原因),
然后有两各解决办法:(1).通过project->Add to project->Files, 将cv.lib加到工程中(2).①Tools->Options->Directories,Show directories for下拉列表框中
选择 Library files,然后在Directories列表框中添加上cv.lib的路径,如:D:\OPENCV\LIB ② project->settings下的LINK属性页下,在Object/Library modules 的文本框中
加上 cv.lib 后,点击确定.此时链接通过.

 

仅为个人的实验经验,有可能不全面或错误.
 


Platform: | Size: 974 | Author: simon112233 | Hits:

[DocumentsVC小知识

Description: VC小知识 学习VC++时经常会遇到链接错误LNK2001,该错误非常讨厌,因为对于 编程者来说,最好改的错误莫过于编译错误,而一般说来发生连接错误时, 编译都已通过。产生连接错误的原因非常多,尤其LNK2001错误,常常使人不 明其所以然。如果不深入地学习和理解VC++,要想改正连接错误LNK2001非 常困难。-VC small learning VC++ will always be wrong to link LNK2001 error of the hate, because programmers, the best thing is to change the wrong compiler error and the connection errors generally occur, the compiler have passed. Have connected the wrong reason is very large, especially LNK2001 wrong, and often unknown to these people. If not in-depth study and understanding of Visual C++, in order to correct the wrong connecting LNK2001 very difficult.
Platform: | Size: 27648 | Author: 张庆 | Hits:

[Othererror

Description: VC编译出错的问题解决方法。比如:LNK2001解决外部符号错误,链接错误unresolved external symbol _main的解决-VC compiler error problem solution. For example: LNK2001 resolve external symbols error, link error unresolved external symbol _main solution
Platform: | Size: 50176 | Author: xmaker | Hits:

[Windows DevelopLNK2001

Description: VC开发环境经常会出现LNK2001 unresolved external symbol错误,文中提出了详细的解决方法-VC development environment are often subject to error LNK2001 unresolved external symbol, the proposed solution in detail
Platform: | Size: 3072 | Author: 宋同学 | Hits:

[Windows Developerror_LNK2001

Description: 学习VC++时经常会遇到链接错误LNK2001,该错误非常讨厌,此文说明如何解决改错误。-Learning VC++ when the links are often encountered error LNK2001, the error is very annoying, this article describes how to resolve the error changed.
Platform: | Size: 2048 | Author: darwinlin | Hits:

[OtherLNK2001

Description: 如果在 ATL 组件程序中调用了 CRT 的运行时刻库函数,比如开平方 sqrt() ,那么编译的时候可能会报错“error LNK2001: unresolved external symbol _main”。怎么办?下面方法中的任何一个都可以纠正这个错误:-If the ATL component called the CRT-program run-time library functions, such as the square root sqrt (), then the compiler will complain when possible " error LNK2001: unresolved external symbol _main" . How to do? Any one of the following methods can rectify this error:
Platform: | Size: 3072 | Author: 136103 | Hits:

[Windows CEWinCE_Driver1

Description: 调用directshow出现链接错误,如何解决? player.obj : error LNK2001: unresolved external symbol _IID_IVideoWindow player.obj : error LNK2001: unresolved external symbol _IID_IMediaControl 这是因为链接器没有找到合适的.lib文件。两种办法: 1、在EVC菜单Tools—options—directories 里把library files的路径重新调整一下。如果你只安装了EVC自带的 Standard SDK而没有其它SDK,可以指定WINCE目录中的.lib文件路径,例如D:\WINCE500\PUBLIC\DIRECTX\ OAK\LIB\X86\RETAIL。注意CPU的类型。 2、安装SDK,前提是导出SDK的PB内核工程必须包括DirectShow或者其它组件。 -Call directshow link errors, how to solve? player.obj: error LNK2001: unresolved external symbol _IID_IVideoWindow player.obj: error LNK2001: unresolved external symbol _IID_IMediaControl This is because the linker does not find suitable. lib file. In two ways: 1, in the EVC menu Tools-options-directories in the path of the library files to re-adjust. If you only installed the Standard SDK EVC own and not the other SDK, you can specify the directory in WINCE. Lib file path, for example D: \ WINCE500 \ PUBLIC \ DIRECTX \ OAK \ LIB \ X86 \ RETAIL. Note CPU type. 2, the installation of SDK, SDK, provided that the PB cores derived works must include the DirectShow or other components.
Platform: | Size: 14336 | Author: chenl | Hits:

[Windows CEPlatformBuilder

Description: 本文总结了Platform Builder如下常见编译错误及其解决方案: 1、Ram start overlaps rom binary 2、Failed to initialize from CECONFIG.H. 3、Bootloader 引导OS 到SDRAM 后无法执行,提示“Dabort exception!!!”(数据中止异常) 4、Could not find file E:\WINCE500\PBWorkspaces\study_catalog\RelDirsmdk2440_ARMV4I_Release\GPIO.dll on disk 5、beep.def : error LNK2001: unresolved external symbol BEP_Close 6、 VirtualCopy : identifier not found, even with argument-dependent lookup 7、NMAKE : U1073: don t know how to make ser24402.def NMAKE.EXE -i -c BUILDMSG=Stop. LINKONLY=1 NOPASS0=1 MAKEDLL=1 failed - rc = 2 8、Bad database entry: 驱动备份\ 0 10 0 9、BLDDEMO: There were errors building TQ2440A -This paper summarizes the Common Platform Builder as a compilation error and their solutions: 1, Ram start overlaps rom binary 2, Failed to initialize from CECONFIG.H. 3, Bootloader boot after the OS to the SDRAM can not run, suggesting that " Dabort exception!!!" (Data abort exception) 4, Could not find file ' E: \ WINCE500 \ PBWorkspaces \ study_catalog \ RelDir \ smdk2440_ARMV4I_Release \ GPIO.dll' on disk 5, beep.def: error LNK2001: unresolved external symbol BEP_Close 6, ' VirtualCopy' : identifier not found, even with argument-dependent lookup 7, NMAKE: U1073: don' t know how to make ' ser24402.def' NMAKE.EXE-i-c BUILDMSG = Stop. LINKONLY = 1 NOPASS0 = 1 MAKEDLL = 1 failed- rc = 2 8, Bad database entry: drive backup \ 0 10 0 9, BLDDEMO: There were errors building TQ2440A
Platform: | Size: 126976 | Author: 彬彬有礼 | Hits:

[Other Riddle gamesskyblue_Snake

Description: 一款关于贪吃蛇的小游戏源代码,值得计算机图形学 下载-Build Log --------------------Configuration: main- Win32 Debug-------------------- Command Lines Creating temporary file "C:\DOCUME~1\njutcm\LOCALS~1\Temp\RSP9.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/main.pdb" /debug /machine:I386 /out:"Debug/main.exe" /pdbtype:sept ".\Debug\main.obj" ] Creating command line "link.exe @C:\DOCUME~1\njutcm\LOCALS~1\Temp\RSP9.tmp" Output Window Linking... main.obj : error LNK2001: unresolved external symbol "public: __thiscall CTable::CTable(void)" (??0CTable@@QAE@XZ) main.obj : error LNK2001: unresolved external symbol "public: __thiscall CTable::~CTable(void)" (??1CTable@@QAE@XZ) main.obj : error LNK2001: unresolved external symbol "public: bool __thiscall CTable::ChangeSnakeDirect(enum MoveState)" (?ChangeSnakeDirect@CTable@@QAE_NW4MoveState@@@Z) main.obj : e
Platform: | Size: 1378304 | Author: 风雷 | Hits:

[Windows DevelopMicrosoft-Word-

Description: 问题求助 以上是程序。 运行后显示 main.obj : error LNK2001: 无法解析的外部符号 "private: static double student::total" (?total@student@@0NA) 1>main.obj : error LNK2001: 无法解析的外部符号 "private: static int student::count" (?count@student@@0HA) 1>D:\c++实验\学生成绩\Debug\学生成绩.exe : fatal error LNK1120: 2 个无法解析的外部命令-HOT TOPICS
Platform: | Size: 3072 | Author: | Hits:

[Technology Managementerror-LNK2001--

Description: 这是数据库连接ACCESS时相关的 资料文件,可以下载后学习一下。-This is a connection ACCESS relevant information files, you can download to learn about.
Platform: | Size: 21504 | Author: wuwang | Hits:

CodeBus www.codebus.net