User forums > Using Code::Blocks

Cross compiling dynamic library (Windows > Linux/Android)

(1/1)

danguafer:
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

--- End code ---

How do I remove the --dll option on Code::Blocks? I couldn't find any way to accomplish that.

stahta01:
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.

Navigation

[0] Message Index

Go to full version