Wierd error in compile. says undefined

  • me4502
    14th Apr 2011 Member 0 Permalink
    python getheader.py --64bit

    -lpython2.7 -lm -L/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
    -lpython2.7 -lm -L/Library/Frameworks/Python.framework/Versions/2.7/lib/config -I/Library/Frameworks/Python.framework/Versions/2.7/include
    internal
    gcc -o powder-x -std=c99 -D_POSIX_C_SOURCE=200112L -Iincludes/ -O3 -ffast-math -ftree-vectorize -funsafe-math-optimizations -lm -lbz2 -lSDLmain -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 src/*.c src/elements/*.c -DMACOSX -DPIX32BGRA -arch x86_64 -framework Cocoa -framework SDL -framework Python
    src/main.c: In function ‘SDL_main’:
    src/main.c:2881: error: ‘mmapx_o’ undeclared (first use in this function)
    src/main.c:2881: error: (Each undeclared identifier is reported only once
    src/main.c:2881: error: for each function it appears in.)
    src/main.c:2881: error: ‘mmapx’ undeclared (first use in this function)
    src/main.c:2882: error: ‘mmapy_o’ undeclared (first use in this function)
    src/main.c:2882: error: ‘mmapy’ undeclared (first use in this function)
    make: *** [powder-x] Error 1


    thats error... i havent canged that part ans i cant find that declared in the official source
  • Neospector
    14th Apr 2011 Member 0 Permalink
    *Deleted, I can't read. >_<*
  • me4502
    14th Apr 2011 Member 0 Permalink
    @Neospector (View Post)
    what do you mean by that...


    python getheader.py --64bit

    -lpython2.7 -lm -L/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
    -lpython2.7 -lm -L/Library/Frameworks/Python.framework/Versions/2.7/lib/config -I/Library/Frameworks/Python.framework/Versions/2.7/include
    internal
    gcc -o powder-x -std=c99 -D_POSIX_C_SOURCE=200112L -Iincludes/ -O3 -ffast-math -ftree-vectorize -funsafe-math-optimizations -lm -lbz2 -lSDLmain -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 src/*.c src/elements/*.c -DMACOSX -DPIX32BGRA -arch x86_64 -framework Cocoa -framework SDL -framework Python
    src/main.c: In function ‘SDL_main’:
    src/main.c:2881: error: ‘mmapx_o’ undeclared (first use in this function)
    src/main.c:2881: error: (Each undeclared identifier is reported only once
    src/main.c:2881: error: for each function it appears in.)
    src/main.c:2881: error: ‘mmapx’ undeclared (first use in this function)
    src/main.c:2882: error: ‘mmapy_o’ undeclared (first use in this function)
    src/main.c:2882: error: ‘mmapy’ undeclared (first use in this function)
    make: *** [powder-x] Error 1
    heres another copy of error
  • Pilihp64
    14th Apr 2011 Developer 0 Permalink
    just delete those lines in the code, simon must have been adding something else, and didn't commit the rest or something.
  • me4502
    14th Apr 2011 Member 0 Permalink
    @cracker64 (View Post)
    Ok. It was in the commit about the renderer which does nothing for me... I've just commented those out till next commit when they work.
  • Simon
    14th Apr 2011 Administrator 0 Permalink
    Yeah, see crackers post, I was experimenting and must have forgotten to revert those changes upon the last commit.