Error

  • jenn4
    28th Aug 2011 Member 0 Permalink
    Im on ubuntu. I have element what have part of deut code. when I try to compile comes this:

    jann@ubuntu:~/Työpöytä/FacialTurd-The-Powder-Toy-9bec43c$ ./script.sh
    echo python getheader.py
    python getheader.py
    gcc -DINTERNAL -opowder-debug -w -std=c99 -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DGRAVFFT -Iincludes/ -O3 -ffast-math -ftree-vectorize -funsafe-math-optimizations -march=native -DX86 -DX86_SSE3 -msse3 src/*.c src/elements/*.c -lpthread -lSDL -lfftw3f -lm -lbz2 -lX11 -llua5.1 -DLIN64 -Wall -std=c99 -D_POSIX_C_SOURCE=200112L -pg -DX86 -DX86_SSE3 -msse3 -g
    src/elements/tst2.c: In function ‘update_TST2’:
    src/elements/tst2.c:17:20: error: ‘PT_TST2’ undeclared (first use in this function)
    src/elements/tst2.c:17:20: note: each undeclared identifier is reported only once for each function it appears in
    src/elements/tst2.c:26:2: error: expected declaration or statement at end of input
    make: *** [powder-debug] Error 1

    Where should I declare.
  • vanquish349
    28th Aug 2011 Member 0 Permalink
    you havent declared PT_TST2
  • jenn4
    28th Aug 2011 Member 0 Permalink
    @vanquish349 (View Post)
    I can read. where should I declare.
  • vanquish349
    28th Aug 2011 Member 0 Permalink
    @jenn4 (View Post)
    look in duets code
  • jenn4
    28th Aug 2011 Member 0 Permalink
    @vanquish349 (View Post)
    deuts. And I have line: int update_TST2(UPDATE_FUNC_ARGS); in powder.h
  • vanquish349
    28th Aug 2011 Member 0 Permalink
    can you post you code on pastebin
  • devast8a
    28th Aug 2011 Former Staff 0 Permalink
    @jenn4 (View Post)
    Make sure you're including powder.h before you the usage of update_TST2
  • jenn4
    28th Aug 2011 Member 0 Permalink
    Ok I post.And I have