D8045: cannot compile C file 'serialcommands.c' with the /clr option

前端 未结 1 1321
刺人心
刺人心 2021-01-17 20:10

I am getting compiler error D8045. cannot compile C file \'serialcommands.c\' with the /clr option.

This file is a C library that has been written to talk over a ser

相关标签:
1条回答
  • 2021-01-17 21:04

    Yes. You need to compile any C objects without /CLR, since the clr only understands classes and objects.

    You can still use them from your C++/CLI project, wrapped inside of your "ref class" objects. This is a normal way of wrapping a C api in .NET objects.

    0 讨论(0)
提交回复
热议问题