Quantcast
Channel: PCSX-Reloaded
Viewing all articles
Browse latest Browse all 2368

Commented Unassigned: Missing includes [12408]

$
0
0
When compiling 1.9.93 for Linux, I got an error saying:
GtkGui.c:873:2: error: implicit declaration of function 'LidInterrupt' [-Werror=implicit-function-declaration]

It seems that GtkGui.c doesn't include "../libpcsxcore/cdrom.h", which is where it's defined.

EDIT: It seems that <sys/types.h> and <sys/wait.h> is also needed for all uses of waitpid and <unistd.h> for execl. I made a patch based on 1.9.94 (may have to be adjusted for non-linux builds (wrapped with an ifdef):

https://dl.dropboxusercontent.com/u/42480493/pcsxr-1.9.94-missinginclude.patch

Or the attacehd pcsxr-1.9.94-missingincludes-final.patch
Comments: Most of the includes should be fixed in upcoming code push. Different fixes/features should be included in separate pull-requests.

Viewing all articles
Browse latest Browse all 2368

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>