Hi,
I'm busy attempting to port my current projects from ICS V5 to ICS V6.
However, I've run into a problem that I can't handle myself.
When I compile my project that contains a simple TCP server (code based on
the ICS5 TCP server sample), I run into following linker errors:
[ILINK32 Error] Error: Unresolved external '__fastcall
Overbyteicswsocket::TCustomWSocket::Send(void * const, int)'...
[ILINK32 Error] Error: Unresolved external '__fastcall
Overbyteicswsocket::TCustomWSocket::SendTo(const sockaddr_in&, int, void *
const, int)'...
I managed the locate the line of code that is triggering this error:
TcpServer->ClientClass=__classid(TTcpSrvClient);
Does anyone know how I can avoid this error ? Below a very small code
sample, stripped to its bare minimum and that still reproduces the above
mentioned problem.
Suggestions are very much appreciated.
Regards,
Kris
** HEADER FILE
#include <OverbyteIcsWSocket.hpp>
#include <OverbyteIcsWSocketS.hpp>
class TTcpSrvClient : public TWSocketClient
{
public:
__fastcall TTcpSrvClient(TComponent* Owner);
};
// -----
class TForm1 : public TForm
{
TWSocketServer *TcpServer;
};
** CPP file
void __fastcall TForm1::Button1Click(TObject *Sender)
{
TcpServer=new TWSocketServer(NULL);
// The line below triggers the linker errors
TcpServer->ClientClass=__classid(TTcpSrvClient); // Use separate client
instance for each connection
...
TcpServer->Listen();
}
// -----
__fastcall TTcpSrvClient::TTcpSrvClient(TComponent* Owner):
TWSocketClient(Owner)
{
}
// -----
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be