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 bu...@apache.org on 2004/01/17 03:57:09 UTC

DO NOT REPLY [Bug 26210] New: - info auto-import on linking

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26210>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26210

info auto-import on linking

           Summary: info auto-import on linking
           Product: Xerces-C++
           Version: 2.4.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Build
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: mrmodolo@terra.com.br


Hi,
I build (gcc version 3.3.1 (cygming special)) the xerces lib (xerces-c-src2_4_0)
with cygwin (DLL version: 1.5.5) in my w2k (Windows 2000 Professional Ver 5.0
Build 2195 Service Pack 4) and finish with 6 files in libs dir
(cygxerces-c24.dll, libxerces-c24.def, libxerces-c24.map libxerces-c.dll.a,
libxerces-c24.dll.a, libxerces-c2_4_0.dll.a). When I go to samples dir and try
to build the samples, no errors occur but I receive a lot of "infos" from linker...

Info: resolving xercesc_2_4::XMLUni::fgXercescDefaultLocale       by linking to
        __imp___ZN11xercesc_2_46XMLUni22fgXercescDefaultLocaleE (auto-import)
Info: resolving xercesc_2_4::XMLUni::fgWFXMLScanner       by linking to __imp___
Info: resolving xercesc_2_4::XMLUni::fgWFXMLScanner       by linking to
__imp___ZN11xercesc_2_46XMLUni14fgWFXMLScannerE (auto-import)
Info: resolving xercesc_2_4::XMLPlatformUtils::fgTransService        by linking
to __imp___ZN11xercesc_2_416XMLPlatformUtils14fgTransServiceE (auto-import)
Info: resolving xercesc_2_4::XMLUni::fgXercesScannerName       by linking to
__imp___ZN11xercesc_2_46XMLUni19fgXercesScannerNameE (auto-import)
Info: resolving xercesc_2_4::XMLUni::fgSAX2CoreValidation       by linking to
__imp___ZN11xercesc_2_46XMLUni20fgSAX2CoreValidationE (auto-import)
Info: resolving xercesc_2_4::XMLUni::fgSAX2CoreNameSpaces       by linking to
__imp___ZN11xercesc_2_46XMLUni20fgSAX2CoreNameSpacesE (auto-import)
Info: resolving xercesc_2_4::XMLUni::fgXercesLoadExternalDTD       by linking to
__imp___ZN11xercesc_2_46XMLUni23fgXercesLoadExternalDTDE (auto-import)
Info: resolving xercesc_2_4::XMLUni::fgXercesSchema       by linking to
__imp___ZN11xercesc_2_46XMLUni14fgXercesSchemaE (auto-import)
Info: resolving xercesc_2_4::DOMNodeImpl::OWNED       by linking to
__imp___ZN11xercesc_2_411DOMNodeImpl5OWNEDE (auto-import)

I found that this "info" are for static attribs. In documentation of ld exists a
topic about auto-import that says using __declspec(dllimport) in header files
when linking eliminate this problem. 
After look in xerces/src/util/compilers/GCCDefs.hpp I found to empty "defines":
    #define PLATFORM_EXPORT
    #define PLATFORM_IMPORT
I try set than to:
    #define PLATFORM_EXPORT     __declspec(dllexport)
    #define PLATFORM_IMPORT     __declspec(dllimport)
and rebuild the library. The result libs decrese in size but when I try to build
some sample I receive a lot of errors about undefined class references.
I found a lot of classes that do not have "*_EXPORT" in headers, classes like
XMLRegisterCleanup in XMLRegisterCleanup.hpp, XMLDOMMsg in XMLDPMMsg.hpp...
I do not know if this is a error, I am only reporting to help.

thanks and please forgive my bad english.

Marcelo Módolo

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org