MySQL Forums
Forum List  »  Connector/C++

How to compile MySQL Connector/C++ on Codegear C++ Builder
Posted by: Myeongho AN
Date: December 04, 2008 09:58PM

I want to use MySQL Connector/C++ with C++ BUilder

So I was try to compile with CodeGear Compiler like follow.

But i meet some error on make step.

F:\Dev\MySQL\MySQL_Conn\v1_0_1_bcc>cmake -G "Borland Makefiles"
-- ENV{MYSQL_DIR} = F:\Dev\MySQL\mysql-5.1.30-win32
-- MySQL Include dir: F:/Dev/MySQL/mysql-5.1.30-win32/include
-- MySQL Library : F:/Dev/MySQL/mysql-5.1.30-win32/lib/debug/mysqlclient.lib
-- MySQL Library dir: F:/Dev/MySQL/mysql-5.1.30-win32/lib/debug
-- MySQL CFLAGS:
-- MySQL Link flags:
-- MySQL Include dir: F:/Dev/MySQL/mysql-5.1.30-win32/include
-- MySQL Library dir: F:/Dev/MySQL/mysql-5.1.30-win32/lib/debug
-- MySQL CFLAGS:
-- MySQL Link flags:
-- Installation path is: C:/Program Files/MySQL/ConnectorCPP (overwrite with -
DCMAKE_INSTALL_PREFIX=/your/path)
-- Configuring cppconn
-- Configuring examples
-- Configuring test cases
-- No MiniCppUnit
-- Configuring done
-- Generating done
-- Build files have been written to: F:/Dev/MySQL/MySQL_Conn/v1_0_1_bcc

F:\Dev\MySQL\MySQL_Conn\v1_0_1_bcc>make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
[ 2%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_constructed_
resultset.obj
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
F:\Dev\MySQL\MySQL_Conn\v1_0_1_bcc\driver\mysql_constructed_resultset.cpp:
Error E2167 C:\Program Files\Borland\BDS\4.0\Include\math.h 390: 'std::abs(long)
' was previously declared with the language 'C++'
Error E2141 F:\Dev\MySQL\mysql-5.1.30-win32\include\my_dbug.h 48: Declaration sy
ntax error
*** 2 errors in Compile ***

** error 1 ** deleting driver\CMakeFiles\mysqlcppconn.dir\mysql_constructed_resu
ltset.obj

** error 1 ** deleting driver\CMakeFiles\mysqlcppconn.dir\all

** error 1 ** deleting all

F:\Dev\MySQL\MySQL_Conn\v1_0_1_bcc>


What I have to do for using Connector/C++ on CodeGear C++ Builder?

Please, help me.

Options: ReplyQuote


Subject
Views
Written By
Posted
How to compile MySQL Connector/C++ on Codegear C++ Builder
7699
December 04, 2008 09:58PM


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.