Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7933 Discussions

Compiler warning #2553: nonstandard second parameter "char *[]" of "main", expected "char *[]" or "char **"

Kees_B_
Beginner
420 Views

Hi,

Using warning level -W4 or -W5 I get this strange compiler warning. Can anyone see what I'm doing wrong?

Intel(R) C++ Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 12.0.3.175 Build 20110309
Copyright (C) 1985-2011 Intel Corporation.  All rights reserved.

hello.c
hello.c(3): remark #2553: nonstandard second parameter "char *[]" of "main", expected "char *[]" or "char **"
  int main(int argc, char *argv[])
      ^

Or is this a known bug in Version 12 of the compiler?

0 Kudos
3 Replies
Melanie_B_Intel
Employee
420 Views

This is a known bug in Version 12 of the compiler. DPD200196948 in our internal bugs database.

0 Kudos
Judith_W_Intel
Employee
420 Views

 

Yes if you are on Windows and compiling in C. This was fixed in release 13.0. Please upgrade to the latest version of compiler (14.0).

Judy

0 Kudos
Kees_B_
Beginner
420 Views

Ah, thanks

0 Kudos
Reply