DllImport and ARM #99192
-
I'm working on some embedded stuff, I can run full .Net 8 code on the board and debug it no issues. I want to do some interop so I installed the tools for ARM: My problem now is that no matter what I do, Visual Studio seems to insist on generating a COFF output file (with .DLL suffix) and there's no way I can get the compiler/linker to generate it in ELF format (usually named .SO files). At runtime, no matter what I do, I get a runtime exception:
It finds the file but is expecting it to be an ELF format rather than COFF, is this hard coded into the runtime? Is there no way to be able to specify the format as COFF/ELF? Is this part of .Net or is it deeper down, perhaps part of Linux? Is there no way to have Visual Studio's ARM compiler create an ELF formatted .SO file? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Architecture (x86, x86-64 or ARM) is orthogonol with OS (Windows or Linux). You are creating binaries for ARM64 version of Windows. Since your device runs Linux, you need Linux ARM toolchain. |
Beta Was this translation helpful? Give feedback.
Architecture (x86, x86-64 or ARM) is orthogonol with OS (Windows or Linux). You are creating binaries for ARM64 version of Windows. Since your device runs Linux, you need Linux ARM toolchain.