Quote: |
I have not compiled/tested this yet |
Initrd.gz wrote: |
the "Dereferencing void * pointers" errors. |
Initrd.gz wrote: |
Player B is attached to C, and A attaches to B, so it attaches to C.
Are you saying when B detaches from C, A is still attached? Because it looks like it should detach. ![]() |
Dr Brain wrote: |
That sounds bad. Cast pointers to the correct type before you deref them. |
Code: Show/Hide link->data->attribute |
Code: Show/Hide Turret *turret = (Turret *) link->data;
turret->attribute |
Quote: |
0 E:\...\lockon.c [Warning] `nul.gcda' is not a gcov data file |
Samapico wrote: |
it's definitely more efficient to create a pointer to link->data first |
Code: Show/Hide gcc lockon.c -o lockon.so -I./include -I./ |
Code: Show/Hide $ gcc lockon.c ./main/util.c -o lockon.so -I./include -I./ -Wall
lockon.c: In function ?get_best_target?: lockon.c:197: warning: statement with no effect lockon.c: In function ?turret_kickoff?: lockon.c:480: warning: suggest parentheses around assignment used as truth value lockon.c: In function ?MM_lockon?: lockon.c:900: warning: control reaches end of non-void function lockon.c: At top level: lockon.c:787: warning: ?interface? defined but not used /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' /tmp/ccPNvLFR.o: In function `fireangle': lockon.c:(.text+0x413): undefined reference to `atan2' /tmp/cc1H9JJR.o: In function `MPRemove': util.c:(.text+0x1d27): undefined reference to `__pthread_register_cancel' util.c:(.text+0x1d74): undefined reference to `__pthread_unregister_cancel' collect2: ld returned 1 exit status |
Code: Show/Hide make deps
make |
Quote: |
gcc -std=gnu99 -pipe -I. -Iinclude -I../build -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -I/opt/db-4.0.14/include -fPIC \
-DNODQ -DNOTREAP -DNOSTRINGCHUNK -DNOMPQUEUE -DNOMMAP \ -o ../build/dbtool ../build/statcodes.o main/util.c main/dbtool.c -L/opt/db-4.0.14/lib -Wl,-rpath,/opt/db-4.0.14/lib -ldb-4 main/dbtool.c: In function ?print_quoted?: main/dbtool.c:177: warning: pointer targets in passing argument 1 of ?strchr? differ in signedness main/dbtool.c:178: warning: pointer targets in passing argument 1 of ?fputs? differ in signedness main/dbtool.c: In function ?stats_print_stats?: main/dbtool.c:445: warning: pointer targets in passing argument 1 of ?print_quoted? differ in signedness gcc -std=gnu99 -pipe -I. -Iinclude -I../build -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -I/opt/mysql/include -c -o ../build/mysql.o database/mysql.c database/mysql.c:17:19: error: mysql.h: No such file or directory database/mysql.c:44: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token database/mysql.c: In function ?do_query?: database/mysql.c:55: warning: implicit declaration of function ?mysql_real_query? database/mysql.c:55: error: ?mydb? undeclared (first use in this function) database/mysql.c:55: error: (Each undeclared identifier is reported only once database/mysql.c:55: error: for each function it appears in.) database/mysql.c:60: warning: implicit declaration of function ?mysql_error? database/mysql.c:60: warning: format ?%s? expects type ?char *?, but argument 3 has type ?int? database/mysql.c:62: warning: implicit declaration of function ?mysql_errno? database/mysql.c:66: warning: implicit declaration of function ?mysql_field_count? database/mysql.c:74: error: ?MYSQL_RES? undeclared (first use in this function) database/mysql.c:74: error: ?res? undeclared (first use in this function) database/mysql.c:74: warning: implicit declaration of function ?mysql_store_result? database/mysql.c:79: warning: format ?%s? expects type ?char *?, but argument 3 has type ?int? database/mysql.c:89: warning: implicit declaration of function ?mysql_free_result? database/mysql.c: In function ?close_db?: database/mysql.c:97: warning: implicit declaration of function ?mysql_close? database/mysql.c:97: error: ?MYSQL? undeclared (first use in this function) database/mysql.c:97: error: expected expression before ?)? token database/mysql.c: In function ?work_thread?: database/mysql.c:105: error: ?mydb? undeclared (first use in this function) database/mysql.c:105: warning: implicit declaration of function ?mysql_init? database/mysql.c:109: warning: format ?%s? expects type ?char *?, but argument 3 has type ?int? database/mysql.c:120: warning: implicit declaration of function ?mysql_real_connect? database/mysql.c:120: error: ?CLIENT_COMPRESS? undeclared (first use in this function) database/mysql.c:120: warning: comparison between pointer and integer database/mysql.c:122: warning: format ?%s? expects type ?char *?, but argument 3 has type ?int? database/mysql.c:138: warning: implicit declaration of function ?mysql_ping? database/mysql.c: In function ?Query?: database/mysql.c:217: warning: implicit declaration of function ?mysql_escape_string? database/mysql.c: In function ?GetRowCount?: database/mysql.c:241: warning: implicit declaration of function ?mysql_num_rows? database/mysql.c:241: error: ?MYSQL_RES? undeclared (first use in this function) database/mysql.c:241: error: expected expression before ?)? token database/mysql.c: In function ?GetFieldCount?: database/mysql.c:246: warning: implicit declaration of function ?mysql_num_fields? database/mysql.c:246: error: ?MYSQL_RES? undeclared (first use in this function) database/mysql.c:246: error: expected expression before ?)? token database/mysql.c: In function ?GetRow?: database/mysql.c:251: warning: implicit declaration of function ?mysql_fetch_row? database/mysql.c:251: error: ?MYSQL_RES? undeclared (first use in this function) database/mysql.c:251: error: expected expression before ?)? token database/mysql.c: In function ?GetField?: database/mysql.c:256: error: ?MYSQL_ROW? undeclared (first use in this function) database/mysql.c:256: error: expected ?)? before ?row? database/mysql.c:257: warning: control reaches end of non-void function database/mysql.c: In function ?GetLastInsertId?: database/mysql.c:261: warning: implicit declaration of function ?mysql_insert_id? database/mysql.c:261: error: ?mydb? undeclared (first use in this function) make: *** [../build/mysql.o] Error 1 |
Code: Show/Hide have_mysql := no |