5 messages in com.mysql.lists.plusplusRe:Re: compiler changes functions nam...
FromSent OnAttachments
riz...@email.cz18 Aug 2003 08:36 
Joseph Brady18 Aug 2003 19:56 
riz...@email.cz19 Aug 2003 03:56 
Jason Corcoran19 Aug 2003 04:21 
Sinisa Milivojevic19 Aug 2003 06:57 
Subject:Re:Re: compiler changes functions name with '_' ; Borland C++ Builder
From:Jason Corcoran (jaso@ccitriad.co.uk)
Date:08/19/2003 04:21:25 AM
List:com.mysql.lists.plusplus

On Tue 19 Aug 2003 11:57, riz@email.cz wrote:

I am not sure if all compilers add the _ prefix - when i compile mysqlpp examples, there are no prefixes in object files.

I also link project with library(libmySQL.lib and mysqlplus.lib). Functions/classes defined in mysqlplus.lib seems to be linked correctly.

I tried to download a new borland line compiler(v5.5) but still the same problem. I realy do not know what do i wrong.

Is it possible that there is some incompatability with VCL?

The format of libmysql.lib is incorrect, You need to run the following command on the libmysql.lib

coff2omf.exe libmysql.lib <someoutputfile.lib>

and link against someoutputfile.lib

Also you need to include the following header before the sqlplus.hh

winsock.h windows.h iostream iomanip

Works for me in anyways.

Jason.

____________________ Senior Software Engineer. CCITriad Europe. Longford Ireland.