FAQ Database Discussion Community


duplicate symbols for architecture armv7(FMDB)

ios,linker-error,cocoapods,duplicate-symbol
There are a lot of question about duplicate symbols for architecure XXX, but I didn't got answer of my question. In my scenario,I use Cocoapod,and import FMDB,But when I integrate another third party SDK,And when I build the project,and got the error as below: Is there any solution can fix...

Linking problems with GLFW MinGW

c,codeblocks,linker-error,glfw
I'm having some linking problems with GLFW (version 3.1) in Code::blocks. I've done a lot of searching around and nothing I can find seems to be correcting anything. I am currently using the 32-bit binary of the library and have these linker options in my project -lmingw32 -lglew32 -lglfw3 -lopengl32...

Qt linker errors Qmake + Makefile

qt,makefile,linker-error,qmake
I want to build a Qt project outside Qt Creator, so I'm using qmake to generate a Makefile on the following project file: TEMPLATE = app TARGET = test INCLUDEPATH += . \ /usr/include/qt5/QtWidgets/ QMAKE_CXXFLAGS += --std=c++11 # Input SOURCES += test.cc Which was generated also by qmake, bar the...

LNK2019: unresolved external symbol __imp__dclass

visual-studio,ffmpeg,arm,linker-error
I am trying to build ffmpeg on visual studio for ARM architecture. I run into following linker errors: Error 58 error LNK2019: unresolved external symbol __imp__dclass referenced in function mov_read_tkhd avformat.lib(mov.o) Error 59 error LNK2001: unresolved external symbol __imp__dclass avformat.lib(thp.o) Error 60 error LNK2001: unresolved external symbol __imp__dclass avutil.lib(rational.o) Error...

iPhone app Support 64Bit

ios,xcode,linker-error,undefined-symbol
I add arm64 to my app: Architecture Valid Architecture And when i build the application i get this error log: Undefined symbols for architecture arm64: "_OBJC_CLASS_$_FBRequest", referenced from: objc-class-ref in DEFacebookComposeViewController.o "_kGADAdSizeBanner", referenced from: ... "_OBJC_CLASS_$_FBRequestConnection", referenced from: ... "_OBJC_CLASS_$_ASIdentifierManager", referenced from: objc-class-ref in libInMobi-4.5.1.a(IMCommonUtil+Private.o) objc-class-ref in VungleSDK(VungleSDK.o) objc-class-ref in...

Linker error with SFML

c++,linker-error,sfml
I get a series of errors when running g++ -lsfml-window -lsfml-graphics -lsfml-system main.cpp on the example SFML code, when running Ubuntu, SFML 2.2 and g++ 4.8.2. I've tried reinstalling SFML from the package manager (libsfml-dev) and nothing works. Example SFML Code: #include <SFML/Graphics.hpp> #include <string> int main() { sf::RenderWindow window(sf::VideoMode(200,...

How to resolve “Undefined Symbol” error from Linker while moving to 64-bit?

objective-c,linker-error,undefined-symbol
I have an app with Xcode 6. It worked successfully until I changed the architecture to 64-bit. The linker then gives this error message: Undefined symbols for architecture 64bit: "_OBJC_CLASS_$_GADBannerView", referenced from: objc-class-ref in Appdelegate.o "_OBJC_CLASS_$_GADRequest", referenced from: objc-class-ref in Appdelegate.o and many other similar. I already checked the framework...

LNK2019 error (unresolved external symbol) linking SQLite into DLL

c++,sqlite,dll,linker-error
I'm making a C++ DLL that requires SQLite. I have integrated the SQLite header file (sqlite3.h) and added the library in the external dependencies. I have no syntax errors, but when I try to compile the project I get the following LNK2019 ("Unresolved external symbol [XYZ] referenced from the function...

Mach-o Linker Error

objective-c,xcode6,linker-error,mach-o
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

Connecting C++ and Postgresql

c++,postgresql,linker-error,libpqxx
I'm trying to connect C++ to Postgres. I recently installed libpqxx with Homebrew as follows: brew install libpqxx Then I made it with: make DatabaseTest on the file DatabaseTest.cpp. I ran the following simple program and got a strange error that I'm not sure what to do with... #include <iostream>...

Bluetooth Related Linker Errors in XCode 6.1.1

ios,xcode,bluetooth,compiler-errors,linker-error
I'm relatively new to iOS development. I'm not sure what to do about resolving the following errors that I believe are due to referencing a bluetooth library. What can I do to debug/fix this? Undefined symbols for architecture armv7: "_CBCentralManagerScanOptionAllowDuplicatesKey", referenced from: _nclSStartScan in libNCLiOS.a(nclCb.o) "_CBAdvertisementDataManufacturerDataKey", referenced from: -[Boss centralManager:didDiscoverPeripheral:advertisementData:RSSI:]...

