MySQL Forums
Forum List  »  Source, Builds, Binaries

Re: mingw port of mysql connector c and c++
Posted by: Martin Trautmann
Date: July 15, 2011 03:59AM

Does the compiler also report the other declaration of int8_t?
You can send the full compiler output to windiana@users.sf.net.
Try "make 2>&1 > compile_output.txt" to write the output to file.

The most probably cause is the declaration of int8_t in cppconn/config.h. However, the modified cppconn/config.h.cm generates the following condition there:
#if defined(_WIN32) && !defined(__MINGW32__)

Typically using mingw gcc defines __MINGW32__ and thus the duplicate declaration of int8_t should be avoided. You can check the compiler defines by calling gcc with an arbitrary C++ file and "-dM -E":
gcc -dM -E cppconn/config.h | grep MINGW

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: mingw port of mysql connector c and c++
4525
July 15, 2011 03:59AM
3210
September 18, 2011 07:04AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.