Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

arm - Linking static library compiled with ARMCLANG v6 with GNU gcc linker

I have small static library compiled with latest ARM compiler ARMCLANG v6. Now I have small application that uses this library. I am developing this application in Segger Embedded Studio to debug on Atmel SAM3x8e microcontroller. I am trying to link this static library to my application but getting errors: undefined symbol on all functions that I am trying to use in application. In Segger I tried GCC linker and Segger linker and the same problems. Then I created small test library in Segger and linked with application with no problem.

Is it possible to use ARMCLANG v6 compiled library with GNU GCC linker or Segger?? May be I am missing some options that can be used to create library with ARMCLANG??

Thank you.

PS. I would use ARMCLANG for my application but license free version of ARMCLANG has code size limitations to 32K.

question from:https://stackoverflow.com/questions/65944196/linking-static-library-compiled-with-armclang-v6-with-gnu-gcc-linker

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...