freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] current FreeTDS with Visual Studio 2008 (VC9)
- From: Frediano Ziglio <freddy77 AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] current FreeTDS with Visual Studio 2008 (VC9)
- Date: Wed, 18 Aug 2010 10:25:30 +0200
2010/8/17 Frediano Ziglio <freddy77 AT gmail.com>:
> 2010/8/16 Neuhauser, Roman (GE Capital, consultant)
> <Roman.Neuhauser AT ge.com>:
>> hello,
>>
>> i'm trying to build freetds-0.83.dev.20100810 with VC9 Express
>> and Windows SDK 6.1. odbc.c does not compile with the errors
>> below (also attached). i'm an amateur in C and more so when it
>> comes to Visual Studio. can someone help me past the problem?
>>
>> thx, roman
>>
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(23)
>> : error C2375: 'SQLDriverConnect' : redefinition; different linkage
>> 3> c:\Program Files\Microsoft
>> SDKs\Windows\v6.1\\include\sqlext.h(1683) : see declaration of
>> 'SQLDriverConnect'
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(46)
>> : error C2375: 'SQLDriverConnectW' : redefinition; different linkage
>> 3> c:\program files\microsoft
>> sdks\windows\v6.1\include\sqlucode.h(296) : see declaration of
>> 'SQLDriverConnectW'
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(23)
>> : error C2375: 'SQLColumnPrivileges' : redefinition; different linkage
>> 3> c:\Program Files\Microsoft
>> SDKs\Windows\v6.1\\include\sqlext.h(1817) : see declaration of
>> 'SQLColumnPrivileges'
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(46)
>> : error C2375: 'SQLColumnPrivilegesW' : redefinition; different linkage
>> 3> c:\program files\microsoft
>> sdks\windows\v6.1\include\sqlucode.h(318) : see declaration of
>> 'SQLColumnPrivilegesW'
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(23)
>> : error C2375: 'SQLForeignKeys' : redefinition; different linkage
>> 3> c:\Program Files\Microsoft
>> SDKs\Windows\v6.1\\include\sqlext.h(1843) : see declaration of
>> 'SQLForeignKeys'
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(46)
>> : error C2375: 'SQLForeignKeysW' : redefinition; different linkage
>> 3> c:\program files\microsoft
>> sdks\windows\v6.1\include\sqlucode.h(343) : see declaration of
>> 'SQLForeignKeysW'
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(23)
>> : error C2375: 'SQLNativeSql' : redefinition; different linkage
>> 3> c:\Program Files\Microsoft
>> SDKs\Windows\v6.1\\include\sqlext.h(1861) : see declaration of
>> 'SQLNativeSql'
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(46)
>> : error C2375: 'SQLNativeSqlW' : redefinition; different linkage
>> 3> c:\program files\microsoft
>> sdks\windows\v6.1\include\sqlucode.h(360) : see declaration of
>> 'SQLNativeSqlW'
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(23)
>> : error C2375: 'SQLPrimaryKeys' : redefinition; different linkage
>> 3> c:\Program Files\Microsoft
>> SDKs\Windows\v6.1\\include\sqlext.h(1880) : see declaration of
>> 'SQLPrimaryKeys'
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(46)
>> : error C2375: 'SQLPrimaryKeysW' : redefinition; different linkage
>> 3> c:\program files\microsoft
>> sdks\windows\v6.1\include\sqlucode.h(370) : see declaration of
>> 'SQLPrimaryKeysW'
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(23)
>> : error C2375: 'SQLProcedureColumns' : redefinition; different linkage
>> 3> c:\Program Files\Microsoft
>> SDKs\Windows\v6.1\\include\sqlext.h(1889) : see declaration of
>> 'SQLProcedureColumns'
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(46)
>> : error C2375: 'SQLProcedureColumnsW' : redefinition; different linkage
>> 3> c:\program files\microsoft
>> sdks\windows\v6.1\include\sqlucode.h(381) : see declaration of
>> 'SQLProcedureColumnsW'
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(23)
>> : error C2375: 'SQLProcedures' : redefinition; different linkage
>> 3> c:\Program Files\Microsoft
>> SDKs\Windows\v6.1\\include\sqlext.h(1900) : see declaration of
>> 'SQLProcedures'
>> 3>c:\php-sdk\php533\vc9\x86\freetds-0.83.dev.20100810\src\odbc\sqlwparams.h(46)
>> : error C2375: 'SQLProceduresW' : redefinition; different linkage
>> 3> c:\program files\microsoft
>> sdks\windows\v6.1\include\sqlucode.h(394) : see declaration of
>> 'SQLProceduresW'
>>
>>
>
> Confirmed. msvc does not like two definition one with
> __declspec(dllexport) and another without...
>
Fixed.
freddy77
-
[freetds] current FreeTDS with Visual Studio 2008 (VC9),
Neuhauser, Roman (GE Capital, consultant), 08/16/2010
-
Re: [freetds] current FreeTDS with Visual Studio 2008 (VC9),
Frediano Ziglio, 08/17/2010
-
Re: [freetds] current FreeTDS with Visual Studio 2008 (VC9),
Frediano Ziglio, 08/18/2010
-
Re: [freetds] current FreeTDS with Visual Studio 2008 (VC9),
Neuhauser, Roman (GE Capital, consultant), 08/18/2010
- Re: [freetds] current FreeTDS with Visual Studio 2008 (VC9), Neuhauser, Roman (GE Capital, consultant), 08/19/2010
-
Re: [freetds] current FreeTDS with Visual Studio 2008 (VC9),
Neuhauser, Roman (GE Capital, consultant), 08/18/2010
-
Re: [freetds] current FreeTDS with Visual Studio 2008 (VC9),
Frediano Ziglio, 08/18/2010
-
Re: [freetds] current FreeTDS with Visual Studio 2008 (VC9),
Razvan Cosma, 08/19/2010
- Re: [freetds] current FreeTDS with Visual Studio 2008 (VC9), Neuhauser, Roman (GE Capital, consultant), 08/19/2010
-
Re: [freetds] current FreeTDS with Visual Studio 2008 (VC9),
Frediano Ziglio, 08/17/2010
Archive powered by MHonArc 2.6.24.