I receive a lot of undefined references
./Debug/inventory.o:G:/PC/VC++/GCC/MRP/MRP/inventory.cpp:374: undefined
reference to `_imp___ZN11xercesc_3_16XMLUni22fgXercescDefaultLocaleE'
./Debug/inventory.o:G:/PC/VC++/GCC/MRP/MRP/inventory.cpp:374: undefined
reference to
`_imp___ZN11xercesc_3_116XMLPlatformUtils10InitializeEPKcS2_PNS_12PanicHandlerEPNS_13MemoryManagerE'
./Debug/inventory.o:G:/PC/VC++/GCC/MRP/MRP/inventory.cpp:376: undefined
reference to `_imp___ZN11xercesc_3_116XMLPlatformUtils15fgMemoryManagerE'
./Debug/inventory.o:G:/PC/VC++/GCC/MRP/MRP/inventory.cpp:376: undefined
reference to
`_imp___ZN11xercesc_3_116XMLReaderFactory15createXMLReaderEPNS_13MemoryManagerEPNS_14XMLGrammarPoolE'
./Debug/inventory.o:G:/PC/VC++/GCC/MRP/MRP/inventory.cpp:378: undefined
reference to `_imp___ZN11xercesc_3_16XMLUni20fgSAX2CoreNameSpacesE'
./Debug/inventory.o:G:/PC/VC++/GCC/MRP/MRP/inventory.cpp:379: undefined
reference to `_imp___ZN11xercesc_3_16XMLUni27fgSAX2CoreNameSpacePrefixesE'
./Debug/inventory.o:G:/PC/VC++/GCC/MRP/MRP/inventory.cpp:380: undefined
reference to
`_imp___ZN11xercesc_3_16XMLUni30fgXercesValidationErrorAsFatalE'
./Debug/inventory.o:G:/PC/VC++/GCC/MRP/MRP/inventory.cpp:382: undefined
reference to `_imp___ZN11xercesc_3_16XMLUni20fgSAX2CoreValidationE'
./Debug/inventory.o:G:/PC/VC++/GCC/MRP/MRP/inventory.cpp:383: undefined
reference to `_imp___ZN11xercesc_3_16XMLUni14fgXercesSchemaE'
./Debug/inventory.o:G:/PC/VC++/GCC/MRP/MRP/inventory.cpp:384: undefined
reference to `_imp___ZN11xercesc_3_16XMLUni26fgXercesSchemaFullCheckingE'
./Debug/inventory.o:G:/PC/VC++/GCC/MRP/MRP/inventory.cpp:390: undefined
reference to
`_imp___ZN11xercesc_3_16XMLUni31fgXercesUseCachedGrammarInParseE'
./Debug/inventory.o:G:/PC/VC++/GCC/MRP/MRP/inventory.cpp:401: undefined
reference to `_imp___ZN11xercesc_3_116XMLPlatformUtils9TerminateEv'
./Debug/inventory.o: In function `ContentHandler':
G:/Xerces-c-3.1.1/include/xercesc/sax2/ContentHandler.hpp:67: undefined
reference to `_imp___ZTVN11xercesc_3_114ContentHandlerE'
./Debug/inventory.o: In function `~ContentHandler':
G:/Xerces-c-3.1.1/include/xercesc/sax2/ContentHandler.hpp:72: undefined
reference to `_imp___ZTVN11xercesc_3_114ContentHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax2/ContentHandler.hpp:72: undefined
reference to `_imp___ZTVN11xercesc_3_114ContentHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax2/ContentHandler.hpp:72: undefined
reference to `_imp___ZTVN11xercesc_3_114ContentHandlerE'
./Debug/inventory.o: In function `LexicalHandler':
G:/Xerces-c-3.1.1/include/xercesc/sax2/LexicalHandler.hpp:53: undefined
reference to `_imp___ZTVN11xercesc_3_114LexicalHandlerE'
./Debug/inventory.o: In function `~LexicalHandler':
G:/Xerces-c-3.1.1/include/xercesc/sax2/LexicalHandler.hpp:58: undefined
reference to `_imp___ZTVN11xercesc_3_114LexicalHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax2/LexicalHandler.hpp:58: undefined
reference to `_imp___ZTVN11xercesc_3_114LexicalHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax2/LexicalHandler.hpp:58: undefined
reference to `_imp___ZTVN11xercesc_3_114LexicalHandlerE'
./Debug/inventory.o: In function `DeclHandler':
G:/Xerces-c-3.1.1/include/xercesc/sax2/DeclHandler.hpp:55: undefined
reference to `_imp___ZTVN11xercesc_3_111DeclHandlerE'
./Debug/inventory.o: In function `~DeclHandler':
G:/Xerces-c-3.1.1/include/xercesc/sax2/DeclHandler.hpp:60: undefined
reference to `_imp___ZTVN11xercesc_3_111DeclHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax2/DeclHandler.hpp:60: undefined
reference to `_imp___ZTVN11xercesc_3_111DeclHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax2/DeclHandler.hpp:60: undefined
reference to `_imp___ZTVN11xercesc_3_111DeclHandlerE'
./Debug/inventory.o: In function `DTDHandler':
G:/Xerces-c-3.1.1/include/xercesc/sax/DTDHandler.hpp:66: undefined reference
to `_imp___ZTVN11xercesc_3_110DTDHandlerE'
./Debug/inventory.o: In function `~DTDHandler':
G:/Xerces-c-3.1.1/include/xercesc/sax/DTDHandler.hpp:71: undefined reference
to `_imp___ZTVN11xercesc_3_110DTDHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax/DTDHandler.hpp:71: undefined reference
to `_imp___ZTVN11xercesc_3_110DTDHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax/DTDHandler.hpp:71: undefined reference
to `_imp___ZTVN11xercesc_3_110DTDHandlerE'
./Debug/inventory.o: In function `EntityResolver':
G:/Xerces-c-3.1.1/include/xercesc/sax/EntityResolver.hpp:94: undefined
reference to `_imp___ZTVN11xercesc_3_114EntityResolverE'
./Debug/inventory.o: In function `~EntityResolver':
G:/Xerces-c-3.1.1/include/xercesc/sax/EntityResolver.hpp:99: undefined
reference to `_imp___ZTVN11xercesc_3_114EntityResolverE'
G:/Xerces-c-3.1.1/include/xercesc/sax/EntityResolver.hpp:99: undefined
reference to `_imp___ZTVN11xercesc_3_114EntityResolverE'
G:/Xerces-c-3.1.1/include/xercesc/sax/EntityResolver.hpp:99: undefined
reference to `_imp___ZTVN11xercesc_3_114EntityResolverE'
./Debug/inventory.o: In function `ErrorHandler':
G:/Xerces-c-3.1.1/include/xercesc/sax/ErrorHandler.hpp:67: undefined
reference to `_imp___ZTVN11xercesc_3_112ErrorHandlerE'
./Debug/inventory.o: In function `~ErrorHandler':
G:/Xerces-c-3.1.1/include/xercesc/sax/ErrorHandler.hpp:72: undefined
reference to `_imp___ZTVN11xercesc_3_112ErrorHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax/ErrorHandler.hpp:72: undefined
reference to `_imp___ZTVN11xercesc_3_112ErrorHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax/ErrorHandler.hpp:72: undefined
reference to `_imp___ZTVN11xercesc_3_112ErrorHandlerE'
./Debug/inventory.o: In function `DefaultHandler':
G:/Xerces-c-3.1.1/include/xercesc/sax2/DefaultHandler.hpp:631: undefined
reference to `_imp___ZTVN11xercesc_3_114DefaultHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax2/DefaultHandler.hpp:631: undefined
reference to `_imp___ZTVN11xercesc_3_114DefaultHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax2/DefaultHandler.hpp:631: undefined
reference to `_imp___ZTVN11xercesc_3_114DefaultHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax2/DefaultHandler.hpp:631: undefined
reference to `_imp___ZTVN11xercesc_3_114DefaultHandlerE'
G:/Xerces-c-3.1.1/include/xercesc/sax2/DefaultHandler.hpp:631: undefined
reference to `_imp___ZTVN11xercesc_3_114DefaultHandlerE'
./Debug/inventory.o:G:/Xerces-c-3.1.1/include/xercesc/sax2/DefaultHandler.hpp:631:
more undefined references to `_imp___ZTVN11xercesc_3_114DefaultHandlerE'
follow
./Debug/inventory.o:G:/Xerces-c-3.1.1/include/xercesc/sax2/DefaultHandler.hpp:667:
undefined reference to `_imp___ZN11xercesc_3_117SAXParseExceptionC1ERKS0_'
./Debug/inventory.o:G:/Xerces-c-3.1.1/include/xercesc/sax2/DefaultHandler.hpp:667:
undefined reference to `_imp___ZN11xercesc_3_117SAXParseExceptionD1Ev'
./Debug/inventory.o:G:/XSD-3.3.0/libxsd/xsd/cxx/parser/xerces/elements.txx:537:
undefined reference to
`_imp___ZN11xercesc_3_116XMLPlatformUtils15fgMemoryManagerE'
./Debug/inventory.o:G:/XSD-3.3.0/libxsd/xsd/cxx/parser/xerces/elements.txx:537:
undefined reference to
`_imp___ZN11xercesc_3_117SAXParseExceptionC1EPKtS2_S2_jjPNS_13MemoryManagerE'
./Debug/inventory.o:G:/XSD-3.3.0/libxsd/xsd/cxx/parser/xerces/elements.txx:539:
undefined reference to `_imp___ZN11xercesc_3_117SAXParseExceptionD1Ev'
./Debug/inventory.o:G:/XSD-3.3.0/libxsd/xsd/cxx/parser/xerces/elements.txx:539:
undefined reference to `_imp___ZN11xercesc_3_117SAXParseExceptionD1Ev'
./Debug/inventory.o:G:/XSD-3.3.0/libxsd/xsd/cxx/parser/xerces/elements.txx:707:
undefined reference to `_imp___ZN11xercesc_3_113SchemaSymbols10fgXSI_TYPEE'
./Debug/inventory.o:G:/XSD-3.3.0/libxsd/xsd/cxx/parser/xerces/elements.txx:707:
undefined reference to `_imp___ZN11xercesc_3_113SchemaSymbols9fgURI_XSIE'
./Debug/inventory.o:G:/XSD-3.3.0/libxsd/xsd/cxx/xml/sax/bits/error-handler-proxy.txx:63:
undefined reference to
`_imp___ZNK11xercesc_3_117SAXParseException11getPublicIdEv'
./Debug/inventory.o:G:/XSD-3.3.0/libxsd/xsd/cxx/xml/sax/bits/error-handler-proxy.txx:66:
undefined reference to
`_imp___ZNK11xercesc_3_117SAXParseException11getSystemIdEv'
./Debug/inventory.o:G:/XSD-3.3.0/libxsd/xsd/cxx/xml/sax/bits/error-handler-proxy.txx:69:
undefined reference to
`_imp___ZNK11xercesc_3_117SAXParseException15getColumnNumberEv'
./Debug/inventory.o:G:/XSD-3.3.0/libxsd/xsd/cxx/xml/sax/bits/error-handler-proxy.txx:69:
undefined reference to
`_imp___ZNK11xercesc_3_117SAXParseException13getLineNumberEv'
along with these 2 warnings
G:/Xerces-c-3.1.1/include/xercesc/util/KVStringPair.hpp:176: warning: 'void
xercesc_3_1::KVStringPair::setKey(const XMLCh*, XMLSize_t)' redeclared
without dllimport attribute after being referenced with dll linkage
G:/Xerces-c-3.1.1/include/xercesc/util/KVStringPair.hpp:190: warning: 'void
xercesc_3_1::KVStringPair::setValue(const XMLCh*, XMLSize_t)' redeclared
without dllimport attribute after being referenced with dll linkage
compile command is
g++ -o ./Debug/MRP ./Debug/mrp_app.o ./Debug/mrp_frame.o ./Debug/catlist.o
./Debug/inventory.o ./Debug/InventoryXML.o ./Debug/resources.rc.o
"-LC:/wxWidgets/lib/gcc_dll" "-L." "-LC:/wxWidgets/lib/gcc_d"
"-LG:/Xerces-c-3.1.1/lib" -lxerces-c_3D -O2 -mthreads -LC:\wxWidgets\lib\gcc_dll
-lwxmsw28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32
-luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32
-lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -mwindows
Bidski
--------------------------------------------------
From: "David Bertoni" <[email protected]>
Sent: Monday, May 24, 2010 5:22 AM
To: <[email protected]>
Subject: Re: Building under Windows with MinGW
On 5/22/2010 3:56 PM, Bidski wrote:
Hello,
Can anyone provide me with instructions on how to build Xerces-C++ 3.1.1
under Windows 7 Ultimate 64bit with MinGW 4.4.1. Im not using MSYS or
CygWin, just Windows and MinGW. MinGW was installed as part of CodeLite.
I do not have access to any version of Visual Studio and the Visual
Studio compiled libraries appear to be causing my MinGW/G++ setup some
grief during compiling/linking.
What problems are you seeing?
Dave