News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Cross compiling dynamic library (Windows > Linux/Android)

Started by danguafer, May 04, 2014, 09:05:40 AM

Previous topic - Next topic

danguafer

When I try to compile, the following issue occurs:


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.

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.

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]