login about faq

Our engineer is tring to build our Android JNI sources with your SMIME library.

However, we are getting these link errors:

libchilkatAndroid.a(C_CkEmail.o): in function CkEmail_Create:C_CkEmail.cpp(.text.CkEmail_Create+0x18): error: undefined reference to '__cxa_end_cleanup'

libchilkatAndroid.a(CkEmail.o):(.ARM.extab.text._ZN7CkEmailC2Ev+0x0): error: undefined reference to '__gxx_personality_v0'

asked May 07 '14 at 08:49

chilkat's gravatar image

chilkat ♦♦
11.8k316358420


The Chilkat C/C++ libs are written in C++ and therefore need to be linked with the C++ runtime libs, which will resolve external names beginning with "__cxa" and "__gxx". To fix, use "g++" instead of "gcc" for linking. An alternative option is to include a single empty source file having a ".cpp" file extension. For example, create "empty.cpp" which is completely empty and add it to your list of application source files. This should trigger the C++ runtime libs to be linked in.

link

answered May 07 '14 at 08:52

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

edited May 07 '14 at 08:52

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×19
×1
×1

Asked: May 07 '14 at 08:49

Seen: 2,405 times

Last updated: May 07 '14 at 08:52

powered by OSQA