Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

'symbol redefinition error' after upgrade to VS2008

4 views
Skip to first unread message

Jung

unread,
Dec 2, 2008, 2:39:01 PM12/2/08
to
Hello,

we have VS2005 / .NET 2.0 c++/c# solution and tried to build it using
VS2008 / .NET 2.0.

It gave us this error
error C2378: 'sqlcaptr' : redefinition; symbol cannot be overloaded with a
typedef c:\program files\microsoft sdks\windows\v6.0a\include\sqlext.h 30 admn

we are using sybase sql library , and it's conflicting with new MS sdk.

<~\driver\Sybase SQL Anywhere 8\h\sqlca.h>
...
#define SQLSTATE SQLCAPTR->sqlstate
...

<~\Program Files\Microsoft SDKs\Windows\v6.0A\Include\sqext.h>
...
typedef SQLTCHAR SQLSTATE[SQL_SQLSTATE_SIZE+1];
...

The line in MS sdk is new in VS2008 and is causing type redef error in our
build.

Could you provide us with possible solutions to this problem?


Thank you very much.

0 new messages