Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: sevendogzero on December 11, 2020, 09:00:53 pm

Title: ODBC Windows - undefined reference
Post by: sevendogzero 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"
Title: Re: ODBC Windows - undefined reference
Post by: stahta01 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 (http://forums.codeblocks.org/index.php/topic,9996.0.html)

Tim S.
Title: Re: ODBC Windows - undefined reference
Post by: sevendogzero 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
Title: Re: ODBC Windows - undefined reference
Post by: stahta01 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.
Title: Re: ODBC Windows - undefined reference
Post by: stahta01 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 (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.