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: Aaron Montgomery <email@hidden>
- Date: Fri, 25 Jan 2013 20:54:02 -0800
On Jan 25, 2013, at 7:37 PM, Dmitry Markman <email@hidden> wrote:
> #include <iostream>
>
> typedef char char_T;
>
> int main(int argc, const char_T * argv[])
> {
> std::cout << "Hello Test World!" << std::endl;
> return 0;
> }
If you eliminate the const, and pass a char_T** it compiles (and I think the standard char** not a const char**). What is odd to me is that it will compile if you pass a const char**, but not a const char_T**.
Aaron
_______________________________________________
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