Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: danguafer on May 04, 2014, 09:05:40 am

Title: Cross compiling dynamic library (Windows > Linux/Android)
Post by: danguafer on May 04, 2014, 09:05:40 am
When I try to compile, the following issue occurs:

Code
arm-linux-androideabi-g++.exe -shared   -Wl,--dll -LE:\Tools\ndk\platforms\android-14\arch-arm\usr\lib "obj\Android\Android Test\Main.o"  -o bin\Android\libnative-activity.so  
e:/tools/ndk/arm-linux-androideabi/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: --dll: unknown option
e:/tools/ndk/arm-linux-androideabi/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: use the --help option for usage information

How do I remove the --dll option on Code::Blocks? I couldn't find any way to accomplish that.
Title: Re: Cross compiling dynamic library (Windows > Linux/Android)
Post by: stahta01 on May 04, 2014, 02:49:46 pm
1. Check the compiler global settings
Likely other linker options.

2. Check the compiler project settings.
Likely other linker options.

3. Check the compiler global settings
Tab "other settings"
Button "Advanced settings"

Tim S.