• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: clang can not compile simple cpp file with main's second argument is typedef
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >clang can not compile simple cpp file with main's second argument is typedef (From: Dmitry Markman <email@hidden>)

  • Prev by Date: clang can not compile simple cpp file with main's second argument is typedef
  • Next by Date: Re: Encrypting NIBs and StoryBoards
  • Previous by thread: clang can not compile simple cpp file with main's second argument is typedef
  • Next by thread: Re: clang can not compile simple cpp file with main's second argument is typedef
  • Index(es):
    • Date
    • Thread