SDK maximum...


    Feb 28 2007 | 10:50 am
    Hi... i'm finaly in the world of trying to port objects developped under code warrior to Xcode...
    I tried to compile the maximum object and Xcode retourns me a warning saying :
    return type of 'main' is not 'int'
    Is it ok ???
    Just in case, please find herewith attached a sreen copy of the build result window on Xcode
    Thanks in advance. ;-)
    S.T

    • Feb 28 2007 | 11:02 am
      Don't worry about that one. Every max, msp and jitter object has that warning.
      wes
      On 2/28/07, tworowski.sebastien wrote:
      > Hi... i'm finaly in the world of trying to port objects developped under code warrior to Xcode...
      >
      > I tried to compile the maximum object and Xcode retourns me a warning saying :
      > return type of 'main' is not 'int'
      > Is it ok ???
      >
      > Just in case, please find herewith attached a sreen copy of the build result window on Xcode
      >
      > Thanks in advance. ;-)
      > S.T
      > --
      > serious : http://www.synart.org
      >
      > a lot less serious :
      > - http://www.bloghotel.org/oulchenowski
      > - http://www.bloghotel.org/tworowski
      >
      >
      >
      >
    • Feb 28 2007 | 4:41 pm
      define main as:
      int main (void) {
      // your code
      return 0;
      }
      and the error will go away.
      Theoretically speaking this is a more correct
      definition of main.
      Practically, it doesn't make a difference.
      - Luigi
      --- "tworowski.sebastien"
      wrote:
      > Hi... i'm finaly in the world of trying to port
      > objects developped under code warrior to Xcode...
      >
      > I tried to compile the maximum object and Xcode
      > retourns me a warning saying :
      > return type of 'main' is not 'int'
      > Is it ok ???
      >
      > Just in case, please find herewith attached a sreen
      > copy of the build result window on Xcode
      >
      > Thanks in advance. ;-)
      > S.T
      > --
      > serious : http://www.synart.org
      >
      > a lot less serious :
      > - http://www.bloghotel.org/oulchenowski
      > - http://www.bloghotel.org/tworowski
      >
      ------------------------------------------------------------
      THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT SUPERBIGIO@YAHOO.COM AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
      ------------------------------------------------------------
      No need to miss a message. Get email on-the-go
      with Yahoo! Mail for Mobile. Get started.
    • Feb 28 2007 | 4:55 pm
      Thank you very much to the two of you... i have an other question :-(
      what about that :
      error: array subscript is not an integer
      pointing to this in the code :
      ...
      x->init_key[NULL];
      ...
      when init_key is declared of type unsigned long
      Is it possible to help me with this... (also, if there is a special forum for this, please tell me)
      There was no problem under CodeWarrior...
      Thanks in advance.
      Seb.
    • Feb 28 2007 | 5:03 pm
      NULL is probably defined as (void *)0L - just use 0.
      jb
      Am 28.02.2007 um 17:55 schrieb tworowski.sebastien:
      >
      > and what about that :
      > error: array subscript is not an integer
      >
      > pointing to this in the code :
      >
      > ...
      > x->init_key[NULL];
      > ...
      >
      > when init_key is declared of type unsigned long
      >
      > Is it possible to help me with this... (also, if there is a special
      > forum for this, please tell me)
      >
      > There was no problem under CodeWarrior...
      >
      > Thanks in advance.
      > Seb.
      > --
      > serious : http://www.synart.org
      >
      > a lot less serious :
      > - http://www.bloghotel.org/oulchenowski
    • Mar 01 2007 | 3:34 pm
      yes, i thought of that but it doesn't change anything...
      Anyway, thanks for your help.
      Seb.T
    • Mar 13 2007 | 3:20 am
      Sorry - I'm not sure if I responded to you (I thought I did, but my
      email program suggests I didn't...).
      This is a pointless warning, and won't cause you any problems. This
      would have been present in codewarrior if we hadn't turned off that
      test!
      [ddg]
      Darwin Grosse
      On Feb 28, 2007, at 3:50 AM, tworowski.sebastien wrote:
      > Hi... i'm finaly in the world of trying to port objects developped
      > under code warrior to Xcode...
      >
      > I tried to compile the maximum object and Xcode retourns me a
      > warning saying :
      > return type of 'main' is not 'int'
      > Is it ok ???
      >
      > Just in case, please find herewith attached a sreen copy of the
      > build result window on Xcode
      >
      > Thanks in advance. ;-)
      > S.T
      > --
      > serious : http://www.synart.org
      >
      > a lot less serious :
      > - http://www.bloghotel.org/oulchenowski
      > - http://www.bloghotel.org/tworowski
      >