unresolved-external

How to Fix Visual Studio 2012 error LNK2019: unresolved external symbol \"__declspec(dllimport) public: class std::basic_string?

十年热恋 提交于 2019-12-05 01:15:21
How to fix a Visual Studio 2012 error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string? I've been compiling a solution containing one exe and several static lib projects on which the exe depends fine with Visual Studio 2008. The static libs include: TCL: tcl84tsx.lib wxWidgets: wxbase.lib zlib.lib ws2_32.lib xerces-c_2.lib SNMP Research EMANATE: subagent.lib,agent.lib,emanate.lib,pack.lib,mibtable.lib,devkit.lib etc. I loaded the solution into Visual Studio 2012 and have compiled all the projects in the solution but when I try to link the exe, I'm

'LIBCMT' conflicts with use of other libs + unresolved external symbols

自作多情 提交于 2019-12-04 16:09:21
问题 I have a program using OpenGL 3.2(+libs) and FreeType2. Then an other program with Boost and OpenSSL. The OpenGL side was to make sure text could be rendered and the boost/openssl program is to do a secure login/game server. Both programs work fine by them selfs. However adding Boost and OpenSSL to the game(GL + freetype) project caused it to fail to link. I have linked the following libs as well as including there includes folder. glimg.lib glutil.lib glfw.lib opengl32.lib freetype.lib

Unresolvable `R_X86_64_NONE` relocation

泪湿孤枕 提交于 2019-12-04 11:03:51
问题 I'm using Devtoolset-7 on CentOS 7 and have built Boost 1.65.1 w/ it. But when I link my application, I've got the following: /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: /opt/rh/devtoolset-7/root/usr/lib64/libboost_unit_test_framework.a(compiler_log_formatter.o)(.text._ZN5boost9unit_test5utils11string_castINS0_13basic_cstringIKcEEEESsRKT_[_ZN5boost9unit_test5utils11string_castINS0_13basic_cstringIKcEEEESsRKT_]+0x3c): unresolvable R_X86_64_NONE relocation against symbol

Python - Py_Initialize unresolved during compilation

﹥>﹥吖頭↗ 提交于 2019-12-04 05:17:40
I have statically compiled Python2.7 without any error. To test my build, I use the following snippet: #include "Python.h" int main() { Py_Initialize(); } And I am compiling it like this: $ gcc -static -I/path/to/python/header -L/path/to/my/staticpythonlib \ -lpython2.7 -ldl -l_all_other_needed_lib /tmp/my_previous_snippet.c -o myouput However, an error occured. gcc claims the famous undefined reference . test.c:(.text+0x1): Undefined reference to 'Py_Initialize' Curiously I used gcc with the verbosity flag (I won't paste the result here) and the compiler says, it's using my libpython, but

Why does this virtual destructor trigger an unresolved external?

坚强是说给别人听的谎言 提交于 2019-12-04 01:03:40
Consider the following: In X.h: class X { X(); virtual ~X(); }; X.cpp: #include "X.h" X::X() {} Try to build this (I'm using a .dll target to avoid an error on the missing main, and I'm using Visual Studio 2010): Error 1 error LNK2001: unresolved external symbol "private: virtual __thiscall X::~X(void)" (??1X@@EAE@XZ) Small modifications result in a successful build, however: X.h: class X { inline X(); // Now inlined, and everything builds virtual ~X(); }; or X.h: class X { X(); ~X(); // No longer virtual, and everything builds }; What causes the unresolved external in the linker when the

Unresolvable `R_X86_64_NONE` relocation

情到浓时终转凉″ 提交于 2019-12-03 06:57:24
I'm using Devtoolset-7 on CentOS 7 and have built Boost 1.65.1 w/ it. But when I link my application, I've got the following: /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: /opt/rh/devtoolset-7/root/usr/lib64/libboost_unit_test_framework.a(compiler_log_formatter.o)(.text._ZN5boost9unit_test5utils11string_castINS0_13basic_cstringIKcEEEESsRKT_[_ZN5boost9unit_test5utils11string_castINS0_13basic_cstringIKcEEEESsRKT_]+0x3c): unresolvable R_X86_64_NONE relocation against symbol `_ZTVSt9basic_iosIcSt11char_traitsIcEE@@GLIBCXX_3.4' /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64

node-express app.get() marked as unresolved in webstorm

痞子三分冷 提交于 2019-12-02 18:50:20
If you follow JetBrains' Getting Started with Node.js in WebStorm instructions, node-express specific code is highlighted correctly. However if you create your own simple node-express project, e.g. using node-express' Guide , then express specific functions such as app.get() are underlined and marked with the following warning: Unresolved function or method get() This happens even if you enable the following libraries under Settings\JavaScript\Libraries : Node.js Globals Node.js v0.10.31 Core Modules express-DefinitelyTyped (which you need to download) How can I configure WebStorm to resolve

OpenCV: link error, can't resolve external symbol _cvResize and _cvCvtColor

廉价感情. 提交于 2019-12-02 16:11:26
问题 the reason for the link error is clear, some lib is missing within my link procedure. Unfortunately it seems OpenCV 2.4.1 has changed it's internal structure, so the resolutions I find with Google/the Stackoverflow search function only recommend me to link against libraries that no longer exist (cv.lib or cxcore.lib). I could solve some of my linking problems by using opencv_core241.lib and opencv_highgui241.lib, but in where are _cvResize and _cvCvtColor located at? 回答1: As stated by

OpenCV: link error, can't resolve external symbol _cvResize and _cvCvtColor

走远了吗. 提交于 2019-12-02 11:24:34
the reason for the link error is clear, some lib is missing within my link procedure. Unfortunately it seems OpenCV 2.4.1 has changed it's internal structure, so the resolutions I find with Google/the Stackoverflow search function only recommend me to link against libraries that no longer exist (cv.lib or cxcore.lib). I could solve some of my linking problems by using opencv_core241.lib and opencv_highgui241.lib, but in where are _cvResize and _cvCvtColor located at? As stated by guitarflow linking against opencv_imgproc241.lib is necessary. Wesam Na Mmy problem was solved by adding the

pcl_visualizer.h - fatal error LNK1120: 1 unresolved externals

╄→尐↘猪︶ㄣ 提交于 2019-12-02 09:45:40
error LNK2001: unresolved external symbol "public: virtual void __cdecl pcl::visualization::PCLVisualizer::FPSCallback::Execute(class vtkObject *,unsigned long,void *)" (?Execute@FPSCallback@PCLVisualizer@visualization@pcl@@UEAAXPEAVvtkObject@@KPEAX@Z) 1>C:\Users\hatea\Documents\Visual Studio 2015\Projects\PCLTester\x64\Debug\PCLTester.dll : fatal error LNK1120: 1 unresolved externals I have thoroughly exhausted all avenues dealing with this issue. I checked here, and I found a similar question/answer series: error LNK2001 when including "pcl_visualizer.h" The problem is that I do not want to