Error LNK2001: "Unresolved external symbol" Protected:virtual void __cdecl PCL::P rojectinliers<struct PCL::P ointxyz>:: ApplyFilter (class PCL::P ointcloud<struct PCL::P ointxyz> &) "(? applyfilter@?$ projectinliers@upointxyz@pcl@@ zzfcthotfixz @ @MEAAXAEAV? $PointCloud @upointxyz@pcl@@@2@@z)
Error LNK2001: unresolved external symbol "private:virtual bool __cdecl PCL::P rojectinliers<struct PCL::P Ointxyz>::initsacmodel ( int) "(? initsacmodel@? $ProjectInliers @upointxyz@pcl@@ zzfcthotfixz @ @EEAA_NH @z)
Error LNK2019: "void __cdecl pcl::console::p rint (enum Pcl::console::verbosity_level,char const *,...)" print@console@pcl@ @YAXW4VERBOSITY_LEVEL @12@pebdzz), the symbol? ˉT number in ú letter 簓 "int" Protected:bool __cdecl PCL::P clbase< struct PCL::P ointxyz>::initcompute (void) ':: ' 1 ':: Catch$0 ' (? catch$0@?0?? initcompute@? $PCLBase @upointxyz@pcl@@ zzfcthotfixz @ @IEAA_NXZ @4ha) d was cited 皔?
2>e:\vs\project\project_inliers\bin\debug\project_inliers.exe:fatal error Lnk1120:3 an unresolved external symbol life U order?
Error LNK2019: unresolved external symbol "void __cdecl pcl::console::p rint (enum Pcl::console::verbosity_level,char const *,...)" (? print@console@pcl@ @YAXW4VERBOSITY_LEVEL @12@pebdzz), the symbol in the function "int ' protected:bool __cdecl PCL::P clbase<struct PCL ::P ointxyz>::initcompute (void) ':: ' 1 ':: Catch$0 ' (? catch$0@?0?? initcompute@? $PCLBase @upointxyz@pcl@@ zzfcthotfixz @ @IEAA_NXZ @4ha) is referenced D:\opencv\PCL\Cmak-bin\project_inliers.obj
Error 16: The nature of this type of error should be a lack of lib files, just find and reasonable to add it. I started with CMake directly generated projects, all kinds of Lib has been configured, and CMake generated also did not error. But then I noticed that my own Pcl,cmake was 32, but when I automatically generated the project can only use x64 to run debugging, I guess my own software installed wrong, Baidu a bit, found that the original CMake generated files are consistent with the number of computer systems, My computer's 64, so it automatically generated suitable for 64-bit file engineering, so some lib even have been added, but still can't use. So I re-installed the PCL, replaced by 64, it can be used.
Summing up, the main reasons for encountering this problem are:
(1) Missing lib file, if you use CMake to automatically generate the project should also note that some third-party Lib may also be added.
(2) The properties of your PCL may differ from those of this computer. For example: If the PCL is 32-bit, the computer is 64-bit, generated with CMake, because the cmake generated by the project properties and the properties of their own computer is consistent, here CMake generated project is 64-bit. Therefore, some LIB files in the PCL may not be available.
Note: (1) (2) Two point is the problem that I have encountered during the installation process, and it is also solved. After solving such problems, you will find that the problems you struggle with for a few days are really simple questions that are easy to ignore. Point (3) also met, just found the relevant solutions on the Internet. A URL is attached.
(3) possible. h files do not have a corresponding hpp to implement
(Reference: http://bbs.csdn.net/topics/390608666)
(4) Advice: Installation software is best to pay attention to the number of bits of your software installation. It is best to match the properties of your computer to avoid unnecessary errors.