Re: clang can not compile simple cpp file with main's second argument is typedef
Re: clang can not compile simple cpp file with main's second argument is typedef
- Subject: Re: clang can not compile simple cpp file with main's second argument is typedef
- From: Dmitry Markman <email@hidden>
- Date: Mon, 28 Jan 2013 22:33:57 -0500
just FYI
apparently that problem was fixed in current SVN clang repository (r173758)
thanks
On Jan 25, 2013, at 10:37 PM, Dmitry Markman < email@hidden> wrote: Hi all
clang++ failed to compile the following simple program
I have Xcode 4.5.2 installed clang++ --version returns
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) Target: x86_64-apple-darwin12.2.0 Thread model: posix
#include <iostream>
typedef char char_T;
int main(int argc, const char_T * argv[]) { std::cout << "Hello Test World!" << std::endl; return 0; }
it complained dima_test.cpp:5:5: error: second parameter of 'main' (argument array) must be of type 'char **' int main(int argc, const char_T * argv[])
as far as I can see second argument is char**
gcc-4.7.1 (I built it by myself) is fine with that
am I missing something here?
thanks
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden