A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Mac GCC question

  1. #1
    Senior Member Dricciotti's Avatar
    Join Date
    Aug 2002
    Posts
    2,988

    Mac GCC question

    This isnt flash related at all......

    Ive been trying to compile a version of the Crafty Chess program (open source chess engine written in C) on my Mac (OSX 10.4).

    When I try to compile using a provided Makefile, I get all sorts of errors which makes me think that the problem is with how I have GCC set up (however I can compile small c programs with gcc)

    Attached is the Makefile (I had to put a .txt extension of it so it would attach on flashkit)


    Anybody have some ideas what could be wrong?
    Attached Files Attached Files
    Last edited by Dricciotti; 01-01-2008 at 04:08 PM.

  2. #2
    Senior Member Dricciotti's Avatar
    Join Date
    Aug 2002
    Posts
    2,988
    About 1000 errors pop up when I compile, but here is a sample of what it looks like:

    >> make darwin
    make target=FreeBSD \
    CC=gcc CXX=g++ \
    CFLAGS=' -Wall -pipe -O3' \
    CXFLAGS= \
    LDFLAGS= \
    LIBS='-lstdc++' \
    opt='' \
    crafty-make
    gcc -Wall -pipe -O3 -DFreeBSD -c crafty.c
    In file included from searchr.c:4,
    from crafty.c:1:
    chess.h:30:17: warning: missing whitespace after the macro name
    In file included from chess.h:129,
    from searchr.c:4,
    from crafty.c:1:
    lock.h:1:6: error: token "=" is not valid in preprocessor expressions
    In file included from searchr.c:4,
    from crafty.c:1:

    ....

    After that, almost every error is of the following types:
    1) dereferencing pointer to incomplete type
    2) request for member in something not a structure or union

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center