[r542] Linker Error

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
hungerfish
Posts: 13
Joined: Wed Feb 04, 2009 3:28

[r542] Linker Error

Post by hungerfish »

After not being able to compile gzdoom on linux for ages, I've finally managed to 'make' it happen...nearly that is. :cry:
I get lots of

Code: Select all

gl_wipe.cpp:(.text+0xa13): undefined reference to `gl_RenderState'
type errors during the linking of the executable.

Any ideas?! This is of course 64bit and using gcc (GCC) 4.4.1 :roll:
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: [r542] Linker Error

Post by Graf Zahl »

The code is very much in a state of flux right now and the CMake files are a bit out of date.
User avatar
hungerfish
Posts: 13
Joined: Wed Feb 04, 2009 3:28

Re: [r542] Linker Error

Post by hungerfish »

Ok, good to know :)
User avatar
GuntherDW
Posts: 117
Joined: Sat Nov 12, 2005 1:53
Location: Belgium, Antwerp
Contact:

Re: [r542] Linker Error

Post by GuntherDW »

Just add "gl/renderer/gl_renderstate.cpp" to the CMakeLists.txt in the src/ folder.

Or, in a diff form:

Code: Select all

Index: src/CMakeLists.txt
===================================================================
--- src/CMakeLists.txt	(revision 543)
+++ src/CMakeLists.txt	(working copy)
@@ -729,6 +729,7 @@
 	gl/utility/gl_cycler.cpp
 	gl/utility/gl_geometric.cpp
 	gl/renderer/gl_renderer.cpp
+	gl/renderer/gl_renderstate.cpp
 	gl/renderer/gl_lightdata.cpp
 	gl/textures/gl_hwtexture.cpp
 	gl/textures/gl_texture.cpp
User avatar
hungerfish
Posts: 13
Joined: Wed Feb 04, 2009 3:28

Re: [r542] Linker Error

Post by hungerfish »

Yeah,that works!

Thanks!
Locked

Return to “Closed Bugs”