Author Topic: ODBC Windows - undefined reference  (Read 1241 times)

Offline sevendogzero

  • Multiple posting newcomer
  • *
  • Posts: 14
ODBC Windows - undefined reference
« on: December 11, 2020, 09:00:53 pm »
Just moved my CodeBlocks 16.01 on Windows 7 Pro 64 to Windows 10 Pro 64

Transferred my ODBC project to windows 10, getting an undefined reference to SQLDisconnect

Looks like the ming sql.h file has some new defines for odbc versioning. Would anyone feel like
giving me a hint on that setting, or should I just set it in my application #defines
Cheers
"It's always something"

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7132
    • My Best Post
Re: ODBC Windows - undefined reference
« Reply #1 on: December 11, 2020, 10:48:35 pm »
Step 1 Learn the name and version of the Compiler/Toolchain you are using.
Step 2 Find a website that supports your compiler.
Step 3 Use that website for your compiler questions.

Please read and follow the rules http://forums.codeblocks.org/index.php/topic,9996.0.html

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline sevendogzero

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: ODBC Windows - undefined reference
« Reply #2 on: December 12, 2020, 02:24:03 am »
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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7132
    • My Best Post
Re: ODBC Windows - undefined reference
« Reply #3 on: December 12, 2020, 04:48:31 am »
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.
« Last Edit: December 12, 2020, 04:55:11 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7132
    • My Best Post
Re: ODBC Windows - undefined reference
« Reply #4 on: December 12, 2020, 07:29:02 am »
Since, your first post did NOT even make it clear if it is a compiler or linker error!

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

If compile time error, you might try including "fakesql.h"; but, I am not using the Compiler that you are so it might not help you.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org