Qt/C++ with Microsoft C++ - C1190: managed targeted code requires a '/clr' option
Unsolved
General and Desktop
-
-
@VRonin I tried but it is not running. I created a new Qt Console Project and wrote this example code:
#include <QCoreApplication> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); int x = 17; int^ n = &x; return a.exec(); }
but I get this error: error: C3193: '^': requires '/clr' or '/ZW' command line option
-
could you try and download all the files (apart for the vcxproj and vcxproj.filters) from here https://github.com/VSRonin/FXhelper/tree/master/ManagedProcess and try to compile?
-
yes, that warning is hard coded in the pro file, you can ignore it.
Since that project compiles you can use it as base. Remove my cpp and h files, add yours and compile.To get rid of the warning remove the section
isEmpty(PREFIX){ warning("Prefix not set, install will not work") } else{ target.path = "$$PREFIX" INSTALLS += target }
in the pro file