I use Crystax NDK and I have 2 make files that produce a static library (libA.a) and a shared library (libB.so). Module B is dependent on module A (which is reflected by LOCAL_STATIC_LIBRARIES in B's make file).
In module A's code I have a call to swscanf and it always returns -1.
I have found weird workaround for this problem:
if I add a call to swscanf somewhere in my module B's code, then swscanf starts to work fine everywhere - in module B and in module A (even though I have not changed module A's code).
My best guess is that it is a problem with linking: if I do not have wide character function invocation at the top level shared library, then linker uses default Google NDK's implementation of the function.
Please advice.
Android Crystax NDK wide character functions in static library
417 Views Asked by Tim At
0
There are 0 best solutions below
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in C
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in ANDROID-NDK
- Debug native code in Android Studio
- dlopen failed: cannot locate symbol "cblas_sdsdot" referenced by "libgsl.so"
- GSL: nm outputs "undefined Symbol (U)"
- Eclipse not recognizing CygWin gcc
- Android APK filepath layout for NDK binary executables how-to
- Android : Loading pre-built library - Circular dependency dropped
- Android NDK code (jni interface)
- Android NDK - multlib support using gradle
- Android Crashlytics ndk; values of NdkOut and NdkLibsOut in build.gradle
- How to update Android NDK in place?
- Android NDK / Exceptions?
- Android NDK - Including prebuilt static libraries gives undefined reference errors
- Receiving sensor events in worker thread (Android native)
- ndk-build outputs ‘error adding symbols. File in wrong format’
- How to update Android jni code changings
Related Questions in MAKEFILE
- Error trying to generate Makefile for glBinding
- Eclipse Makefile: Make Variables are skipped
- Errors in makefile for qemu 0.14.1 in ubuntu 15.04 64 bit
- C++ Struct prototyping in separate header file
- Reuse jquery plugin without conflict
- How do I a conditional build through a make file?
- basic makefile ifeq how to
- (automake, libtool) build fails in automake when using same source file name in different directory
- Makefile pattern rules differences
- Errors while trying to run make on source code
- Git tag name as version in Go via Travis-CI
- gcc make -properly sort out the sequence of making object files
- AOSP ROM for Samsung Grand duos GT-i9082 Error loading kernel
- How to address multiple definition compiler error
- How does MAKE remember the file timestamps
Related Questions in WIDECHAR
- Segfault while using wcslen in C
- wofstream automatically narrows wide characters
- wctomb chokes on per mille symbol (‰)
- What is the difference between WideChar and AnsiChar?
- Convert Char into AnsiChar or WideChar (Delphi)
- Check if file existing or not in c
- Why can't I marshal UCS-4 strings properly in C#?
- Append extra null char to wide string
- What wide-characters are translated into a null multibyte?
- Why can't it print out the character encoded in Shift-JIS?
- I want to use Wide Char in my program, but most XML Parser don't support Wide Char
- Understanding and writing wchar_t in C
- Converting Japanese characters from wide characacter to multibyte using API WideChartoMultibyte gives '????'
- Wide charectar in print for some Farsi text, but not others
- Cannot use wide strings in C/C++ Visual Studio, even though it works in CodeBlocks using MinGW
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?