|
From: Matteo S. <gna...@gm...> - 2009-09-06 17:35:22
|
ho finalmente finito di scrivere la funzione che spero vada bene perkè compila ma nn riesco a compilare il test ( ci ho perso 2 giorni e nn ne vengo a capo) ti posto il log della shell D:\Informatica\Progetti\Mathtool\ulib>make -f makefile.win test gcc.exe lib\utest.o lib\ustack_test.o lib\ulist_test.o lib\ubintree_test.o lib\u string_test.o lib\udict_test.o -lulib -o "utest.exe" lib\utest.o:utest.c:(.text+0x135): undefined reference to `testPushPop' lib\utest.o:utest.c:(.text+0x152): undefined reference to `testList' lib\ustack_test.o: In function `testPushPop': ustack_test.c:(.text+0xe): undefined reference to `puts' ustack_test.c:(.text+0x1a): undefined reference to `puts' ustack_test.c:(.text+0x26): undefined reference to `puts' ustack_test.c:(.text+0x32): undefined reference to `scanf' ustack_test.c:(.text+0x39): undefined reference to `printInt' ustack_test.c:(.text+0x3e): undefined reference to `uStackNew' ustack_test.c:(.text+0x4c): undefined reference to `malloc' ustack_test.c:(.text+0x5b): undefined reference to `uStackPush' ustack_test.c:(.text+0x76): undefined reference to `malloc' ustack_test.c:(.text+0x81): undefined reference to `uStackPush' ustack_test.c:(.text+0x93): undefined reference to `uStackIsEmpty' ustack_test.c:(.text+0xa5): undefined reference to `uStackPop' ustack_test.c:(.text+0xb4): undefined reference to `printf' ustack_test.c:(.text+0xc0): undefined reference to `uStackIsEmpty' lib\ulist_test.o: In function `testList': ulist_test.c:(.text+0xc): undefined reference to `malloc' ulist_test.c:(.text+0x67): undefined reference to `uListCreate' ulist_test.c:(.text+0x76): undefined reference to `printf' ulist_test.c:(.text+0x7d): undefined reference to `printInt' ulist_test.c:(.text+0x85): undefined reference to `uListPrint' ulist_test.c:(.text+0x91): undefined reference to `putchar' ulist_test.c:(.text+0x99): undefined reference to `uListIteratorNew' ulist_test.c:(.text+0xa7): undefined reference to `printf' ulist_test.c:(.text+0xb5): undefined reference to `printInt' ulist_test.c:(.text+0xc1): undefined reference to `printf' ulist_test.c:(.text+0xcf): undefined reference to `printInt' ulist_test.c:(.text+0xdb): undefined reference to `printf' ulist_test.c:(.text+0xe9): undefined reference to `printInt' ulist_test.c:(.text+0xf5): undefined reference to `printf' ulist_test.c:(.text+0x103): undefined reference to `printInt' ulist_test.c:(.text+0x10f): undefined reference to `printf' ulist_test.c:(.text+0x11d): undefined reference to `printInt' ulist_test.c:(.text+0x129): undefined reference to `printf' ulist_test.c:(.text+0x13f): undefined reference to `printf' ulist_test.c:(.text+0x14d): undefined reference to `printInt' ulist_test.c:(.text+0x159): undefined reference to `printf' ulist_test.c:(.text+0x167): undefined reference to `printInt' ulist_test.c:(.text+0x173): undefined reference to `printf' ulist_test.c:(.text+0x17b): undefined reference to `uListPrint' ulist_test.c:(.text+0x183): undefined reference to `free' ulist_test.c:(.text+0x18b): undefined reference to `uListFree' lib\ubintree_test.o:ubintree_test.c:(.text+0x5b): undefined reference to `printI nt' lib\ubintree_test.o:ubintree_test.c:(.text+0x89): undefined reference to `printI nt' lib\udict_test.o:udict_test.c:(.text+0xa): undefined reference to `uIntCmp' lib\udict_test.o:udict_test.c:(.text+0x30): undefined reference to `uNewInt' lib\udict_test.o:udict_test.c:(.text+0x3e): undefined reference to `uNewInt' lib\udict_test.o:udict_test.c:(.text+0x5a): undefined reference to `uNewInt' lib\udict_test.o:udict_test.c:(.text+0x68): undefined reference to `uNewInt' lib\udict_test.o:udict_test.c:(.text+0x84): undefined reference to `uNewInt' lib\udict_test.o:udict_test.c:(.text+0x92): more undefined references to `uNewIn t' follow lib\udict_test.o:udict_test.c:(.text+0xc2): undefined reference to `printInt' lib\udict_test.o:udict_test.c:(.text+0xce): undefined reference to `uNewInt' lib\udict_test.o:udict_test.c:(.text+0xe2): undefined reference to `printInt' lib\udict_test.o:udict_test.c:(.text+0xee): undefined reference to `uNewInt' lib\udict_test.o:udict_test.c:(.text+0x102): undefined reference to `printInt' C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../ulib.lib(ubintree.o):ubintree.c:( .text+0x44): undefined reference to `uMalloc' C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../ulib.lib(ubintree.o):ubintree.c:( .text+0x53): undefined reference to `uMalloc' C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../ulib.lib(ubintree.o):ubintree.c:( .text+0xdf): undefined reference to `uMalloc' C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../ulib.lib(ubintree.o):ubintree.c:( .text+0xed): undefined reference to `uMalloc' C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../ulib.lib(ubintree.o):ubintree.c:( .text+0x1ce): undefined reference to `uMalloc' C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../ulib.lib(ubintree.o):ubintree.c:( .text+0x1ff): more undefined references to `uMalloc' follow collect2: ld returned 1 exit status make: *** [test] Error 1 Dimmi tu ti prego cs sbaglio perchè non capisco e mi serve testare quello che scrivo... poi dai un sec una controllata se gli ultimi due file di test che ho aggiunto sn corretti ( avevo cambiato il nome alle funzioni perkè erano cambiate nei file relativi ad alberi e liste ) |