linker-errors

APPLE MACH-O LINKED ERROR After adding AFNetworking

坚强是说给别人听的谎言 提交于 2019-12-02 20:24:40
Just adding AFNetworking into my project, and after B&R here i got this error like: Undefined symbols for architecture i386: "_SecCertificateCopyData", referenced from: -[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecCertificateCreateWithData", referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o "_SecPolicyCreateBasicX509", referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o -[AFURLConnectionOperation connection

Cocoapods - Flurry & TestFlight - Undefined symbols for architecture

…衆ロ難τιáo~ 提交于 2019-12-02 19:08:20
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 architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Linker error LNK2019 from 3rd party library

自古美人都是妖i 提交于 2019-12-02 16:26:10
问题 I am porting an old vc++6.0 application to vs2005, I am getting the following linker error and I have spent days trying to find a solution. error LNK2019: unresolved external symbol _ imp _CreateAwnService@52 referenced in function "public: int __thiscall CMainFrame::CreateAsaNetworkServices(void)" There is a 3rd party C library with the following API defined extern "C" { DLLAPI IAwnServ * AWNAPI CreateAwnService(HINSTANCE hInst, const char *pszDId, const char *pszDLoc, AWN_DIQUAL DiQual, AWN

Linker error LNK2019 from 3rd party library

我只是一个虾纸丫 提交于 2019-12-02 13:41:35
I am porting an old vc++6.0 application to vs2005, I am getting the following linker error and I have spent days trying to find a solution. error LNK2019: unresolved external symbol _ imp _CreateAwnService@52 referenced in function "public: int __thiscall CMainFrame::CreateAsaNetworkServices(void)" There is a 3rd party C library with the following API defined extern "C" { DLLAPI IAwnServ * AWNAPI CreateAwnService(HINSTANCE hInst, const char *pszDId, const char *pszDLoc, AWN_DIQUAL DiQual, AWN_DOQUAL DoQual, int Prio, const char *pszLicStr, const char *pszInfo, AWN_REPEAT Repeat=R_LAST, TIME_T

Extracting text from pdf using objective-c(libz.dylib)

ぃ、小莉子 提交于 2019-12-02 12:48:10
问题 I have imported the pdf.h file in my view controller class and tried calling NSString *outPutString = convertPDF(pathToPdfFile); but while building it gives me linker error : _convertPDF" refrenced from: -[ScriptViewController searchBarSearchButtonClicked:] in ScriptViewController.o Symbol(s) not found I have also included libz.dylib in my project. What am I doing wrong? Is there any step to be followed before building the project which includes c code? Also one more question: Will this

“array bound is not an integer constant before ']' token” when using multiple files [duplicate]

☆樱花仙子☆ 提交于 2019-12-02 12:15:41
This question already has an answer here: initialize array with constant number does not work 2 answers I'm having an issue with my neural net. I'm storing the nodes that make up the network in an array, whose dimensions are set via-tweaks at compile time (the tweaks are all const). The code worked fine until I decided to split it up into multiple files, but even with a extern declaration, it still says that "array bound is not an integer constant before ']' token". Right now, this is the set-up: In Network.h: struct Network { Node nodes [MNETWIDTH] [MNETLENGTH]; } In Network.cpp: Network:

Cuda 5.0 Linking Issue

杀马特。学长 韩版系。学妹 提交于 2019-12-02 09:42:42
问题 I'm just trying to build an old project of mine using cuda 5.0 preview. I get an Error when linking, telling me that certain cuda functions can not be found. For example: undefined reference to 'cudaMalloc' . My linking command includes the following options for cuda : -L/usr/local/cuda/lib64 -L/home/myhome/NVIDIA_CUDA_Samples/C/lib -L/home/myhome/NVIDIA_CUDA_Samples/C/common/lib/linux -lcudart ls -lah /usr/local/cuda/lib64/ gives me 8 cuda libraries including libcudart.so.5.0.7 with symlinks

How to resolve the linker error in C++ compiler

我只是一个虾纸丫 提交于 2019-12-02 09:32:24
I have to compile PJSIP in CPP compiler. Because I am integrating an API with PJSIP . It is in CPP . So I have to use g++ instead of gcc . But now I didn't integrate any other API. But I am getting linker error in CPP compiler. If it is C compiler, it is working fine. Error: Undefined symbols for architecture arm: "_crypto_alloc", referenced from: srtp_stream_clone(srtp_stream_ctx_t const*, unsigned int, srtp_stream_ctx_t**)in libsrtp-arm-apple-darwin9.a(srtp.o) srtp_stream_alloc(srtp_stream_ctx_t**, srtp_policy_t const*) in libsrtp-arm-apple-darwin9.a(srtp.o) _srtp_create in libsrtp-arm-apple

GDB “cannot open shared object file” Issue

℡╲_俬逩灬. 提交于 2019-12-02 09:22:29
I've already read gdb says "cannot open shared object file" and gdb can not open shared object file and followed the instructions. I have a binary which is linked to a shared library file ( /zzz/yyy/xxx.so ). After I set LD_LIBRARY_PATH to /zzz/yyy/ and run the binary without GDB, it executes very well. However, when I was trying to use GDB to debug this binary, GDB says: error while loading shared libraries: xxx.so: cannot open shared object file: No such file or directory I already have (set in .gdbinit): (gdb)show env LD_LIBRARY_PATH LD_LIBRARY_PATH = "/zzz/yyy/" and (gdb) show solib-search

Mach-o Linker Error

巧了我就是萌 提交于 2019-12-02 07:18:50
问题 I can't build my project because I keep getting this error. As I understood it deals with the constant tagShift I'm using in my code. I would appreciate if anyone could help me to solve this issue 回答1: I had faced the same issue someday and figured out the result as: Here You have a int tagShit of constant type . So you can not make constant type variables of same name in two or more classes. Change that tagShit variable name in one of the class (may be as tagShift1 or anything else) and it