wjwwood / serial

Cross-platform, Serial Port library written in C++
http://wjwwood.github.com/serial/
MIT License
2.11k stars 1.02k forks source link

The specified executable is not a valid application for this OS platform #293

Open frbitten opened 9 months ago

frbitten commented 9 months ago

I'm having the problem "The specified executable is not a valid application for this OS platform" when running a program that uses the library. I noticed that it only happens when the library is added as a dependency. If I remove it the problem disappears.

I'm using Cmake with MSBuild to compile the project. Does anyone have any suggestions as to what it could be? I have already checked that the exe is 64bit and the /clr is disabled.