So I have found this solution. "Linking" might be very obvious to programmers familiar with c and c++. But to someone from Java or C#, etc this is not a common thing. And I mentioned that I was aware of linking and make files and so on from prev experience. The solution was not obvious and trivial. I ended up having to open build settings in my CodeBlocks project and add 3 odbc*.lib files. I found them in "Program Files (x86)\Windows Kits\10\Lib\10.0.xxx\um\x64\". CodeBlocks then take care of adding them to the build command. —
Quintonn 13 secs ago