|
|
|
|||||
|
Hi,
I have downloaded ICE 1.1.1. When I try to compile it I get the next messages: In file included from Unicode.cpp:15: ../../include/IceUtil/Unicode.h:23: parse error before `&' ../../include/IceUtil/Unicode.h:24: syntax error before `(' Unicode.cpp:28: parse error before `&' and many more. I run the following version of the compiler (-v option): c++ -c -I../../include -DICE_UTIL_API_EXPORTS -v -g -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT Unicode.cpp Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-118.7.2) Can anybody tell me what I do wrong? Thanks in advance. Albert Last edited by ahartveld : 10-03-2003 at 09:12 AM. |
|
|||||
|
Xerces
Hi,
While building, now with gcc 3.2.3 and after downloading and installing Xerces 2.3 the build still does not work. I get the following errors: c++ -g -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT -L../../lib -o ../../bin/xsdvalidate Validate.o -lIceUtil -lpthread -L/usr/local/src/xerces/xerces-c-src_2_3_0/lib -lxerces-c /usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14. /usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14. /usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14. Validate.o: In function `toString(unsigned short const*)': :35: undefined reference to `xercesc_2_3::XMLString::transcode(unsigned short const*)' Validate.o: In function `main': :106: undefined reference to `xercesc_2_3::XMLUni::fgXercescDefaultLocale' followed by many others. a. o. undefined labels from xerces: /usr/local/src/xerces/xerces-c-src_2_3_0/lib/libxerces-c.so: undefined reference to `ostream::flush(void)' /usr/local/src/xerces/xerces-c-src_2_3_0/lib/libxerces-c.so: undefined reference to `ostream::write(char const *, int)' /usr/local/src/xerces/xerces-c-src_2_3_0/lib/libxerces-c.so: undefined reference to `cout' The makefile is in the directory slice2xsd and building xdsvalidate. Still something missing, or is there another problem? Thanks in advance. Albert Last edited by ahartveld : 10-03-2003 at 08:32 AM. |
|
||||||
|
Hi Albert,
Xerces-C is really a C++ library, so you need to build it with a C++ compiler compatible with your GCC version. GCC 2.9x and 3.x are not compatible. Cheers, Bernard |
|
|||||
|
Hello Bernard,
We have already upgraded our compiler to versie 3.2.3. With this version we have compiled Xerces-C. What else can be wrong? Albert |
|
||||||
|
Hi Albert,
We don't have access to a RedHat Entreprise Linux 2.1 system, so I tried with RedHat 7.3. I built GCC 3.2.3 and installed it in my home directory, and then added the corresponding bin directory to my PATH and the corresponding lib directory to my LD_LIBRARY_PATH. Next I built Xerces-C 2.3.0 with this compiler, and installed it also in my home directory. I defined XERCESC_HOME to point to this installation (see config/Make.rules in the Ice source distribution), and added $XERCESC_HOME/lib to my LD_LIBRARY_PATH. And finally I built Ice 1.1.1 without any problems (the tests passed as well). Maybe you could double-check that your libxerces-c.so is built as you expect, for example with: Code:
ldd $XERCESC_HOME/lib/libxerces-c.so Best regards, Bernard |
|
|||||
|
Hi Bernard,
Our building problems are solved now. It turned out the we had not compiler the xercesc library properly. Now everything builds and runs too. Thanks for you help. Albert |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| getifaddrs() does not supported by glibc, IceE fails to make app in /IceE/test | syseeker | Help Center | 2 | 07-02-2006 09:27 PM |
| Compile error on Redhat Enterprise Linux 3.0 update 2 | minifat | Bug Reports | 2 | 06-03-2005 07:50 PM |
| Redhat Enterprise Linux (RHEL) support? | kent144 | Help Center | 3 | 08-07-2004 08:19 PM |
| STL assertion failure make test fails | sylvain | Bug Reports | 2 | 03-02-2003 07:24 AM |
| make test fails with Python 2.0 | jmu | Bug Reports | 0 | 02-23-2003 02:25 PM |