1

I have created a C++ project in Visual Studio 2013, With Opencv 3.0 Configured. Iam getting this error "error D8021: invalid numeric argument '/wdtrue'" while building the project in debug mode. I have seen similar posts regarding this, but, Could'nt find the solution to solve this error.

With reference to this post,
Remove secure warnings (_CRT_SECURE_NO_WARNINGS) from projects by default in Visual Studio Included "_CRT_SECURE_NO_WARNINGS" in project configuration. But still the error continues.

Also, Made the following configuration to project Configuration Properties-> C/C++-> All Options-> WarningLevel :Turn Off All Warnings (/W0)

This change also did'nt helped me to solve error.

Please Provide Any Solution to this error.

too honest for this site
  • 12,050
  • 4
  • 30
  • 52
Pavan
  • 33
  • 2
  • 5
  • What command line does the project properties say is used for the C++ compiler? – TBBle Feb 02 '16 at 15:16
  • @Berriel I agree. But I mean here, VS has shown these, like errors in the Project. Googling solution to this error, shown me how to suppress these errors.(warnings ;)) – Pavan Feb 03 '16 at 11:49

2 Answers2

1

In my case I produced this error by making a mistake in VS project settings: I entered in Configuration Properties/ C/C++ / Disable Specific Warnings : C4996 this leads to: "error cl : Command line error D8021: invalid numeric argument '/wdC4996"

Solution: Change the setting from C4996 to 4996.

Norbert B.
  • 11
  • 1
0

Your compiler switch /wdtrue appears to be invalid. See MSDN:

/wdn

Disables the compiler warning that is specified in n.

For example, /wd4326 disables compiler warning C4326.

Vlad Feinstein
  • 10,960
  • 1
  • 12
  • 27