Code: Show/Hide Link * LLGetHead(LinkedList *lst) { return lst->start; } int LLIsEmpty(LinkedList *lst) { return lst->start == NULL; } |
tcsoccerman wrote: |
i think it's the double "=". remove one of them in 1rst->start == NULL line |
Agile wrote: |
Well, util.h is included at the bottom of util.c, so if you include c you also get h.
The reverse is not true as far as I know, . |
Code: Show/Hide Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Makefile.win" all dllwrap.exe --output-def outputdir/libProject2.def --driver-name c++ --implib outputdir/libProject2.a outputdir/RTZ.o -L"C:/Dev-Cpp/lib" -L"C:/posix/Pre-built.2/lib" -o outputdir/Project2.dll outputdir/RTZ.o(.text+0x19):RTZ.c: undefined reference to `amalloc' outputdir/RTZ.o(.text+0xc4):RTZ.c: undefined reference to `LLAdd' outputdir/RTZ.o(.text+0xdb):RTZ.c: undefined reference to `LLCount' outputdir/RTZ.o(.text+0x139):RTZ.c: undefined reference to `LLSize' outputdir/RTZ.o(.text+0x172):RTZ.c: undefined reference to `LLCount' outputdir/RTZ.o(.text+0x1d0):RTZ.c: undefined reference to `LLSize' outputdir/RTZ.o(.text+0x2e1):RTZ.c: undefined reference to `LLInit' outputdir/RTZ.o(.text+0x397):RTZ.c: undefined reference to `LLEmpty' collect2: ld returned 1 exit status dllwrap.exe: no export definition file provided. Creating one, but that may not be what you want dllwrap.exe: c++ exited with status 1 make.exe: *** [outputdir/Project2.dll] Error 1 Execution terminated |
Agile wrote: | |
|