login about faq

Hello,

I'm trying to compile and link the sample C programs provided on the web site. I followed the install lib instructions, but despite my efforts i cannot solve the numerous linker errors i get :

Undefined symbols for architecture x86_64:
  "_CkEmail_AddTo", referenced from:
      _main in main.o
  "_CkEmail_Create", referenced from:
      _main in main.o
  "_CkEmail_Dispose", referenced from:
      _main in main.o
  "_CkEmail_putBody", referenced from:
      _main in main.o
  "_CkEmail_putFrom", referenced from:
      _main in main.o
  "_CkEmail_putSubject", referenced from:
      _main in main.o
  "_CkMailMan_CloseSmtpConnection", referenced from:
      _main in main.o
  "_CkMailMan_Create", referenced from:
      _main in main.o
  "_CkMailMan_Dispose", referenced from:
      _main in main.o
  "_CkMailMan_SendEmail", referenced from:
      _main in main.o
  "_CkMailMan_UnlockComponent", referenced from:
      _main in main.o
  "_CkMailMan_lastErrorText", referenced from:
      _main in main.o
  "_CkMailMan_putSmtpHost", referenced from:
      _main in main.o
  "_CkMailMan_putSmtpPassword", referenced from:
      _main in main.o
  "_CkMailMan_putSmtpUsername", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any idea ? Thks

asked Jun 10 '15 at 17:34

PhC's gravatar image

PhC
1

edited Jun 10 '15 at 19:32

jpbro's gravatar image

jpbro ♦
1.1k2618


Is your "main.o" compiled from "main.c" or "main.cpp"?

In other words, is your program C++ or "C"? If C++, then you would probably want to encapsulate any Chilkat "C" headers in "extern "C" { ... }".

(If your program is C++, I would also wonder why you would choose to use the "C" API vs. the Chilkat C++ classes.)

link

answered Jun 11 '15 at 12:28

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

link

answered Jun 11 '15 at 12:31

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

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:

×20
×13

Asked: Jun 10 '15 at 17:34

Seen: 810 times

Last updated: Jun 11 '15 at 12:31

powered by OSQA