Главная страница | назад





Article #20125: linker error- unresolved external TAbstractSocket::SetPortA

Question:
In an application using TClientSocket I am getting the unexpected linker
error "Unresolved External TAbstractSocket::SetPortA". I don't even see
SetPortA as part of TClientSocket.
Answer:
It isn't. SetPort gets redefined as SetPortA inb winspool.h, thus causing a naming conflict if winspool.h is preprocessed before vcl.h. To workaround this problem you can change the order of headers so that the vcl is included first.
Another workaround would be to build without winspool.h if it is not used and is being included by windows.h by default.

Last Modified: 23-NOV-99