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.
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.