Re: (dsssl) OpenJade 1.3 compile error

Subject: Re: (dsssl) OpenJade 1.3 compile error
From: Carlos Villegas <cav@xxxxxxxxxxxxxx>
Date: Mon, 24 Sep 2001 12:00:03 +0900
Hi,

Try removing the duplicate definition from parser_inst.cxx. The *_inst.cxx are explicity template instantiations. Depending on your compiler and platform some jade types map to the same C++ primitive type and the script that generate the instantiation files is not very smart. So sometimes you get two definitions like Vector<Char> and Vector<unsigned short>, where Char is defined as unsigned short and hence the error. It may be possible to fix the build process, but last time I just manually removed all duplicate instantiations.

Carlos

Christopher R. Maden wrote:

I think this bug has been around for a while (1.1 or so), but I can't remember how I got around it last time (if I'm even remembering the bug's existence correctly).

When building lib, I get an error in parser_inst.cxx:

c++ -fno-implicit-templates -O2 -ansi -I. -I./../include -I./../generic -DSP_HA
VE_BOOL -DSP_ANSI_CLASS_INST -DSP_MULTI_BYTE -DSP_HAVE_LOCALE -DSP_HAVE_GETTEXT
-DSP_HAVE_SOCKET -DJADE_MIF -DJADE_HTML -c parser_inst.cxx
parser_inst.cxx:1349: duplicate explicit instantiation of `class Vector<unsigned
int>'
*** Error code 1
make: Fatal error: Command failed for target `parser_inst.o'
Current working directory /home/crism/src/openjade-1.3/lib


There's a considerable pause between the duplicate instantiation warning and the error, so I'm not sure that they're related.

gandalf:crism:/home/crism/src/openjade-1.3> uname -a
SunOS gandalf 5.7 Generic_106541-04 sun4u sparc SUNW,Ultra-250
gandalf:crism:/home/crism/src/openjade-1.3> gcc --version
2.95.3

Any thoughts?

Thanks in advance,
Chris




DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist

Current Thread