[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Nel] ugh, C++ is so obtuse
From: |
Pierre Bonnefoy |
Subject: |
RE: [Nel] ugh, C++ is so obtuse |
Date: |
Thu, 15 Mar 2001 18:37:39 +0100 |
OK, thanks a lot for your explanations.
Downloaded this morning code on CVS, and library and client compile well
(although I have still problems with server side).
My problem now is to get a conf to be able to use the game, because I get
0.5 fps with mine (PIII 500 + 128 MB RAM + Matrox G200 + Linux).
-----Message d'origine-----
De : address@hidden [mailto:address@hidden la part de
Cyril Corvazier
Envoyé : mercredi 14 mars 2001 16:58
À : address@hidden
Objet : Re: [Nel] ugh, C++ is so obtuse
>
c++ -I/usr/local/include/freetype2 -I/home/pierre/STLport-4.0/stlport -g -O2
> -o client character_interface.o client.o language_interface.o
> login_interface.o move_listener.o pb_message_box.o player_view.o
> shards_list_interface.o sight.o
>
lens_flare.o -lnelnet -lnelmisc -lnel3d -L/usr/local/lib -lfreetype -L/home/
> pierre/STLport-4.0/lib -lstlport_gcc
> /usr/local/lib/libnel3d.so: undefined reference to
> `NL3D::CTrackKeyFramerLinear<NL3D::CKeyQuat, NLMISC::CQuat> type_info
node'
> /usr/local/lib/libnel3d.so: undefined reference to
> `NL3D::CTrackKeyFramerLinear<NL3D::CKeyQuat,
NLMISC::CQuat>::getValue(void)
> const'
I have fixed that bug. It should be on the cvs tonight (GMT+1).
*** For c++ addicts, here is the problem ***
The link failed under GCC when we use non-inline functions in a template
implementation.
No problem with Visual C++ 6.0.
It looked like this:
in the .h file:
-----------
// Two template classes
template<class T>
class a
{
virtual void toto()=0;
};
template<class T>
class b : public a<T>
{
virtual void toto()
{
...
};
};
// The second one is implemented, but toto function body is in the .cpp
file.
class b<int> : public a<int>
{
virtual void toto();
};
In the .cpp:
-----------
virtual void b<int>::toto()
{
...
};
The fixe was to let the toto body inline in the header.
Any comments ?
---
Cyril Corvazier
Lead 3d programmer
Nevrax France
_______________________________________________
Nel mailing list
address@hidden
http://www.nevrax.org/mailman/listinfo.cgi/nel
- [Nel] ugh, C++ is so obtuse, robert, 2001/03/12
- Re: [Nel] ugh, C++ is so obtuse, Michael Warnock, 2001/03/12
- Re: [Nel] ugh, C++ is so obtuse, Vianney Lecroart, 2001/03/13
- RE: [Nel] ugh, C++ is so obtuse, Pierre Bonnefoy, 2001/03/14
- Re: [Nel] ugh, C++ is so obtuse, Cedric Valignat, 2001/03/14
- Re: [Nel] ugh, C++ is so obtuse, Cyril Corvazier, 2001/03/14
- Re: [Nel] ugh, C++ is so obtuse, robert, 2001/03/14
- Re: [Nel] ugh, C++ is so obtuse, Cedric Valignat, 2001/03/29
- RE: [Nel] ugh, C++ is so obtuse,
Pierre Bonnefoy <=