hello thaksnow it works this might not be the right place to ask this but it is my first time with g++ and i need to get this homework done ! i built the whole source with cygwin and used the cygxerces-c27 library but it kept giving the same error as if i was using libxerces-c2_7.dll for vc6++ any help on this is appreciated, it breaks at the linking stage
$ gpp -L$LIB -lcygxerces-c27 -osplits Trs_Main.o Trs.o Descriptor.o Trs.o: In function `_ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPSsS1_EERKSs': /bin/../lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:(.text+0x126): undefined reference to `Trs::trs_desc' /bin/../lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:(.text+0x16d): undefined reference to `Trs::trs_desc' Trs.o: In function `_ZN8Trs9splitItemEPN11xercesc_2_711DOMDocumentEPNS0_10DOMElementE': /cygdrive/c/Documents and Settings/williamP/workspace/splits/asy/Trs.h:16: undefined reference to `Trs::trs_items' Trs.o: In function `_ZN8Trs9splitItemEPN11xercesc_2_711DOMDocumentEPNS0_10DOMElementE': /bin/../lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:255: undefined reference to `Trs::trs_items' Trs.o: In function `_ZN8TrsC1EPcS0_': /cygdrive/c/Documents and Settings/williamP/workspace/splits/asy/Trs.cpp:107: undefined reference to `vtable for Trs' Trs.o: In function `_ZN8TrsC2EPcS0_': /cygdrive/c/Documents and Settings/williamP/workspace/splits/asy/Trs.cpp:107: undefined reference to `vtable for Trs' Descriptor.o: In function `_ZN8Descriptor12startElementEPKtRN11xercesc_2_713AttributeListE': /bin/../lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:1459: undefined reference to `Descriptor::mandatoryElements' /bin/../lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:687: undefined reference to `Descriptor::null_char' Descriptor.o: In function `_ZN8Descriptor10endElementEPKt': /bin/../lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:687: undefined reference to `Descriptor::null_char' /bin/../lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:687: undefined reference to `Descriptor::null_char' Descriptor.o: In function `_ZN8Descriptor10endElementEPKtS1_S1_': /bin/../lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:687: undefined reference to `Descriptor::null_char' /bin/../lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:687: undefined reference to `Descriptor::null_char' Descriptor.o:/bin/../lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:687:more undefined references to `Descriptor::null_char' follow Descriptor.o: In function `_ZN8Descriptor12startElementEPKtS1_S1_RN11xercesc_2_710AttributesE': /bin/../lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:1459: undefined reference to `Descriptor::mandatoryElements' /bin/../lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:687: undefined reference to `Descriptor::null_char' Descriptor.o: In function `_ZN8Descriptor10charactersEPKtj': /bin/../lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_string.h:1459: undefined reference to `Descriptor::null_char' Info: resolving xercesc_2_7::XMLUni::fgXercescDefaultLocale by linking to __imp___ZN11xercesc_2_76XMLUni22fgXercescDefaultLocaleE (auto-import) Info: resolving xercesc_2_7::XMLPlatformUtils::fgMemoryManager by linking to __imp___ZN11xercesc_2_716XMLPlatformUtils15fgMemoryManagerE (auto-import) collect2: ld returned 1 exit status all the undefined reference functions are my own? i would really need help on this thanks and many regards ! On 2/20/07, Alberto Massari <[EMAIL PROTECTED]> wrote:
At 16.44 20/02/2007 +0200, William Parker wrote: >ok this now works but i am having a problem with gmake even though every >path i use is unix-like now. >i have seen it in a thread, so i have set: >export XERCESCROOT=c/xercesc, (my xerces root directory is c/xercesc) >but when i run make(gmake) i get the following You need to use the absolute path, like /cygdrive/c/xercesc Alberto > (C++) Base64.o >In file included from C/xercesc/include/xercesc/util/Base64.hpp:24, > from Base64.cpp:24: >C/xercesc/include/xercesc/util/XercesDefs.hpp:222:59: >xercesc/util/Platforms/Cygwin/CygwinDefs.hpp: No such file or directory >In file included from C/xercesc/include/xercesc/util/BaseRefVectorOf.hpp:21, > from C/xercesc/include/xercesc/util/XMLString.hpp:249, > from Base64.cpp:25: >C/xercesc/include/xercesc/util/PlatformUtils.hpp:217: error: `FileHandle' >has not been declared >C/xercesc/include/xercesc/util/PlatformUtils.hpp:218: error: ISO C++ forbids >declaration of `theFile' with no type >C/xercesc/include/xercesc/util/PlatformUtils.hpp:230: error: `FileHandle' >has not been declared >C/xercesc/include/xercesc/util/PlatformUtils.hpp:231: error: ISO C++ forbids >declaration of `theFile' with no type >C/xercesc/include/xercesc/util/PlatformUtils.hpp:243: error: `FileHandle' >has not been declared >C/xercesc/include/xercesc/util/PlatformUtils.hpp:244: error: ISO C++ forbids >declaration of `theFile' with no type >C/xercesc/include/xercesc/util/PlatformUtils.hpp:256: error: `FileHandle' >does not name a type >C/xercesc/include/xercesc/util/PlatformUtils.hpp:269: error: `FileHandle' >does not name a type >C/xercesc/include/xercesc/util/PlatformUtils.hpp:282: error: `FileHandle' >does not name a type >C/xercesc/include/xercesc/util/PlatformUtils.hpp:295: error: `FileHandle' >does not name a type >C/xercesc/include/xercesc/util/PlatformUtils.hpp:308: error: `FileHandle' >does not name a type >C/xercesc/include/xercesc/util/PlatformUtils.hpp:328: error: `FileHandle' >has not been declared >C/xercesc/include/xercesc/util/PlatformUtils.hpp:332: error: ISO C++ forbids >declaration of `theFile' with no type >C/xercesc/include/xercesc/util/PlatformUtils.hpp:350: error: `FileHandle' >has not been declared >C/xercesc/include/xercesc/util/PlatformUtils.hpp:354: error: ISO C++ forbids >declaration of `theFile' with no type >C/xercesc/include/xercesc/util/PlatformUtils.hpp:365: error: `FileHandle' >has not been declared >C/xercesc/include/xercesc/util/PlatformUtils.hpp:366: error: ISO C++ forbids >declaration of `theFile' with no type >In file included from Base64.cpp:27: >/usr/include/xercesc/internal/XMLReader.hpp: In member function `bool >xercesc_2_7::XMLReader::isXMLLetter(XMLCh)': >/usr/include/xercesc/internal/XMLReader.hpp:631: error: `gLetterCharMask' >undeclared (first use this function) >/usr/include/xercesc/internal/XMLReader.hpp:631: error: (Each undeclared >identifier is reported only once for each function it appears in.) >gmake[1]: *** [Base64.o] Error 1 >gmake: *** [Util] Error 2 > >i have downloaded the .tar.gz, but was this a 64-bit source? or is the error >related to something else ? >thanks > >On 2/19/07, Will Sappington <[EMAIL PROTECTED]> wrote: >> >> >> > -----Original Message----- >> > From: David Bertoni [mailto:[EMAIL PROTECTED] >> > Sent: Monday, February 19, 2007 3:23 PM >> > To: [email protected] >> > Subject: Re: building xerces with cygwin >> > >> > William Parker wrote: >> >> hi >> >> i have downloaded the xerces 2.7.0 source zip. >> >> i have tried to build with cygwin , but i could not run runconfig >> >> nor build the config file with autoconf. >> >> >> >> ./runconfig would generate building errors : >> >> unexpected at line 21 token 'usage' >> >> unexpected at line 44 token ' ' >> >> my cygwin version is the latest. >> >> appreciate the help >> > >> >You should try downloading the tar.gz version, since the issue may be >>with >> >the Windows CR/LF pairs in the .zip version. >> > >> >Dave >> >>Agreed, this is probably the issue. There are differences between the >>tar.gz and zip distributions. I tried building for VC++ from the tar.gz >>(after successfully building for Cygwin) and VC++ couldn't read the >>.dsw/dsp project files because they all had Unix newlines (LF only), not >>DOS CR/LF. >> >>-will
