Skip to content

Instantly share code, notes, and snippets.

@simias
Created May 22, 2016 11:49
Show Gist options
  • Select an option

  • Save simias/2c19eef0a55698db0ed8cf59b25acb45 to your computer and use it in GitHub Desktop.

Select an option

Save simias/2c19eef0a55698db0ed8cf59b25acb45 to your computer and use it in GitHub Desktop.
In file included from rustation-libretro/src/renderer/GlRenderer.h:5:0,
from rustation-libretro/src/renderer/GlRenderer.cpp:1:
rustation-libretro/src/renderer/../retrogl/buffer.h: In member function ‘void DrawBuffer<T>::push_slice(T*, size_t)’:
rustation-libretro/src/renderer/../retrogl/buffer.h:217:64: error: there are no arguments to ‘printf’ that depend on a template parameter, so a declaration of ‘printf’ must be available [-fpermissive]
printf("DrawBuffer::push_slice() - Out of memory\n");
^
rustation-libretro/src/renderer/../retrogl/buffer.h:217:64: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from rsx/../rustation-libretro/src/retrogl/../renderer/GlRenderer.h:5:0,
from rsx/../rustation-libretro/src/retrogl/retrogl.h:8,
from rsx/rsx_lib_gl.h:7,
from rsx/rsx_lib_gl.cpp:1:
rsx/../rustation-libretro/src/retrogl/../renderer/../retrogl/buffer.h: In member function ‘void DrawBuffer<T>::push_slice(T*, size_t)’:
rsx/../rustation-libretro/src/retrogl/../renderer/../retrogl/buffer.h:217:64: error: there are no arguments to ‘printf’ that depend on a template parameter, so a declaration of ‘printf’ must be available [-fpermissive]
printf("DrawBuffer::push_slice() - Out of memory\n");
^
rsx/../rustation-libretro/src/retrogl/../renderer/../retrogl/buffer.h:217:64: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
g++ -c -o rustation-libretro/src/retrogl/texture.o rustation-libretro/src/retrogl/texture.cpp -DHAVE_OPENGL -DCORE -lpthread -DHAVE_MKDIR -DWANT_THREADING -DHAVE_THREADS -DNEED_DEINTERLACER -DWANT_32BPP -DWANT_NEW_API -DFRONTEND_SUPPORTS_RGB565 -DNEED_CD -DNEED_TREMOR -O2 -fPIC -I. -I./mednafen -I./mednafen/include -I./mednafen/intl -I./mednafen/hw_sound -I./mednafen/hw_cpu -I./mednafen/hw_misc -I./libretro-common/include -I./deps/zlib -DSIZEOF_DOUBLE=8 -Wall -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -DMEDNAFEN_VERSION=\"0.9.31\" -DPACKAGE=\"mednafen\" -DMEDNAFEN_VERSION_NUMERIC=931 -DPSS_STYLE=1 -DMPC_FIXED_POINT -DWANT_PSX_EMU -DSTDC_HEADERS -D__STDC_LIMIT_MACROS -D__LIBRETRO__ -D_LOW_ACCURACY_ -D__STDC_CONSTANT_MACROS
rustation-libretro/src/renderer/../retrogl/buffer.h: In instantiation of ‘void DrawBuffer<T>::push_slice(T*, size_t) [with T = CommandVertex; size_t = long unsigned int]’:
rustation-libretro/src/renderer/GlRenderer.cpp:262:117: required from here
rustation-libretro/src/renderer/../retrogl/buffer.h:217:19: error: ‘printf’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
printf("DrawBuffer::push_slice() - Out of memory\n");
^
In file included from rustation-libretro/src/renderer/GlRenderer.cpp:10:0:
/usr/include/stdio.h:362:12: note: ‘int printf(const char*, ...)’ declared here, later in the translation unit
extern int printf (const char *__restrict __format, ...);
^
In file included from rustation-libretro/src/renderer/GlRenderer.h:5:0,
from rustation-libretro/src/renderer/GlRenderer.cpp:1:
rustation-libretro/src/renderer/../retrogl/buffer.h: In instantiation of ‘void DrawBuffer<T>::push_slice(T*, size_t) [with T = ImageLoadVertex; size_t = long unsigned int]’:
rustation-libretro/src/renderer/GlRenderer.cpp:360:57: required from here
rustation-libretro/src/renderer/../retrogl/buffer.h:217:19: error: ‘printf’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
printf("DrawBuffer::push_slice() - Out of memory\n");
^
In file included from rustation-libretro/src/renderer/GlRenderer.cpp:10:0:
/usr/include/stdio.h:362:12: note: ‘int printf(const char*, ...)’ declared here, later in the translation unit
extern int printf (const char *__restrict __format, ...);
^
In file included from rustation-libretro/src/renderer/GlRenderer.h:5:0,
from rustation-libretro/src/renderer/GlRenderer.cpp:1:
rustation-libretro/src/renderer/../retrogl/buffer.h: In instantiation of ‘void DrawBuffer<T>::push_slice(T*, size_t) [with T = OutputVertex; size_t = long unsigned int]’:
rustation-libretro/src/renderer/GlRenderer.cpp:586:53: required from here
rustation-libretro/src/renderer/../retrogl/buffer.h:217:19: error: ‘printf’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
printf("DrawBuffer::push_slice() - Out of memory\n");
^
In file included from rustation-libretro/src/renderer/GlRenderer.cpp:10:0:
/usr/include/stdio.h:362:12: note: ‘int printf(const char*, ...)’ declared here, later in the translation unit
extern int printf (const char *__restrict __format, ...);
^
Makefile:314: recipe for target 'rsx/rsx_lib_gl.o' failed
make: *** [rsx/rsx_lib_gl.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile:314: recipe for target 'rustation-libretro/src/renderer/GlRenderer.o' failed
make: *** [rustation-libretro/src/renderer/GlRenderer.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment