05-24-2009, 03:09 AM,
|
|
tof8pool
Junior Member
|
Posts: 22
Threads: 4
Joined: Apr 2008
|
|
Vdrift do not compile anymore ( rev 2465 )
I just destroyed my svn tree I checked out vdrift and vdrift-data again.
When trying to compile I get this error :
Code: cbo@cbobox:~/subversion/vdrift$ scons arch=a64 force_feedback=1
scons: Reading SConscript files ...
scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/cbo/subversion/vdrift/SConstruct", line 9, in <module>
scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File "/home/cbo/subversion/vdrift/SConstruct", line 13, in <module>
Checking for C++ header file boost/asio.hpp... (cached) yes
Checking for C++ header file GL/gl.h... (cached) yes
Checking for C++ header file GL/glu.h... (cached) yes
Checking for C++ header file SDL/SDL.h... (cached) yes
Checking for C++ header file SDL/SDL_image.h... (cached) yes
Checking for C++ header file SDL/SDL_rotozoom.h... (cached) yes
Checking for C++ header file vorbis/vorbisfile.h... (cached) yes
Checking for C++ header file GL/glew.h... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/car.o -c -Wall -Wextra -Wno-unused-parameter -pthread -g3 -march=athlon64 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Isrc/bullet -I/usr/include/SDL src/car.cpp
src/car.cpp: In member function âbool CAR::LoadInto(SCENENODE*, SCENENODE*&, DRAWABLE*&, const std::string&, MODEL_JOE03&, const std::string&, TEXTURE_GL&, const std::string&, TEXTURE_GL&, int, const std::string&, std::ostream&)â:
src/car.cpp:450: erreur: no matching function for call to âmax(unsigned int, long unsigned int)â
scons: *** [build/car.o] Error 1
scons: building terminated because of errors.
cbo@cbobox:~/subversion/vdrift$ svn up
à la révision 2465.
|
|
05-24-2009, 04:23 AM,
|
|
slowDan
Junior Member
|
Posts: 21
Threads: 1
Joined: Mar 2009
|
|
Re: Vdrift do not compile anymore ( rev 2465 )
tof8pool Wrote:When trying to compile I get this error : Try an update now. 2466 has that error fixed, the first unsigned int should have been a long unsigned int. It should compile properly now.
|
|
05-24-2009, 04:53 AM,
|
|
tof8pool
Junior Member
|
Posts: 22
Threads: 4
Joined: Apr 2008
|
|
That's ok now.
TY
|
|
05-24-2009, 09:54 AM,
|
|
nomoo
Member
|
Posts: 111
Threads: 15
Joined: Mar 2007
|
|
Now with 2466 under windows:
src\car.cpp:450: error: no matching function for call to `max(long unsigned int, unsigned int)'
|
|
05-25-2009, 02:53 AM,
|
|
tof8pool
Junior Member
|
Posts: 22
Threads: 4
Joined: Apr 2008
|
|
|
|
05-25-2009, 03:04 AM,
|
|
nomoo
Member
|
Posts: 111
Threads: 15
Joined: Mar 2007
|
|
i'm using mingw, not vcpp
|
|
05-25-2009, 03:49 AM,
|
|
slowDan
Junior Member
|
Posts: 21
Threads: 1
Joined: Mar 2009
|
|
In 2467 I've tried to redefine std::max() to _cpp_max() to see if that helps. I'm kind of flying blind here though, as I have no windows box to test anything out on! :?
The other suggestion I found (for Developer Studio on Windows) was to set a preprocessor symbol to NOMINMAX. Is there something similar for mingw?
|
|
05-25-2009, 05:06 AM,
|
|
skankerror
Member
|
Posts: 87
Threads: 14
Joined: Jan 2008
|
|
same problem for me :
Quote:g++ -o build/car.o -c -Wall -Wextra -Wno-unused-parameter -pthread -O1 -pipe -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Isrc/bullet -I/usr/include/SDL src/car.cpp
src/car.cpp: In member function âbool CAR::LoadInto(SCENENODE*, SCENENODE*&, DRAWABLE*&, const std:tring&, MODEL_JOE03&, const std:tring&, TEXTURE_GL&, const std:tring&, TEXTURE_GL&, int, const std:tring&, std::ostream&)â:
src/car.cpp:451: erreur: no matching function for call to âmax(long unsigned int, unsigned int)â
scons: *** [build/car.o] Error 1
scons: building terminated because of errors.
ubuntu 9.04 svn rev 2467.
|
|
05-26-2009, 04:17 AM,
|
|
tof8pool
Junior Member
|
Posts: 22
Threads: 4
Joined: Apr 2008
|
|
I just update my tree with rev 2467.
I'm also running Ubuntu 9.04 but my kernel is 64 bits na dI'm compiling a 64 bits release.
Perhaps is it 32/64 bits compatibility problem
|
|
05-27-2009, 10:23 PM,
|
|
joevenzon
Administrator
|
Posts: 2,679
Threads: 52
Joined: Jun 2005
|
|
The std::max function is a template function defined something like:
Code: template <typename T>
max(T value1, T value2);
The two arguments MUST have the same type, and C++ won't do type auto-casting even with similar numeric types. In R2468 I added an explicit cast and it seems to work fine, so I removed the #define thing (don't think it's needed anymore).
|
|
05-30-2009, 05:59 PM,
|
|
nomoo
Member
|
Posts: 111
Threads: 15
Joined: Mar 2007
|
|
Well. it's rev.2485.
"build\nedmalloc.o:nedmalloc.c .text+0x98): undefined reference to `_InterlockedExchange'"
something with boost library?
|
|
|