linker-errors

LNK2028 Managed C++ DLL calling function in another Managed C++ DLL

二次信任 提交于 2020-01-13 06:36:09
问题 I'm using VS2010 with a managed C++ DLL calling a function in another managed C++ DLL and I'm getting many LNK2028 link errors that look like this. 1>udpPkt.obj : error LNK2028: unresolved token (0A0000AA) "unsigned short __cdecl ComputeCrc16(void const *,unsigned int)" (?ComputeCrc16@@$$FYAGPBXI@Z) referenced in function "public: short __thiscall CPrivateUdpPkt::ComputeCrc(void)const " (?ComputeCrc@CPrivateUdpPkt@@$$FQBEFXZ) When I use dumpbin /export on the called DLL I see the unresolved

Cocoapods - Flurry & TestFlight - Undefined symbols for architecture

倖福魔咒の 提交于 2020-01-11 17:40:21
问题 I'm upgrading my project to use Cocoapods and when I try building my project for an iOS device or for a simulator I get: Undefined symbols for architecture armv7: "_OBJC_CLASS_$_TestFlight", referenced from: objc-class-ref in PhotoPreviewViewController.o "_OBJC_CLASS_$_Flurry", referenced from: objc-class-ref in MyAppDelegate.o objc-class-ref in InitialSetupViewController.o objc-class-ref in InitialDownloadViewController.o objc-class-ref in HistoryViewController.o ld: symbol(s) not found for

memcmp linker error Visual Studio 2015

Deadly 提交于 2020-01-11 10:45:48
问题 I have a visual studio 2012 c++ project. I recently uninstalled it and installed visual studio 2015 and upgraded the project. When i am building the project, getting error as shown below: Error LNK2019 unresolved external symbol _memcmp referenced in function Moreover i have not used anywhere in my code memcmp fucntion. I used the linker verbose function and could see below in output file: Found _memcmp Referenced in MyC++Project.obj Referenced in libcpmtd.lib(xstrcoll.obj) Loaded

MS VC linker (link.exe): Why no warning for 32/64 bit CPU architecture mismatch?

二次信任 提交于 2020-01-11 09:52:12
问题 (Update: As per Hans' suggestion, here's a suggestion to improve link.exe's behaviour, and you can vote for it if you have an account over there.) Okay, I'm a fool. In January I installed Oracle on my computer, Win7 Pro 64 Bit. I installed the 64 Bit version. Yesterday, using MSVC Express, I tried to compile and link a small test programm oci1.c against oci.h and oci.lib . cl /nologo /c /I%ORACLE_HOME%\oci\include oci1.c link /nologo oci1.obj /LIBPATH:%ORACLE_HOME%\oci\lib\msvc oci.lib My

Q_OBJECT linker error!

被刻印的时光 ゝ 提交于 2020-01-10 18:20:21
问题 I am receiving the following linker error when I build my application. HIMyClass.obj:: error: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall CHIMyClass::metaObject(void)const " (?metaObject@CHIMyClass@@UBEPBUQMetaObject@@XZ) File not found : HIMyClass.obj HIMyClass.obj:: error: unresolved external symbol "public: virtual void * __thiscall CHIMyClass::qt_metacast(char const *)" (?qt_metacast@CHIMyClass@@UAEPAXPBD@Z) File not found : HIMyClass.obj HIMyClass

NVCC won't look for libraries in /usr/lib/x86_64-linux-gnu - why?

淺唱寂寞╮ 提交于 2020-01-07 09:23:24
问题 Consider the following CUDA program, in a file named foo.cu : #include <cooperative_groups.h> #include <stdio.h> __global__ void my_kernel() { auto g = cooperative_groups::this_grid(); g.sync(); } int main(int, char **) { cudaLaunchCooperativeKernel( (const void*) my_kernel, 2, 2, nullptr, 0, nullptr); cudaDeviceSynchronize(); } This program needs to be compiled with -rdc=true (see this question); and needs to be explicitly linked against libcudadevrt . Ok, no problem... or is it? $ nvcc -rdc

Symbol lookup error at runtime even though nm reports symbol present

守給你的承諾、 提交于 2020-01-07 06:34:53
问题 I build my program like this: g++ -std=c++11 myprog.cpp -o myprog -lqpid-proton-cpp Then I run ./myprog and get this error: symbol lookup error: ./myprog: undefined symbol: _ZN6proton10event_loop6injectESt8functionIFvvEE Yet, nm reports the symbol is present in the library . . . nm -D /usr/lib/libqpid-proton-cpp.so | grep _ZN6proton10event_loop6injectESt8functionIFvvEE . . . yields: 000000000002f460 T _ZN6proton10event_loop6injectESt8functionIFvvEE What am I missing here? 回答1: Did you verify,

error: undefined reference to 'av_free_packet(AVPacket*)' when use NDK to compile ffmpeg

馋奶兔 提交于 2020-01-07 05:03:13
问题 I compiled my cpps to use ffmpeg liberary with ANDROID NDK by my android MK as follow : LOCAL_PATH := $(call my-dir) DEFINES += -DTARGET_POSIX \ -DTARGET_LINUX \ -D_LINUX \ -DTARGET_ANDROID \ -D__STDC_CONSTANT_MACROS include $(CLEAR_VARS) LOCAL_MODULE := libavcodec LOCAL_SRC_FILES := lib/lib/libavcodec.so include $(PREBUILT_SHARED_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := libavfilter LOCAL_SRC_FILES := lib/lib/libavfilter.so include $(PREBUILT_SHARED_LIBRARY) include $(CLEAR_VARS) LOCAL

Using Cspice with mingw

梦想的初衷 提交于 2020-01-06 07:21:09
问题 I am trying to use cspice with g++ for windows via mingw. Unfortunately cspice does not provide a library for mingw. The libraries are available at https://naif.jpl.nasa.gov/naif/toolkit_C.html. It gives undefined reference errors for the functions defined through cspice. It runs properly in Linux. Can anyone suggest a method to make it work. I run: g++ -LK:\Data\cspice\lib -IF:\CPP\Libraries\Boost\boost_1_68_0 -o foo foo.cpp -l:cspice.a -lm The errors I get are: undefined reference to

Code execution cannot proceed because libquickmail-0.dll was not found?

*爱你&永不变心* 提交于 2020-01-06 06:19:32
问题 I was looking for a quick and easy way to automatically send a file to my gmail for debugging purposes on multiple remote machines. However I am apparently having linking issues which I can't seem to solve. I downloaded the win64 zip file of libquick, IDE is CodeBlocks, compile target is x64 and running on 64-bit Windows 10. There were 10 files that came in the zip folder, in lib/include/bin. They were bin > libquickmail-0.dll , libquickmaillight-0.dll , quickmaillight.exe . include >