nel-all
[Top][All Lists]
Advanced

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

RE: [Nel] Errors compiling on Debian 3.0


From: Vianney Lecroart
Subject: RE: [Nel] Errors compiling on Debian 3.0
Date: Thu, 19 Jun 2003 10:37:25 +0200

Hello Kevin,

Thank you for the report, by the way, we compile nel misc and nel net
everyday on GNU/Linux and on Windows. We use debian with gcc 3.2.3 that
follow quite more the C++ ANSI standard. If you have a fix for gcc 2.95,
just give it to me and I'll try to add it.

Regards,

Vianney Lecroart
---
lead network programmer / nevrax.com
icq#: 6870415
homepage: http://ace.planet-d.net
www.geekcode.com: GCS/E d- s+++: a- C+++$UL++ P- L+++>+$ E+>- W++ N+ o?
K- w++$ O- M- V- PS- PE? Y PGP t 5? X+ R- tv++ b- DI D+ G e++ h-- r y?

> -----Original Message-----
> From: address@hidden [mailto:nel-all-
> address@hidden On Behalf Of Kevin Carter
> Sent: jeudi 19 juin 2003 06:34
> To: Developer's list for the NeL platform
> Subject: [Nel] Errors compiling on Debian 3.0
> 
> 
> Using gcc 2.95.4 on Debian 3.0 and a cvs update from approximately 4am
GMT
> - the following error occurs:
> 
> dev01:~/nevrax/code/nel/src/misc$ make file.o
> c++ -DHAVE_CONFIG_H -I. -I. -I../../include     -g -finline-functions
-
> DNL_DEBUG -DNL_DEBUG_FAST  -ftemplate-depth-24 -march=i686 -Wall -Wno-
> multichar -Wno-unused -D_REENTRANT -I/usr/X11R6/include -
> I/usr/include/stlport -I/usr/include/libxml2/libxml
-I/usr/include/libxml2
> -I../../include -DHAVE_NELCONFIG_H -c file.cpp
> file.cpp: In method
>
`NLMISC::CFairSynchronized<_STL::list<_STL::basic_string<char,_STL::char
_t
> raits<char>,_STL::allocator<char>
>
>,_STL::allocator<_STL::basic_string<char,_STL::char_traits<char>,_STL::
al
> locator<char> > > > >::CFairSynchronized(const
>
NLMISC::CFairSynchronized<_STL::list<_STL::basic_string<char,_STL::char_
tr
> aits<char>,_STL::allocator<char>
>
>,_STL::allocator<_STL::basic_string<char,_STL::char_traits<char>,_STL::
al
> locator<char> > > > > &)':
> file.cpp:46: conversion from `volatile NLMISC::CFairMutex' to `const
> NLMISC::CFairMutex &' discards qualifiers
> ../../include/nel/misc/mutex.h:511: in passing argument 1 of
> `NLMISC::CFairMutex::CFairMutex(const NLMISC::CFairMutex &)'
> file.cpp:46: conversion from `volatile
>
_STL::list<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocat
or
> <char>
>
>,_STL::allocator<_STL::basic_string<char,_STL::char_traits<char>,_STL::
al
> locator<char> > > >' to `const
>
_STL::list<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocat
or
> <char>
>
>,_STL::allocator<_STL::basic_string<char,_STL::char_traits<char>,_STL::
al
> locator<char> > > > &' discards qualifiers
> /usr/include/stlport/stl/_list.h:407: in passing argument 1 of
>
`_STL::list<_STL::basic_string<char,_STL::char_traits<char>,_STL::alloca
to
> r<char>
>
>,_STL::allocator<_STL::basic_string<char,_STL::char_traits<char>,_STL::
al
> locator<char> > > >::list(const
>
_STL::list<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocat
or
> <char>
>
>,_STL::allocator<_STL::basic_string<char,_STL::char_traits<char>,_STL::
al
> locator<char> > > > &)'
> make: *** [file.o] Error 1
> 
> It appears the volatile declarations at lines 670 and 673 of
> nel/include/nel/misc/mutex.h break the default copy constructors for
both
> NLMISC::CFairMutex and _STL::list, since I believe that g++ won't
create
> default copy constructors for volatile objects, they must be declared
> explicitly. Removing volatile allows compilation to continue, but as
these
> are associated with shm objects I don't think that's the correct fix.
> 
> If someone has a quick fix, I'd be glad to hear it - I'm afraid I'm a
> little rusty, and don't think I am familiar enough with Nel to create
> viable constructors.
> 
> -- Kevin
> 
> 
> 
> 
> _______________________________________________
> Nel mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/nel-all






reply via email to

[Prev in Thread] Current Thread [Next in Thread]