[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster-devel] C++ compiling with ant/build: build.sh cpp-lib



Hello Marcel,

On Sat, Mar 30, 2002 at 09:22:53PM +0100, Marcel Ruff wrote:
> >When I run "./build.sh cpp-lib" (on debian) I get this message:
> >---
> >cpp-lib:
> >BUILD FAILED
> >/tmp/xmlBlaster/build.xml:618: java.lang.reflect.InvocationTargetException
> >---
> 
> Try to use the verbose flag to see what happens:

Cool feature: ant told me, that it was looking for idl at the wrong place...

Ok, now the next problem arises ;-)

---
cpp-lib:
     [echo] Adjust following settings in build.properties if necessary:
     [echo]  XMLCPP_HOME   = /opt/local/xerces
     [echo]  XMLCPP_VER    = 1_7_0
     [echo]  CORBACPP_HOME = /opt/local/mico
     [echo]  CORBACPP_VER  = 2.3.7
     [echo] Generating IDL stubs and skeletons
     [exec] Current OS is Linux
     [exec] /opt/local/mico/bin/idl --poa --c++-suffix cpp ../../.././src/java/org/xmlBlaster/protocol/corba/xmlBlaster.idl
     [exec] Setting environment variable: LD_LIBRARY_PATH=/opt/local/mico/lib
     [exec] Setting environment variable: SHLIB_PATH=/opt/local/mico/lib
     [exec] Setting environment variable: LIBPATH=/opt/local/mico/lib
       [cc] Compiling "xmlBlaster.cpp" because "xmlBlaster.o" does not exist.
       [cc] gcc -c -o /tmp/xmlBlaster/build/obj/xmlBlaster.o /tmp/xmlBlaster/src/c++/generated/xmlBlaster.cpp -Wimplicit-int -Werror-implicit-function-declarat ICO=1 -I/tmp/xmlBlaster/src/c++ -I/opt/local/mico/include -I/opt/local/mico/include/windows -I/opt/local/xerces/src -I/opt/local/xerces/include
       [cc] In file included from /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/cstring:7,
       [cc]                  from /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/straits.h:106,
       [cc]                  from /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.h:36,
       [cc]                  from /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/string:6,
       [cc]                  from /usr/local/include/CORBA.h:124,
       [cc]                  from /tmp/xmlBlaster/src/c++/generated/xmlBlaster.h:8,
       [cc]                  from /tmp/xmlBlaster/src/c++/generated/xmlBlaster.cpp:8:
       [cc] /opt/local/mico/include/string.h:49: syntax error before `operator'
       [cc] /opt/local/mico/include/string.h:71: `ULong' was not declared in this scope
       [cc] /opt/local/mico/include/string.h:71: parse error before `)'
       [cc] /opt/local/mico/include/string.h:72: `CORBA::String_var::operator [](...)' must take exactly one argument
       [cc] /opt/local/mico/include/string.h:72: confused by earlier errors, bailing out
---

It seems that my compiler does not like, that "Boolean" has not been declared
before... I've found a suitable typedef in mico/basic.h but do not know why
these basic typedefs are not included somewhere.

Is this a problem with mico 2.3.7 (btw, is mico 2.3.7 supported?)?

I could include them by editing some headers by hand, but is this the right
way?

Anyway - thank you for helping!

-- 
Greetings,
Tobias

________________________________________________________________________________
PGP/GnuPG Key ID 0xAE034AAD (preferred)