Page 1 of 1

[r542] Linker Error

Posted: Mon Oct 12, 2009 19:43
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:

Re: [r542] Linker Error

Posted: Mon Oct 12, 2009 21:04
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.

Re: [r542] Linker Error

Posted: Mon Oct 12, 2009 22:19
by hungerfish
Ok, good to know :)

Re: [r542] Linker Error

Posted: Tue Oct 13, 2009 9:44
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

Re: [r542] Linker Error

Posted: Tue Oct 13, 2009 21:24
by hungerfish
Yeah,that works!

Thanks!