Re: Xcode 1.2 build problems
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.