I have a project that uses C ++ / CLI to implement a GUI and some background processing to talk to a sensor. I have everything that works, and a lot of the materials that we use to communicate with the sensor are in the .dll. The problem is that I would like to merge the library into the main executable so as not to worry about the distribution of .dlls.
I have a demo project that works fine using .lib, but when I try to switch the body of the mani code to create .lib instead of .dll, I get the following error:
1>------ Build started: Project: MyTool, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>.\stdafx.cpp : fatal error C1113:
A little googling suggests that this happens when you do not use the MSIL switch, but it is definitely located there in the library project.
I have mixed managed and unmanaged code both in my demo project and in reality, so I'm really trying to understand what the problem is.
Any suggestions would be greatly appreciated!
source
share