Mail Archives: djgpp/2001/12/10/10:32:06
Raf256 wrote:
> First of all - sorry for so much questions at once, but I just installed
> gcc 3.0.2 and I'm quite dissapointed - still using external templates isn't
> easy, and btwe gcc 302 is slower and have some bugs imho.
Yes, is slower, but the most important impact is while compiling C++
applications that uses standard headers. The problem is the new way the ISO
standard defines the important classes.
If you find bugs report them.
> But ofcourse - I know that GCC and DJGPP are free and they are realy great
> work :)
>
> Can somebody please give link to FAQ (or maybe post litle example)
> how can I use external templates ? (under gnu 3.0.2 + rhide + djgpp)
> like I have template class in i.e. myarray.h + myarray.cpp and I want to
> use it from other files in my project like game.cpp appl.cpp test.cpp
> etc...
I have a example, but perhaps is too basic. The example is in the code of my
editor, you can browse the CVS tree instead of downloading the whole thing.
Look in the settvuti/include directory, sarray.h and sarray.cc implements a
template. The files ussarray.cc and uisarray.cc in settvuti directory are
instances of this template (unsigned short and unsigned int versions).
SET
--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set AT computer DOT org set AT ieee DOT org
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013
- Raw text -