error LNK2019: unresolved external symbol

c++,mfc,linker-error,lnk2019,extern-c
I'm having trouble compiling an old MFC WIN CE embedded project in windows 7 visual studio 2010. I believe the old application was compiled in embedded Visual Studio 4 and needed mfcce211.dll. Any who, all of the source files manage to compile fine but I’m getting the following linker error:...

Runtime Mismatch in Visual Studio 2012

c++,visual-studio-2012,msbuild,static-libraries,linker-error
This is the first time I'm asking a question here, so pardon me if I miss some of the etiquette. I have a solution that was originally a VS2008 one, I have migrated it to VS2012 and that didn't create a problem. My solution uses DCMTK static libraries so I...

Compile-time error corresponding to main function in C++ [closed]

c++,compiler-errors,linker-error
Here is my compilation command followed by the error message I receive. The link where you can see the code is also attached. g++ -Wall `root-config --cflags --ldflags --libs` StevenJohnsonDoubleIntegration.cpp /usr/lib/gcc/i686-redhat-linux/4.9.2/../../../crt1.o: In function `_start':(.text+0x18): undefined reference to `main' collect2: error: ld returned 1 exit status Link...

Upload image from Network

android,uiimageview,linker-error,image-uploading
I can't download a picture from the Internet. public class ImageUploadActivity extends ActionBarActivity { private final String myURL = "http://java.sogeti.nl/JavaBlog/wp-content/uploads/2009/04/android_icon_256.png"; private ImageView uploadImage; Bitmap bitmap; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_image_upload); uploadImage = (ImageView) findViewById(R.id.upload_image); bitmap = getBitmapFromURL(myURL); uploadImage.setImageBitmap(bitmap); }...

Can't install rpi_ws281x “error: command 'gcc' failed with exit status 1”

python,c,compiler-errors,raspberry-pi,linker-error
Im trying to install the neopixels library on my raspberry pi A+ at first i do the stuff, and try to run the code, but it dosent work... i reinstalled raspbian again and carefully installing de headers and the library i get this > Downloading https://pypi.python.org/…/s…/s/setuptools/setuptools-5.7.zip Extracting in /tmp/tmpkD2xEW Now...

Google Test pre-build VS 2013

c++,visual-studio,linker-error,googletest
I have a solution which was compiled with compiler VS2008. It was working perfect. It is instrumented with Google Test and the Google Test library is linked to the solution. the gtest.lib should be compiled with the same compiler as the solution itself, as far as I know. Now, I...

Linker error when implementing NSObject protocol while using enums?

ios,swift,enums,linker,linker-error
Here is a distilled version of the code I am having trouble with in Swift: enum E { case C } class Test: NSObject { var v: E = .C } When I attempt to build, I get the following error: Undefined symbols for architecture x86_64: "__TWvdvC8TestTest4Test1vOS_1E", referenced from: __TFC8TestTest4Testm1vOS_1E...

linker errors while compiling using makefile

c,compiler-errors,makefile,linker-error,undefined-reference
I'm working on ubuntu 14.04 LTS and am working on a shading example program. I have the following makefile: CC=gcc CFLAGS=-Wall -I/usr/X11R6/include LDFLAGS=-pthread -L/usr/X11R6/lib -lm -lGL -lglut OBJS=main.o scene.o shader.o glsl_lighting: $(OBJS) $(CC) $(LDFLAGS) $(OBJS) -o glsl_lighting clean: rm -f glsl_lighting rm -f $(OBJS) main.o: main.c scene.o: scene.c shader.o: shader.c...

Undefined reference to static const member in g++ if no using code is linked

c++,c++11,g++,linker-error
the project I'm working on currently consists of three basic build targets: The core, containing almost all of the classes The tests, containing only a few test classes and a main function. They touch (hopefully) every piece of code in the core. The client, which only consists of a main...

VS2013 Unresolved External with constructor and destructor [duplicate]

c++,visual-studio-2013,constructor,linker-error
This question already has an answer here: What is an undefined reference/unresolved external symbol error and how do I fix it? 18 answers I am trying to make a linked list program that will add two polynomials together, pretty simple. However, whenever I try and build this program, I...

C++ Builder XE7 LME288 Error

linker-error,windows-7-x64,c++builder-xe7
Suddenly, out of the blue, I get the LME288 linker error. [ilink32 Warning] Warning: D:/Projects/TrainFever Game Manager/TFGM/Win32/Debug/TFGameManager.ilc: 0x00010000 / 0x08000000 [ilink32 Warning] Warning: D:/Projects/TrainFever Game Manager/TFGM/Win32/Debug/TFGameManager.ild: 0x00010000 / 0x08000000 [ilink32 Warning] Warning: D:/Projects/TrainFever Game Manager/TFGM/Win32/Debug/TFGameManager.ilf: 0x00010000 / 0x0a000000 [ilink32 Warning] Warning: D:/Projects/TrainFever Game Manager/TFGM/Win32/Debug/TFGameManager.ils: 0x0003b000 /...

How to have a class contain a list of pointers to itself?

c++,list,linker-error,circular-dependency
I'm making a game in C++. In this game, there is a list of GameObject pointers. GameObject is the base class for every object one may interact with in the world. Main's job is to act as the referee, so it informs each object about collisions, renders them, deletes them,...

C++ static variable in header file getting LNK error 2001

c++,vector,static,linker-error
I have myself a very basic program. I am trying to create a static vector in a class, which can then be accessed around my whole program which just creating an instance of that class which has the stored static vector. here is my test program testClass.h #pragma once #include...

Undefined symbols upon bringing a static library into project

ios,objective-c,xcode,static-libraries,linker-error
I have a static library that I've created. It's a universal library so it should be working on the iphone and the simulator. Just by bringing the library into the project it won't compile, I get about 21 linker errors. They're all like this: "_OBJC_CLASS_$_NumberPad", referenced from: objc-class-ref in libClipPOSLibrary.a(PCCIDEntryView.o)...

MT / MD mismatch when compiling cryptopp despite no library dependencies

c++,visual-c++,visual-studio-2013,linker-error,crypto++
I'm currently trying to compile a static 64 bit version of cryptopp (more precisely, the cryptlib VS project) using MS Visual Studio 2013 on a Windows 8.1 machine. Since it is a static release build, I've set the Runtime Library to Multithreaded (/MT). However the linker throws several of the...

Why 2 static libs can't call to each other's function

c++,linker,linker-error
I have 2 static libs: liba.a, libb.a and a executable that link both. liba.a is calling to function foo which is defined in libb.a both libs compile successfully BUT my exe seems to have linker errors: undefined reference to `foo' need help... using ubuntu 14.04. gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)...

C++ Linker complains multiple definition of char* but not std::string

c++,linker-error
In a big project, I have a .h file which defines a lot of constants within a namespace. Introducing const char* constants results in linker errors complaining of multiple definitions. ex.h #include <string> namespace Dv { const int MAX = 10; const std::string NAME = "bobo"; const char* NAME2 =...

link.exe returns error LNK1181: cannot open input file 'C:\Program.obj'

c++,windows,visual-c++,linker,linker-error
I'm compiling with a Batch file containing @echo off set link=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link "%link%" external_input.obj periodic_dinger.obj flagger.obj monitor.obj main.obj libGui.lib libCore.lib libCint.lib libRIO.lib libNet.lib libHist.lib libGraf.lib libGraf3D.lib libGpad.lib libTree.lib libRint.lib libPostscript.lib libMatrix.lib libPhysics.lib libMathCore.lib libThread.lib All the objects and libraries are in the same directory, which is...

Using GNU Scientific Library (GSL) under Windows x64 with MinGW

windows,mingw,linker-error,gsl
I have installed MinGW and MSYS on Microsoft Windows (64bit), inside directory C:\MinGW (MSYS directory is C:\MinGW\msys\1.0). I have downloaded the latest GNU Scientific Library (GNU GSL) package from the official ftp. I have used MSYS to perform configure and make successfully as described in the INSTALL file in the...

OpenEXR linker error when 'half' type is assigned

c++,osx,linker-error,rgba,openexr
I'm having an issue assigning values to an Imf::Rgba struct containing half types as defined by OpenEXR. There appears to be a linker error that concerns the conversion from float to half. Linking CXX executable graphics-env Undefined symbols for architecture x86_64: "half::_eLut", referenced from: half::half(float) in main.cpp.o "half::convert(int)", referenced from:...

Shared library compilation gcc

c,gcc,websocket,linker-error,undefined-reference
I am trying to compile my program that uses the libwebsockets library. I have downloaded and compiled the libwebsockets on my linux machine and has following directory structure. /libwebsockets/build/bin/ -> contains the compiled binaries (test-server,test-client etc) /libwebsockets/build/lib/ -> contains the shared libraries. libwebsockets.so libwebsockets.a libwebsockets.so.5.0.0 /libwebsockets/lib/ -> contains all the...

QuickBlox: error !! Not able to run app in device after framework update

ios,objective-c,clang,linker-error,quickblox
Yesterday I updated the quickBlox frame work, since then I am not able to run the application in device, the app is running fine on simulator. its give me bellow error when I try to run in device. any help would be appreciated. ...

Linker error after making minor change to Core Data model

ios,linker-error,cocoapods,magicalrecord
I'm starting a new project that built fine after I added MagicalRecord via CocoaPods (my first experience with CocoaPods). Right after constructing my data model, I received an error telling me I had not included an expected inverse relationship between two entities. I went into the data model and corrected...