unresolved-external

unresolved external symbol, but dumpbin says it's ok

天大地大妈咪最大 提交于 2019-12-01 21:04:46
I downloaded Crypto++ 5.62 and built it with default project settings. In my project I set up the path to cryptopp.lib and defined its name in "Additional Dependencies". Both Crypto++ and my project - VS 2008. During building of my project I get: main.obj : error LNK2001: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const CryptoPP::DEFAULT_CHANNEL" (?DEFAULT_CHANNEL@CryptoPP@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@B) main.obj : error LNK2001: unresolved external symbol "bool (__cdecl* CryptoPP::g

Magick++ in VS2010 - unresolved external symbol

妖精的绣舞 提交于 2019-12-01 17:59:17
I'm trying to use ImageMagick Magick++ for a C++ Project in VS2010. I installed the Library from here: klick Then in my Project, I added c:/program files/ImageMagick-6.6.6-Q16/include to the include folders. Then I tried to use Magick++ with this code: #include <Magick++.h> void main(int argc, char ** argv){ InitializeMagick(*argv); } But this does not work! VS2010 returns the following errors: error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl Magick::InitializeMagick(char const *)" (__imp_?InitializeMagick@Magick@@YAXPBD@Z) error LNK1120: 1 unresolved externals

LLVM JIT-compiled program cannot find external functions

北战南征 提交于 2019-12-01 09:21:41
My program which JIT compiles a LLVM IR module and calls a function foo defined therein fails at runtime if foo uses an externally-defined function: LLVM ERROR: Program used external function 'glutInit' which could not be resolved! My program: // foo1.cpp #include <GL/glut.h> extern "C" void foo() { glutInit(0,0); } // foo2.cpp #include <iostream> #include <fstream> #include <string> #include <llvm/Support/raw_ostream.h> #include <llvm/LLVMContext.h> #include <llvm/Support/TargetSelect.h> #include <llvm/Support/IRReader.h> #include <llvm/ExecutionEngine/ExecutionEngine.h> #include <llvm

LLVM JIT-compiled program cannot find external functions

女生的网名这么多〃 提交于 2019-12-01 07:06:02
问题 My program which JIT compiles a LLVM IR module and calls a function foo defined therein fails at runtime if foo uses an externally-defined function: LLVM ERROR: Program used external function 'glutInit' which could not be resolved! My program: // foo1.cpp #include <GL/glut.h> extern "C" void foo() { glutInit(0,0); } // foo2.cpp #include <iostream> #include <fstream> #include <string> #include <llvm/Support/raw_ostream.h> #include <llvm/LLVMContext.h> #include <llvm/Support/TargetSelect.h>

OpenCV won't compile due to unresolved externals — LNK2019

守給你的承諾、 提交于 2019-11-30 19:38:32
I am brand new to OpenCV and have been trying to set it up in Visual Studios 2010 Ultimate. I have followed the documentation exactly, and linked the files as it said. Here are the additional libraries that I am using: opencv_core231d.lib opencv_imgproc231d.lib opencv_highgui231d.lib opencv_ml231d.lib opencv_video231d.lib opencv_features2d231d.lib opencv_calib3d231d.lib opencv_objdetect231d.lib opencv_contrib231d.lib opencv_legacy231d.lib opencv_flann231d.lib And all of their Release counterparts. However, when I try to debug & compile the sample code given to me, I get the following errors.

OpenCV won't compile due to unresolved externals — LNK2019

久未见 提交于 2019-11-30 16:57:05
问题 I am brand new to OpenCV and have been trying to set it up in Visual Studios 2010 Ultimate. I have followed the documentation exactly, and linked the files as it said. Here are the additional libraries that I am using: opencv_core231d.lib opencv_imgproc231d.lib opencv_highgui231d.lib opencv_ml231d.lib opencv_video231d.lib opencv_features2d231d.lib opencv_calib3d231d.lib opencv_objdetect231d.lib opencv_contrib231d.lib opencv_legacy231d.lib opencv_flann231d.lib And all of their Release

How to solve error LNK2019

风流意气都作罢 提交于 2019-11-30 14:33:51
I am sending a simple email in C++. I downloaded a sample C++ program from the below link. http://cboard.cprogramming.com/cplusplus-programming/125655-sending-simple-email-cplusplus.html The sample program seems to hit the following error when it is compiling. Please help me with solution. Error 8 error LNK2019: unresolved external symbol _send_mail referenced in function _wmain Error 9 error LNK2019: unresolved external symbol __imp__recv@16 referenced in function "int __cdecl connect_to_server(char const *)" (?connect_to_server@@YAHPBD@Z) Error 10 error LNK2019: unresolved external symbol _

CUDA external class linkage and unresolved extern function in ptxas file

自古美人都是妖i 提交于 2019-11-30 12:14:42
问题 I'm working with CUDA and I have created an int2_ class to deal with complex integer numbers. Class declarations in the ComplexTypes.h file as follows: namespace LibraryNameSpace { class int2_ { public: int x; int y; // Constructors __host__ __device__ int2_(const int,const int); __host__ __device__ int2_(); // etc. // Equalities with other types __host__ __device__ const int2_& operator=(const int); __host__ __device__ const int2_& operator=(const float); // etc. }; } Class implementations

Linking error with `libopencv_highgui.so` under Ubuntu 14.04, strange result with `libtiff.so.5`

跟風遠走 提交于 2019-11-30 01:42:29
问题 Problem I'm compiling the deep learning library Caffe in Ubuntu 14.04(64 bit). OpenCV( Version: 2.4.8+dfsg1-2ubuntu1 ) is installed from ubuntu packages server with : sudo apt-get install libopencv-dev Compile Caffe with CMake 2.8. Linking error: Linking CXX executable caffe- /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFOpen@LIBTIFF_4.0' Infomation It seems some symbols of TIFF library were not found. I made some effort to find the reason(without luck).

unresolved external

独自空忆成欢 提交于 2019-11-28 12:17:44
I have an unresolved external symbol error that's driving me nuts. In short, I have a wrapper class for SDL_Surfaces ('DgSurface') and a class to load and store DgSurfaces ('DgSurfaceList'). The link issue arises when trying to include the DgSurfaceList files in my project. Here are my classes: The header file "DgSurface.h" contains the DgSurface class declaration: #ifndef DGSURFACE_H #define DGSURFACE_H #include "SDL.h" #include <string> class DgSurface { public: //Constructor/destructor DgSurface(std::string N, SDL_Surface* I): image(I), name(N) {} DgSurface() {name = ""; image = NULL;}