Using Codeblocks 17.12 on Windows 10
Trying to port an old Borland C project, I've changed the c unit files and tested them individually and they work OK, but I'm having problems when I try and put together a project.
I've created a Console application, selecting c as the language then I've added the source files making sure they are included in the active project, the build log suggests they are being compiled but it fails to compile with a undefined reference to 'function' error even though the c source files are there and have relevant the headers included.
I'm stumped at present and I can't work out why it's not working.
Any pointers?
Build Log
-------------- Clean: Debug in ConFuncTest (compiler: GNU GCC Compiler)---------------
Cleaned "ConFuncTest - Debug"
-------------- Build: Debug in ConFuncTest (compiler: GNU GCC Compiler)---------------
mingw32-gcc.exe -Wall -Wwrite-strings -g -IC:\CProjects\Headers -IC:\CProjects\ConFuncTest\ -I"C:\Program Files\CodeBlocks\MinGW\bin" -c C:\CProjects\CIdx\CIdx\libCidx.C -o obj\Debug\CIdx\CIdx\libCidx.o
mingw32-gcc.exe -Wall -Wwrite-strings -g -IC:\CProjects\Headers -IC:\CProjects\ConFuncTest\ -I"C:\Program Files\CodeBlocks\MinGW\bin" -c C:\CProjects\ConFuncTest\confunc.c -o obj\Debug\ConFuncTest\confunc.o
mingw32-gcc.exe -Wall -Wwrite-strings -g -IC:\CProjects\Headers -IC:\CProjects\ConFuncTest\ -I"C:\Program Files\CodeBlocks\MinGW\bin" -c C:\CProjects\ConFuncTest\main.c -o obj\Debug\ConFuncTest\main.o
mingw32-g++.exe -o bin\Debug\ConFuncTest.exe obj\Debug\CIdx\CIdx\libCidx.o obj\Debug\ConFuncTest\confunc.o obj\Debug\ConFuncTest\main.o
obj\Debug\ConFuncTest\main.o: In function `main':
C:/CProjects/ConFuncTest/main.c:25: undefined reference to `idx_open'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 3 second(s))
2 error(s), 0 warning(s) (0 minute(s), 3 second(s))