I am having issues linking in a dll I created with codeblocks. I tried both creating it with a static .a file and a dynamic dll. I am using mingw as my compiler. I am trying to link in this library I called sensei.a/sensei.dll and having little luck.
My directory layout is like this
root
src - all my .cpp/.h files in here
sensei - my library code and .a/dll file
Now I have in my linking directory just "sensei"
and then in my linking files i just have "sensei.a" or "sensei.dll"
When I go to link the application it will not find those functions that are in the library. I have it compiled fine in linux. This is QT 4.1 application I am looking to compile in windows
any pointers?
below is the linking log
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,windows -o "release\qsudoku.exe" object_script.qsudoku.Release -L"C:\Qt\4.1.0\lib" -lmingw32 -lqtmain -lQtGui4 -lQtCore4
mingw32-make.exe[2]: Leaving directory `C:/Documents and Settings/mike/Desktop/qsudoku'
./release\board.o(.text+0x93c):board.cpp: undefined reference to `ConstructBasicBoard'
mingw32-make.exe[1]: Leaving directory `C:/Documents and Settings/mike/Desktop/qsudoku'
./release\board.o(.text+0x9a6):board.cpp: undefined reference to `GetNumPossValuesOfCell'
./release\board.o(.text+0x9cc):board.cpp: undefined reference to `GetNumPossValuesOfCell'
./release\board.o(.text+0x9fc):board.cpp: undefined reference to `GetPossValuesOfCell'
./release\board.o(.text+0xa58):board.cpp: undefined reference to `SetSymbolInCell'
./release\board.o(.text+0xa6e):board.cpp: undefined reference to `Solve'
./release\board.o(.text+0xa7c):board.cpp: undefined reference to `GetState'
./release\board.o(.text+0xadf):board.cpp: undefined reference to `GetNumCells'
./release\board.o(.text+0xb0a):board.cpp: undefined reference to `GetBoardRaw'
./release\board.o(.text+0xd0e):board.cpp: undefined reference to `CleanBoard'
collect2: ld returned 1 exit status
mingw32-make.exe[2]: *** [release\qsudoku.exe] Error 1
mingw32-make.exe[1]: *** [release] Error 2
mingw32-make.exe: *** [release] Error 2
Process terminated with status 1 (0 minutes, 3 seconds)
10 errors, 0 warnings