Error on compile with CodeGear C++ Builder

Bug #305471 reported by ASURADA on 2008-12-05
2
Affects Status Importance Assigned to Milestone
MySQL Connector/C++
New
Undecided
Unassigned

Bug Description

I want to use MySQL Connector/C++ with CodeGear C++ Builder 2006 ( Turbo C++ Explorer ).
So, I try to make library like follow steps.
1. cmake -G "Borland Makefiles"
2. make

But I met some error like follows.
________________________________________________________________________
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 your project with Turbo C++ Explorer 2006.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions