Adding mscorlib.dll in a c++ project

  • Thread starter Thread starter Metonimie
  • Start date Start date
M

Metonimie

Guest
I'm trying to use the DateTime struct in my Visual Studio 2017 C++ project and after configuring the project to support /clr I get the following errors:

Severity Code Description Project File Line Suppression State
Error (active) E2976 /clr:nostdlib requires that mscorlib.dll be in the list of forced usings ReservationDb c:\Users\Denis\source\repos\ReservationDb\ReservationDb\Reservation.h 1

Severity Code Description Project File Line Suppression State
Error (active) E2998 PCH warning: an unknown error occurred. An IntelliSense PCH file was not generated. ReservationDb c:\Users\Denis\source\repos\ReservationDb\ReservationDb\Reservation.h 1


Any ideas on how may I solve them?

Continue reading...
 
Back
Top