I am fairly new to C++ and need help with an error

Hello-

I am very new to programing in general, I am a freshman in college currently taking a C++ class and our final exam project is to make a chess game. At first this seemed impossible with my current knowledge of C++ however with a little work and what not I have started the project and I see where it is headed. However I tried to compile the program and I am recieving this error

1>cl : Command line error D8016 : '/MT' and '/clr' command-line options are incompatible

I have no clue what the error is telling me, if someone could/would help me out I would be greatful.

Max-

P.S.- Since I am a New-B to coding and everything if you do try to explain this to me you might have to do it like I am a complete C++ moron... which I pretty much am at the moment. Thanks




Answer this question

I am fairly new to C++ and need help with an error

  • Sijmen

    You've turned on managed extensions ( that is, you're using managed C++, not C++ ), and you're using the /MT linking option, and they are apparently incompatible. Do you *want* to use managed c++ That is, do you want to write a .NET program I don't see how any C++ class would accept you doing this, anyhow, it's not C++, but a Microsoft add on.



  • Raktim

    okay, makes sense...but how do i turn off 'managed C++' and put it back to 'normal C++' As for what I want, I think I want a normal .cpp file... well i am sure of this

  • Oren-a

    Okay, Thanks and yes I am using Express, is it possible to be able to run my program with MT on

  • Muskoka

    Are you using C++ Express If so, MC++ is your only decent option for any sort of user interface. There is a 'use managed extensions' or similar option in the project properties, you need to turn that off.



  • I am fairly new to C++ and need help with an error