unsolved symbol "...closesocket" when compiling xerces in a static library with
visual c++ 2005
-----------------------------------------------------------------------------------------------
Key: XERCESC-1696
URL: https://issues.apache.org/jira/browse/XERCESC-1696
Project: Xerces-C++
Issue Type: Bug
Components: Utilities
Affects Versions: 2.7.0
Environment: Windows XP, Visual C++ 2005 Team Suite
Reporter: Arthur TOROSSIAN
When compiling xerces in a static library we have no error messages (option
Multi-threaded (/MT)).
But when linking the library "XercesLib.lib" with a main program we have the
error message :
"... unsolved symbol ..closesocket..." in
src\xercesc\util\NetAccessors\WinSock\BinHTTPURLInputStream.cpp
at line 54 : "void reset(SOCKET* p = 0) { if(fData) closesocket(*fData);
fData=p; }".
I think that I have solved this problem by changing this line by changing this
line :
54: "void reset(SOCKET* p = 0) { if(fData)
BinHTTPURLInputStream::closesocket(*fData); fData=p; }"
and moving closesocket method from private scope to public scope in the
BinHTTPURLInputStream class in the file
src\xercesc\util\NetAccessors\WinSock\BinHTTPURLInputStream.hpp.
I don't know if this is the good way but my program works very well.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]