Cute
Cute

Reputation: 14021

how to specify both /clr and /mtd options for visualstudio c++ project

in my project i have enabled /clr (Common Language Runtime) support as well as /MTd (Multithreded Debug) option in code generation section.

But the compiler shows /clr and /MTd are incompatable types. I need to use both.
How to fix this?

Thanks in advance.

Upvotes: 1

Views: 4437

Answers (2)

Cute
Cute

Reputation: 14021

u can not use both optionsin a project because c/clr needs switches for that it must use

dynamic libraries instead of static.if u use /mtd it uses static libraries.so u can not '

use /clr and /mtd

Upvotes: 1

Shay Erlichmen
Shay Erlichmen

Reputation: 31928

use the /MDd option instead, which is compatible with the /clr

Upvotes: 4

Related Questions