Back to Blog
Visual studio mac c++5/19/2023 ![]() ![]() NET Runtime to import the symbols from libswe.dylib instead of libswe.dll if the current OS is OSX. NET application, which could look like this: If you have the binary of your DLL for OSX, you just need a configuration file for your. dylib on osx? seems to be a good answer about dylib) You could try to pass the -dynamiclib parameter to GCC to get a OSX specific libswe.dylib ( What are the differences between. The sources you've linked look like they're for Unix, so the chance to be able to build them on OSX are pretty good (there's a Makefile and the resulting binary would be libswe.so on Unix). You would need a compiler that generated native Macintosh-compatible binaries. It doesn't make Windows binaries execute on the Macintosh or any other platform. NET Runtime (Mono for example on OSX) to use the different file using a DllMap configuration file (see for examples). Since VS-Mac is based on Mono and Xamarin as far as I know, it seems that there could be a potential that this could happen. Then you can use the compiled *.so / *.dylib file directly. If you have C/C++ code you should be able to build it for OSX (with GCC for example) if it doesn't have some foreign (Windows) platform specific code. You'll need to build it for your target system, OSX in your case. Can be imported and used the same way as in VS on Windows
0 Comments
Read More
Leave a Reply. |