Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
7568 Discussions

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

Kees_B_
Beginner
107 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
107 Views

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

Judith_W_Intel
Employee
107 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

Kees_B_
Beginner
107 Views

Ah, thanks

Reply