Skip to content

Instantly share code, notes, and snippets.

@hanetzer
hanetzer / gist:8158663
Created December 28, 2013 11:55
BlockLaptop.java
package netz.mods.cpc.block;
import java.util.List;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
@hanetzer
hanetzer / gist:e81aaa9cd95277bf9991
Created June 8, 2014 02:12
mkxp win32.h include issue
In file included from C:/Users/The_NetZ/mkxp/binding-mri/binding-mri.cpp:25:
In file included from C:/Users/The_NetZ/mkxp/src\eventthread.h:28:
In file included from C:/msys64/mingw64/include/SDL2\SDL_scancode.h:31:
In file included from C:/msys64/mingw64/include/SDL2/SDL_stdinc.h:31:
C:/msys64/mingw64/include/SDL2/SDL_config.h:49:9: warning: 'SIZEOF_VOIDP' macro redefined [-Wmacro-redefined]
#define SIZEOF_VOIDP 4
^
C:/msys64/mingw64/include/ruby-2.1.0/x64-mingw32\ruby/config.h:53:9: note: previous definition is here
#define SIZEOF_VOIDP 8
^
#include <stdio.h>
#include <string.h>
#include <time.h>
#if defined(__MINGW64_VERSION_MAJOR)
/* XXX why isn't this in sec_api/time_s.h? */
# if defined(_USE_32BIT_TIME_T)
# define gmtime_s _gmtime32_s
# else
# define gmtime_s _gmtime64_s
@hanetzer
hanetzer / g++-E.log
Created June 8, 2014 23:36
g++ -E output
This file has been truncated, but you can view the full file.
# 1 "test.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "test.cpp"
# 1 "C:/msys64/mingw64/include/c++/4.9.0/string" 1 3
# 36 "C:/msys64/mingw64/include/c++/4.9.0/string" 3
# 37 "C:/msys64/mingw64/include/c++/4.9.0/string" 3
# 1 "C:/msys64/mingw64/include/c++/4.9.0/x86_64-w64-mingw32/bits/c++config.h" 1 3
@hanetzer
hanetzer / error.log
Created June 9, 2014 05:24
Undefined reference to Modplug
C:/msys64/mingw64/lib/libSDL_sound.a(modplug.o):(.text+0xf): undefined reference to `ModPlug_Seek'
C:/msys64/mingw64/lib/libSDL_sound.a(modplug.o):(.text+0x31): undefined reference to `ModPlug_Seek'
C:/msys64/mingw64/lib/libSDL_sound.a(modplug.o):(.text+0x61): undefined reference to `ModPlug_Read'
C:/msys64/mingw64/lib/libSDL_sound.a(modplug.o):(.text+0x1fc): undefined reference to `ModPlug_Load'
C:/msys64/mingw64/lib/libSDL_sound.a(modplug.o):(.text+0x231): undefined reference to `ModPlug_GetLength'
C:/msys64/mingw64/lib/libSDL_sound.a(modplug.o):(.text+0x2b8): undefined reference to `ModPlug_SetSettings'
C:/msys64/mingw64/lib/libSDL_sound.a(modplug.o):(.text+0x3d7): undefined reference to `ModPlug_SetSettings'
C:/msys64/mingw64/lib/libSDL_sound.a(modplug.o):(.text+0xc1): undefined reference to `ModPlug_Unload'
C:/msys64/mingw64/lib/libSDL_sound.a(modplug.o):(.text+0xd5): undefined reference to `ModPlug_Unload'
C:\msys64\mingw64\bin\ld.exe: C:/msys64/mingw64/lib/libSDL_sound.a(modplug.o): bad reloc address 0
@hanetzer
hanetzer / i686.log
Last active August 29, 2015 14:02
i686.log
mkxp/src/debuglogger.cpp: In constructor 'DebugLogger::DebugLogger(const char*)':
mkxp/src/debuglogger.cpp:99:41: error: invalid conversion from 'void (*)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar*, GLvoid*) {aka void (*)(unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, void*)}' to 'GLDEBUGPROC {aka void (__attribute__((__stdcall__)) *)(unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, void*)}' [-fpermissive]
glDebugMessageCallback(arbDebugFunc, p);
^
mkxp/src/debuglogger.cpp:101:44: error: invalid conversion from 'void (*)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar*, GLvoid*) {aka void (*)(unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, void*)}' to 'GLDEBUGPROCARB {aka void (__attribute__((__stdcall__)) *)(unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, void*)}' [-fpermissive]
glDebugMessageCallbackARB(arbDebugFunc, p);
@hanetzer
hanetzer / mkxp.log.1
Last active August 29, 2015 14:02
gdb backtrace
Starting program: C:\Users\The_NetZ\Documents\ReGaL.x86_64\Game.exe
[New Thread 6120.0x1644]
[New Thread 6120.0x17b8]
[New Thread 6120.0x2d8]
[New Thread 6120.0x1570]
[New Thread 6120.0x116c]
[Thread 6120.0x2d8 exited with code 0]
[Thread 6120.0x116c exited with code 0]
[New Thread 6120.0x1588]
[New Thread 6120.0x5b0]
@hanetzer
hanetzer / mkxp.log
Created June 12, 2014 10:08
Backtrace with debugging symbols available:
(gdb) Undefined command: "". Try "help".
(gdb)
Thread 16 (Thread 4728.0x1468):
#0 0x0000000077730591 in ntdll!DbgBreakPoint ()
from C:\Windows\system32\ntdll.dll
#1 0x00000000777d7f48 in ntdll!DbgUiRemoteBreakin ()
from C:\Windows\system32\ntdll.dll
#2 0x00000000774d59ed in KERNEL32!BaseThreadInitThunk ()
from C:\Windows\system32\kernel32.dll
#3 0x000000007770c541 in ntdll!RtlUserThreadStart ()
@hanetzer
hanetzer / PKGBUILD
Created June 15, 2014 06:53
Gradle split PKGBUILD
# Maintainer Simon Legner <[email protected]>
# Maintainer: Chris Molozian (novabyte) <chris DOT molozian AT gmail DOT com>
# Contributor: Sanjuro Makabe (itti) <vuck AT gmx DOT de>
pkgname=('gradle' 'gradle-doc')
pkgver=1.12
pkgrel=0
arch=('any')
url=("http://www.gradle.org/")
license=('APACHE')
depends=('java-environment')
configurations {
attachThisSource
}
dependencies {
compile 'codechicken:CodeChickenCore:1.7.10-1.0.2.11:dev'
compile 'codechicken:CodeChickenLib:1.7.10-1.1.1.95:dev'
compile 'codechicken:ForgeMultipart:1.7.10-1.1.0.297:dev'
compile 'codechicken:NotEnoughItems:1.7.10-1.0.2.28:dev'
attachThisSource 'codechicken:CodeChickenCore:1.7.10-1.0.2.11:src'