undefined-symbol

Android Studio Integration test cannot resolve symbol AndroidJUnit4

流过昼夜 提交于 2019-12-12 09:42:47
问题 I've seen partial answers to similiar issues but never one that actually solved the problem. I've boiled this down to a minimal app to demonstrate the issue. I'm using the most current version of Android Studio (V2.2.1) I have the following SDK's installed: Android SDK Tools v25.1.6 Android SDK Platform-tools v23.1 Android SDK Build-tools v23.0.3 Android Support repository v32 Create new Android app using wizard Updated build.gradle (app) per: https://developer.android.com/training/testing

Error Undefined symbols for architecture x86_64:

╄→尐↘猪︶ㄣ 提交于 2019-12-12 04:32:38
问题 I'm working in a project with a map framework and all it's fine until I starts with the push notifications and write @property bool push; in my the AppDelegate.h. I have this in my AppDelegate.m (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken { NSString *key =[[NSUserDefaults standardUserDefaults] stringForKey:@"token"]; if ( key== nil || [key isEqual:@""]) { _push=true; NSString* token = [[[[deviceToken description]

Getting around issues with templates inside Dll in C++?

情到浓时终转凉″ 提交于 2019-12-12 03:53:33
问题 Background: I currently have a game engine project structured in visual studio so that my 'Engine' is compiled into a dll for another project 'Game' to consume. The idea being I can swap out different game projects and still use the same engine dll code. Within my engine code I'm creating my own framework for which all other engine code will use. This will help to separate my implementation from the rest of my code and make modification easier if need be. Since all my framework code with be

kernel module won't link - symbol mutex_lock_nested not found

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 22:43:06
问题 I am trying to build a kernel module (stress-test tool for a hardware) for a Linux 3.10.45 on x64. So far it seemed to work fine, until adding a mutex. I added mutex using and the functions mutex_init, mutex_lock, mutex_unlock and mutex_destroy. Building the module yielded no errors or warnings, but when loading with 'insmod', there are error messages in dmesg: [76603.744551] tryBlk: Unknown symbol mutex_lock_nested (err 0) [76603.744574] tryBlk: Unknown symbol mutex_destroy (err 0) I found a

Undefined symbols for architecture i386: “_OBJC_CLASS_$_SecIdentity”

北慕城南 提交于 2019-12-11 08:38:11
问题 Xcode won't let me compile this code: func getIdentity(keychainArray: NSArray) -> SecIdentity? { let dict = keychainArray[0] as Dictionary<String,AnyObject> let key = kSecImportItemIdentity.takeRetainedValue() return dict[key] as SecIdentity? } The compiler quits with following error: Undefined symbols for architecture i386: "_OBJC_CLASS_$_SecIdentity", referenced from: __TFC9messenger10Connection19streamOpenCompletedfS0_FT_T_ in Connection.o ld: symbol(s) not found for architecture i386

Make file Linking issue Undefined symbols for architecture x86_64

只愿长相守 提交于 2019-12-11 06:57:26
问题 I am working on getting a few files to link together using my make file and c++ and am getting the following error when running make. g++ -bind_at_load `pkg-config --cflags opencv` -c -o compute_gist.o compute_gist.cpp g++ -bind_at_load `pkg-config --cflags opencv` -c -o gist.o gist.cpp g++ -bind_at_load `pkg-config --cflags opencv` -c -o standalone_image.o standalone_image.cpp g++ -bind_at_load `pkg-config --cflags opencv` -c -o IplImageConverter.o IplImageConverter.cpp g++ -bind_at_load

C++: Undefined symbols when loading shared library with dlopen()

早过忘川 提交于 2019-12-11 03:50:05
问题 I have an issue when I try to use dlopen() to load a shared library into another shared library. I checked all tutorials on how to use dlopen() correctly. So here is the simplified code: The main shared library contains a class with pure virtual functions which the sub-shared library (aka plug-in) must implement. Additionally, it has some other functions which are implemented with a default behavior. I created a macro which is added to every plug-in to have a symbol to load and create the

How to embed a static library into a shared library?

情到浓时终转凉″ 提交于 2019-12-11 00:03:36
问题 On linux I am trying to create a shared library, libbar.so, that embeds a commercial static library (licensing is fine). The commercial library has 4 versions: libfoo-seq.a, libfoo-mt.a, libfoo-seq.so, and libfoo-mt.so (they all provide the same symbols, just the code is sequential/multi-threaded, and the lib is static/shared). Of these four I want my code always to use the sequential foo library, so when I create libbar.so I link together my object files and libfoo-seq.a. The problem is that

“symbol(s) not found for architecture i386” problem using ShareKit

风流意气都作罢 提交于 2019-12-10 17:26:48
问题 I want to use the http://getsharekit.com framework for future iOS projects. Hence I started testing out the framework. But I already get the following error: Undefined symbols for architecture i386: "_OBJC_CLASS_$_SHKItem", referenced from: objc-class-ref in ShareKitTestAppDelegate.o "_OBJC_CLASS_$_SHKActionSheet", referenced from: objc-class-ref in ShareKitTestAppDelegate.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status Often, as far as I know, these

import error: ephem/_libastro.so undefined symbol: PyUnicodeUCS2_AsUTF8String

对着背影说爱祢 提交于 2019-12-10 16:56:32
问题 I just successfully installed PyEphem using pip in a pyenv. However, on import I receive: ImportError: /python2.7/site-packages/ephem/_libastro.so: undefined symbol: PyUnicodeUCS2_AsUTF8String In looking around I've seen it mentioned that some modules are built "against Python" in regards to Unicode and suggest recompiling. I'm quite new to Python and Ubuntu 14.04, and although I believe this is the answer to my issue, I do not know what recompiling means or how to do it. 回答1: The symbol