[r215] Can't compile in Linux +FIX

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Agent ME
Posts: 229
Joined: Mon Jan 02, 2006 12:39
Contact:

[r215] Can't compile in Linux +FIX

Post by Agent ME »

Compiling fails with this output:
[spoiler]
[ 84%] Building CXX object src/CMakeFiles/zdoom.dir/gl/gl_walls.o
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp: In member function ‘void GLWall::DoMidTexture(seg_t*, bool, sector_t*, sector_t*, fixed_t, fixed_t, fixed_t, fixed_t, fixed_t, fixed_t, fixed_t, fixed_t)’:
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp:748: error: ‘min’ was not declared in this scope
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp:787: error: ‘min’ was not declared in this scope
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp:800: error: ‘min’ was not declared in this scope
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp:941: error: ‘min’ was not declared in this scope
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp: In member function ‘void GLWall::ClipFFloors(seg_t*, F3DFloor*, sector_t*, fixed_t, fixed_t, fixed_t, fixed_t)’:
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp:1175: warning: suggest parentheses around arithmetic in operand of |
make[2]: *** [src/CMakeFiles/zdoom.dir/gl/gl_walls.o] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2
[/spoiler]

Also, to compile, I had to comment out two lines in src/CMakeLists.txt pointing to the gl/glsl_* files.
Last edited by Agent ME on Tue Nov 04, 2008 2:01, edited 1 time in total.
User avatar
Agent ME
Posts: 229
Joined: Mon Jan 02, 2006 12:39
Contact:

Post by Agent ME »

Fixed - the min function wasn't defined in src/gl/gl_pch.h. Also organized a few things better in that file, and the CMakeLists.txt fix is included in the diff attached. (Would just post it, but forum software does torture to tabs and spacing.)
Attachments
gz215.diff.gz
Patch for r215 to fix compiling on gcc.
(608 Bytes) Downloaded 59 times
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

fixed
Locked

Return to “Closed Bugs”