You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Alberto Massari (JIRA)" <xe...@xml.apache.org> on 2007/05/01 13:01:15 UTC

[jira] Resolved: (XERCESC-1696) unsolved symbol "...closesocket" when compiling xerces in a static library with visual c++ 2005

     [ https://issues.apache.org/jira/browse/XERCESC-1696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alberto Massari resolved XERCESC-1696.
--------------------------------------

    Resolution: Duplicate

Duplicate of XERCESC-1467 (the fix is basically what you already did, see http://svn.apache.org/viewvc?view=rev&revision=292170)

> 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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org