I've been programming for 35 years.
I get it. CodeBlocks is just the IDE. You're a company man.
Your IDE is packaged with MingGW. Pretty sure someone has inquired about this besides me, but
that's fine. I'll move on.
A nonsense reply at best. Ba Humbug
And, you have not learned how to ask a smart question in 35 years?
You did not even give the Compiler version information; so, no one could help you.
You did not give the error message; so no one could help you.
The old and new compiler version including 64 bit vs 32 bit and mingw.org vs mingw64 would be needed.
The exact compiler message in the build log to see what libraries you linked would be needed.
AND: The is a website that does NOT support ODBC under mingw so, if you post the above and wait a few months or years you might get an answer.
Tim S.