How do I compile my package to DLL and link in a C++ project? More specifically, how to configure environments in Visual Studio and deploy in Windows platform?
I’m not much of an expert on this but came across following enbedding manual. Perhaps it’s usefull. There’s a piece about linking in it. Embedding Julia · The Julia Language
Thanks for reply :D. Embedding julia in VS is one solution. However, it requires user to install julia environment before running the final app.
I’m trying to find another solution, that is, packaging Julia along with the package in a standalone app. That’s also the reason that I’m using PackageCompiler
The Julia library itself is linked against many other libraries, it’s not fully self-contained (this is actually useful sometimes, for example if you don’t want to use llvm.dll).
Are you including the entire folder of files generated by PackageCompiler.create_library() ? That folder should be all that’s needed, except for a few system libraries like libc.dll
Yes, I am. In VS project Linker property settings, I appended %(AdditionalLibraryDirectories) with the bin folder generated by PackageCompiler.create_library, and additional dependencies with libjulia.dll.a.
The problem is that, PackageCompiler does not generate a libMyLib.lib file along with the libMyLib.dll.
I have tried to manually generate the missing libMyLib.dll by calling in PowerShell: