Compile time errors using TidSMTP component

Giganews Newsgroups
Subject: Compile time errors using TidSMTP component
Posted by:  John Alexander (alexho…@austin.rr.com)
Date: Mon, 10 Mar 2008

Greetings,

I recently migrated  a project to Borland C++ Buider 2007 from BCB 5 Pro.
This necessitated removing the old TNMSMTP component and replacing it with
the TidSMTP component.

I removed the old component and all references to it.

I recompiled and linked the project and everything was fine.

I then added a TidSMTP component and attempted to recompile.

I got several errors in ws2tcpip.h on
this declaration

WS2TCPIP_INLINE
int
setipv4sourcefilter(
    IN SOCKET Socket,
    IN IN_ADDR Interface,
    IN IN_ADDR Group,
    IN MULTICAST_MODE_TYPE FilterMode,
    IN ULONG SourceCount,
    IN CONST IN_ADDR *SourceList
    )
{  ...etc
}

[BCC32 Error] ws2tcpip.h(753): E2092 Storage class 'inline' is not allowed here
[BCC32 Error] ws2tcpip.h(754): E2108 Improper use of typedef 'SOCKET'

I can't seem to figure out the why of this. Is there an include file missing?
Is this a conflict with another declaration elsewhere?

Any leads on this would be appreciated.

Thanks,

John Alexander

Replies