Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

[CppCodegen] Simple file I/O does not work #2466

Closed
jkotas opened this issue Jan 7, 2017 · 1 comment
Closed

[CppCodegen] Simple file I/O does not work #2466

jkotas opened this issue Jan 7, 2017 · 1 comment

Comments

@jkotas
Copy link
Member

jkotas commented Jan 7, 2017

Forked from #2147 (comment)

Repro:

var fs = new FileStream("bob.txt", FileMode.Append);

With CppCodeGen, it fails with:

C:\Users\Fabian\Documents\Development\nativetest\Program.cs(109752): error C2440: 'initializing': cannot convert from 'System_Private_CoreLib::System::Threading::NativeOverlapped *' to 'intptr_t' [C:\Users\Fabian\Documents\Development\nativetest\nativetest.csproj]
C:\Users\Fabian\Documents\Development\nativetest\Program.cs(109752): note: There is no context in which this conversion is possible

@jkotas
Copy link
Member Author

jkotas commented Jan 7, 2017

This one should be easy one to fix. https://github.com/dotnet/corert/blob/master/src/ILCompiler.Compiler/src/CppCodeGen/ILToCppImporter.cs is the place to look to get it fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant