[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[OT] Trouble trying Tao - myriards of compile errors :-<

Josef 'Jupp' Schugt

4/30/2005 8:58:00 PM

Hi!

Now that Fu Limin (BTW: does that read Fu LIMIN or FU Limin?) has
detailed the field of application of Tao I think the language is quite
interesting and worth having a closer look at it. Unfortunately when
trying to compile the source using

$ g++ --version | head -1
g++ (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6)

(head only drops copyleft) I am confronted with a huge number of error
messages (didn't switch locale, 'Fehler' is german for 'error' but
that seems to be known even in Asia - see NGE, ??? ?????? :-)

$ make |head -20
g++ -c -Wall -pipe -O2 -pipe -DTAO_LINUX -I. -I. -Isource -Iinclude -o objs/taoDatatype.o source/taoDatatype.cpp
In file included from include/taoArith.h:30,
from include/taoNumeric.h:39,
from include/taoConst.h:29,
from source/taoDatatype.cpp:25:
include/taoEnumer.h: In function `void convertValues(std::vector<TaoBase*, std::allocator<TaoBase*> >&, TaoRealArray<_Tp>*)':
include/taoEnumer.h:164: Fehler: `TAO_Number' undeclared (first use this function)
include/taoEnumer.h:164: Fehler: (Each undeclared identifier is reported only once for each function it appears in.)
include/taoEnumer.h:166: Fehler: `TAO_String' undeclared (first use this function)
include/taoEnumer.h:168: Fehler: `TAO_RealArray' undeclared (first use this function)
include/taoEnumer.h:170: Fehler: invalid use of undefined type `struct TaoArrayBase'
include/taoEnumer.h:43: Fehler: forward declaration of `struct TaoArrayBase'
In file included from include/taoConst.h:29,
from source/taoDatatype.cpp:25:
include/taoNumeric.h: At global scope:
include/taoNumeric.h:310: Fehler: `TAO_ASSIGN' was not declared in this scope
include/taoNumeric.h: In member function `double TaoRealArray<_Tp>::getDouble(size_t)':
include/taoNumeric.h:312: Fehler: `numArray' undeclared (first use this function)
include/taoNumeric.h: In member function `void TaoRealArray<_Tp>::setDouble(size_t, double)':
include/taoNumeric.h:313: Fehler: `numArray' undeclared (first use this function)

That is only the beginning of an awful lot of messages. I am an old C
hand so C problems were something I could cope with but C++ is a desk
I do not serve.

Josef 'Jupp' Schugt


3 Answers

Fu Limin

5/2/2005 10:18:00 AM

0

Hi Josef,

It's suprising that it can't be compiled on the newer version of GCC.

Tao is successfully compiled in my computer with:
g++ (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

>From the error information you have shown, I guess it's due the
different way of handling cross-including macros by compilers. So maybe
your compiler ignored some header files.

I will carefully check the "include" macros to see if I can include
header files in a better way. I will also try the latest GCC.

By the way, my name is FU Limin,
FU is my family name, we usually put family name before name.

Limin

Josef 'Jupp' Schugt

5/2/2005 8:04:00 PM

0

At Mon, 2 May 2005 19:19:25 +0900, Fu Limin wrote:

> I will carefully check the "include" macros to see if I can include
> header files in a better way. I will also try the latest GCC.

I am not sure but I think that using autoconf & Co. may help. I am
currently trying to subscribe the TAO mailinglist but I did not
receive the automtically generated message I have to answer. I hope
this is the last OT message concerning TAO I am writing here :->

> By the way, my name is FU Limin, FU is my family name, we usually
> put family name before name.

Unfortunately there is no way of being sure. In Germany this not even
works for German names. In Germany we use two common ways of writing
names (depending on context): Ludwig Erhardt and Erhardt, Ludwig. The
latter *requires* a comma but people tend to forget it. Now Ludwig and
Erhardt are both valid first and valid last names. Unless one knows
that the last name of the former chancellor of the FRG was "Erhardt"
one cannot know which part of the name is which.

Josef 'Jupp' Schugt


Christian Neukirchen

5/3/2005 3:17:00 PM

0

Josef 'Jupp' SCHUGT <jupp@gmx.de> writes:

> At Mon, 2 May 2005 19:19:25 +0900, Fu Limin wrote:
>> By the way, my name is FU Limin, FU is my family name, we usually
>> put family name before name.
>
> Unfortunately there is no way of being sure. In Germany this not even
> works for German names. In Germany we use two common ways of writing
> names (depending on context): Ludwig Erhardt and Erhardt, Ludwig. The
> latter *requires* a comma but people tend to forget it. Now Ludwig and
> Erhardt are both valid first and valid last names. Unless one knows
> that the last name of the former chancellor of the FRG was "Erhardt"
> one cannot know which part of the name is which.

He should have been named Erhardt Erhardt or Ludwig Ludwig. Far
easier. :-)

> Josef 'Jupp' Schugt
>

--
Christian Neukirchen <chneukirchen@gmail.com> http://chneuk...