I've noted the other posts relating to the SQL_MYSQL reference programe. I have link errors under windows (mysql v5). The errors seem pretty basic for a "reference application".
There are two other points.
The {Setup} / {Automatic Setup} for MYSQL doesn't show the mysql path in te text box.
Also I see a duplicate linkage/reference for "__main()". This looks like another linking issue, against mingw this time.
The critical bits of the output are below.
I began this thread to record, (a) how to 'fix' these issues; and (b) To encourage the "reference" samples can be clean builds from user feedback.