Author Topic: Cross compiling dynamic library (Windows > Linux/Android)  (Read 3265 times)

Offline danguafer

  • Single posting newcomer
  • *
  • Posts: 2
Cross compiling dynamic library (Windows > Linux/Android)
« on: May 04, 2014, 09:05:40 am »
When I try to compile, the following issue occurs:

Code: [Select]
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.

Online stahta01

  • Lives here!
  • ****
  • Posts: 6769
    • My Best Post
Re: Cross compiling dynamic library (Windows > Linux/Android)
« Reply #1 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.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org