Trying to compile gzdoom runs into following error:
14>.\thingdef\thingdef_codeptr.cpp(4672) : error C3861: 'SingleActorFromTID': identifier not found
Older revisions are compiling fine with my setup. Windows 7 / Windows 10 and Visual C++ 2008.
cu
Gargi
			
			
									
						
										
						thingdef_codeptr.cpp error in Revision: 44d25af3
Moderator: Graf Zahl
- 
				Gargi
- Posts: 13
- Joined: Sun Dec 23, 2012 13:03
- Location: Munich, Germany
- 
				Blue Shadow
- Global Moderator 
- Posts: 308
- Joined: Sun Aug 29, 2010 6:09
Re: thingdef_codeptr.cpp error in Revision: 44d25af3
This has already been addressed in ZDoom. You're just going to have to wait until it gets merged into GZDoom.
			
			
									
						
										
						- 
				Gargi
- Posts: 13
- Joined: Sun Dec 23, 2012 13:03
- Location: Munich, Germany
Re: thingdef_codeptr.cpp error in Revision: 44d25af3
Okay, thanks for your reply!
			
			
									
						
										
						- 
				xarragon
- Posts: 1
- Joined: Tue Aug 04, 2015 19:12
							 Re: thingdef_codeptr.cpp error in Revision: 44d25af3
						Re: thingdef_codeptr.cpp error in Revision: 44d25af3
		
								
						
			
			
			
			I ran into the same issue and was too lazy to look for bugs. Hacked up a patch to solve it. Maybe someone else can use it:
Apply it with 'patch -p1 < 0001-Fix-broken-compile.patch' from the root git directory. Git am does not work because of some CLRF issue I don't care to deal with now. I am on a Linux system myself.
			
			
									
						
										
						Code: Select all
From 1c119c467c0177877979decf95c884cd38132dbf Mon Sep 17 00:00:00 2001
From: Martin Persson <xarragon@gmail.com>
Date: Tue, 4 Aug 2015 18:04:03 +0200
Subject: [PATCH] Fix broken compile.
---
 src/p_acs.cpp                     | 2 +-
 src/p_acs.h                       | 2 ++
 src/thingdef/thingdef_codeptr.cpp | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/p_acs.cpp b/src/p_acs.cpp
index 750b8f0..83a087d 100644
--- a/src/p_acs.cpp
+++ b/src/p_acs.cpp
@@ -3595,7 +3595,7 @@ int DoGetMasterTID (AActor *self)
 	else return 0;
 }
 
-static AActor *SingleActorFromTID (int tid, AActor *defactor)
+AActor *SingleActorFromTID (int tid, AActor *defactor)
 {
 	if (tid == 0)
 	{
diff --git a/src/p_acs.h b/src/p_acs.h
index d5971e3..46987ec 100644
--- a/src/p_acs.h
+++ b/src/p_acs.h
@@ -975,4 +975,6 @@ struct acsdefered_t
 
 FArchive &operator<< (FArchive &arc, acsdefered_t *&defer);
 
+AActor *SingleActorFromTID (int tid, AActor *defactor);
+
 #endif //__P_ACS_H__
diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp
index e47f414..752e906 100644
--- a/src/thingdef/thingdef_codeptr.cpp
+++ b/src/thingdef/thingdef_codeptr.cpp
@@ -71,6 +71,7 @@
 #include "r_data/r_translate.h"
 #include "p_trace.h"
 #include "p_setup.h"
+#include "p_acs.h"
 #include "gstrings.h"
 
 
-- 
2.1.4