I would like to create an extension shared library on MacOSX. I found the simple.cpp file in the samples directory.
When I try to build it using this command, I received unresolved external symbols:
clang++ -fPIC -I/Applications/SlickEditPro2016.app/Contents/h simple.o -dynamiclib -o libsimple.so
Undefined symbols for architecture x86_64:
"_vsDeleteLine", referenced from:
_dllcommand in simple.o
"_vsDllExport", referenced from:
_vsDllInit in simple.o
"_vsExecute", referenced from:
_dllcommand in simple.o
"_vsInsertLine", referenced from:
_dllcommand in simple.o
"_vsMessageBox", referenced from:
_dllcommand in simple.o
"_vsPropSetI64", referenced from:
_dllcommand in simple.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I know the symbols are in the vs binary. How do I tell the linker to link to it? Is there a SlickEdit library I need to link with? Does anyone have a working makefile for MacOS that will successfully build the shared extension library interface to SlickEdit?
Is this known to work on MacOSX?
Thank you.