Discussion:
What does it mean "linker input file unused because linking not done" ?
shuoshuo
2008-12-22 06:30:02 UTC
Permalink
I wrote a C++ shared library named libmine.so in android, and I add
LOCAL_CPPFLAGS := -Wl,--version-script=libmine.map into the
Android.mk, libmine.map specified the exported symbols, but when run
make libmine, the g++ said:
"arm-eabi-g++: --version-script=libmine.map: linker input file unused
because linking not done"
the libmine.so was generated but the exporting symbols is not
controled.
does any one know why? thanks a lot !!
shuoshuo
2008-12-22 07:15:49 UTC
Permalink
I know what's wrong, I should add -Wl,--version-script=libmine.map to
LOCAL_LDFLAGS instead of LOCAL_CPPFLAGS

Continue reading on narkive:
Search results for 'What does it mean "linker input file unused because linking not done" ?' (Questions and Answers)
3
replies
Program compiles on Linux Mint, but comes with warning?
started 2013-09-03 16:22:23 UTC
programming & design
Loading...