This repository has been archived by the owner on Oct 25, 2021. It is now read-only.
Embeddinator fails to generate C++ Static Library from .NET library on Windows #740
Labels
Milestone
I wanted to create a C++ library for a .NET library using Embeddinator-4000.exe. However, when I am setting '--gen=c++', I am getting following exception (Tried with both 32 Bit and 64 Bit Mono versions).
Unhandled Exception: System.NotImplementedException: The method or operation is not implemented.
at Embeddinator.Driver.CreateGenerator()
at Embeddinator.Driver.Process()
at Embeddinator.Driver.Run()
at Embeddinator.CLI.Main(String[] args)
As I got stuck for C++ so thought of doing the same by setting '--gen=c'. However, I am getting 'LINK : fatal error LNK1561: entry point must be defined' error.
Steps to Reproduce
.
Embeddinator-4000.exe --gen=c --platform=Windows --compile --target=static --outdir="C:\Temp\MonoLibs" "${SolutionDir}\bin\Debug\netstandard2.0\MonoTestDLL.dll"
Note: You can replace the path of dll per solution location
LINK : fatal error LNK1561: entry point must be defined
Failed to compile generated code.
Expected Behavior
Command execution shall work fine and I am expecting 'MonoTestDLL.lib' and wrapper files to be generated by the Embeddinator tool which I can further use in my C++ executable or library.
Actual Behavior
Fails with exception
Environment
Windows
Installed Mono and Embeddinator using VS2017 NuGet package.
Set paths of Mono and Embeddinator executable folder in environment variables using %PATH% on command prompt to avoid errors.
The text was updated successfully, but these errors were encountered: