You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update libc DllImport to one that is supported? #41
I was trying to compile your library through the .NET Native toolchain and realised that it has a dependency on libc.dll (UnsafeNativeMethods.cs:52) for memcmp. (As a result, it doesn't run and probably fails during runtime.) I believe MSFT has deprecated libc.dll (http://msdn.microsoft.com/en-us/library/abx4dbyh.aspx) and only allows you to use libcmt or mscvrt. (It's in that tiny Note section.)
Project type was Universal App. I was running the Windows Store App part of it. The compiler directive is "WINDOWS_APP". I don't know if it'll run on Windows Phone, but I did not check. The compiler directive for that is "WINDOWS_PHONE_APP".
I've compiled it and tested it on my application. It runs! :)
However, using the library may take some effort because .NET Native handles Reflection a lot differently than before (since it is statically compiled and there is no JIT). I am working to see if I can add some runtime directives to get it to work. :)
Did the fix for this issue ever make it into master? We are also trying to use MsgPack in a windows store app, and are unable to, due to the libc.dll dependency when installing from Nuget. I think the nuspec would also need to be modified for this project? Thanks!
Activity
yfakariya commentedon Sep 26, 2014
Hi,
Would you tell me what platform did you use? libc is intended for non-Windows build, so I will add compiler directive around it.
Thanks!
reifujin commentedon Sep 26, 2014
Hi,
I was on Windows 8.1 with VS 2014 CTP. I had installed MsgPack through the nuget package.
yfakariya commentedon Sep 29, 2014
What type of the project? Desktop or windows?
reifujin commentedon Sep 29, 2014
Project type was Universal App. I was running the Windows Store App part of it. The compiler directive is "WINDOWS_APP". I don't know if it'll run on Windows Phone, but I did not check. The compiler directive for that is "WINDOWS_PHONE_APP".
Fix libc importing cause .NET Native compliation error. issue #41
yfakariya commentedon Oct 4, 2014
Thank you for response. I've fixed this issue, so can you test it?
issue41branch.(repoistory-root)\bin\portable-net45+win+wpa81\MsgPack.dllis patched DLL for Universal apps.I'm happy if you continously contribute to enable MsgPack in .NET Native :)
reifujin commentedon Oct 6, 2014
Hey,
I've compiled it and tested it on my application. It runs! :)
However, using the library may take some effort because .NET Native handles Reflection a lot differently than before (since it is statically compiled and there is no JIT). I am working to see if I can add some runtime directives to get it to work. :)
Connie
bunkerdives commentedon Dec 12, 2016
Did the fix for this issue ever make it into master? We are also trying to use MsgPack in a windows store app, and are unable to, due to the libc.dll dependency when installing from Nuget. I think the nuspec would also need to be modified for this project? Thanks!