Message Boards Message Boards

0
|
2452 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Mathlink OS X 10.11 Linking with libMLi4.a

Posted 9 years ago

On OS X 10.11 with Mathematica 10.0.0.0 while linking I get a slew of errors starting with the following. I am using clang-700.1.76. I suspect I am missing some library in linking, but cannot seem to find where this is coming from. Any help would be much appreciated.

Undefined symbols for architecture x86_64: "_CFDictionaryCreate", referenced from: MLAlertdarwin in libMLi4.a(mlosx.c.o) MLRequestdarwin in libMLi4.a(mlosx.c.o) MLConfirmdarwin in libMLi4.a(mlosx.c.o)

POSTED BY: Dean Hidas
Posted 9 years ago

In case anyone else runs into this I was able to solve it with the following:

compile with cc
link with g++
(both are clang++ modulo a configuration prefix and gxx-include dir)

In linking used the flags:
-stdlib=libstdc++ -framework Foundation -lc++

POSTED BY: Dean Hidas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract