• 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: Xcode 1.2 build problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 1.2 build problems


  • Subject: Re: Xcode 1.2 build problems
  • From: Dick Rucker <email@hidden>
  • Date: Thu, 06 May 2004 11:21:59 -0400

on 5/5/04 8:59 AM, Robert Kuilman at email@hidden wrote:

> Hey all!
>
> Xcode keeps giving me the 'main.m:12: error: conversion to non-scalar
> type requested' error on build. Even a clean project, to which i have
> modified nothing will not be built.
> i didn't have this problem with Xcode 1.1, and earlier ProjectBuilder.
> I've also heard it's a known issue. So i searched the Xcode list
> archives, but nothing useful came up from there.
>
> I tried casting the pointers to NSApplicationMain to constant, and keep
> the 2nd main argument a normal char **, but that didn't help either.
>
> Can anyone give me the definitive solution to this problem?

Maybe someone answered you privately, but I didn't see an answer on this
list.  So just in case you haven't gotten a reply, here's what I've learned
about this problem from postings here.

According to the current standard, the second argument of main should be
      char *argv[]

but apparently NSApplicationMain still insists on a
     const char *argv[]

Apparently, this is a bug to be fixed.

In the meantime, I manually add the const qualifier and it has worked OK for
me.

Dick
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Xcode 1.2 build problems (From: Robert Kuilman <email@hidden>)

  • Prev by Date: Re: OT: mail and homepage.mac.com
  • Next by Date: Re: Question about weak linking?
  • Previous by thread: Xcode 1.2 build problems
  • Next by thread: How to exclude files from smart-groups?
  • Index(es):
    • Date
    • Thread