gcc :how to specify architecture?

微笑、不失礼 提交于 2019-12-11 06:27:36

问题


How can I specify architecture when I build a library?
I need to build a library in armeabi-v7a for an Android project.
I found -march option, so this is my command :

$ gcc -shared -o liballnet.so -fPIC *.c -march=armv7-a

But it doesn't work :

error: unknown target CPU 'armv7-a'

Any ideas?

来源:https://stackoverflow.com/questions/45805322/gcc-how-to-specify-architecture

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!