spacefractal · 68039
on the char* pointer me thinks with a adress error.
ld: warning: directory not found for option '-L/Volumes/STORAGE/Source/iOS/iPhoneGlbasicXcodeWithSource/XCode/Lib'ld: warning: ignoring file /Volumes/STORAGE/Source/iOS/iPhoneGlbasicXcodeWithSource/XCode/Code/libpng-gf.a, missing required architecture x86_64 in file /Volumes/STORAGE/Source/iOS/iPhoneGlbasicXcodeWithSource/XCode/Code/libpng-gf.a (2 slices)Undefined symbols for architecture x86_64: "gf_png_open(char const*, int*, int*, int*, int*)", referenced from: OPENGL_IMAGE::LoadImagePNG(char const*, unsigned long) in openglrainbows.o "gf_png_read(unsigned char*, unsigned char**)", referenced from: OPENGL_IMAGE::LoadImagePNG(char const*, unsigned long) in openglrainbows.o "gf_jpeg_read(char const*, int*, int*, int*, unsigned char**)", referenced from: OPENGL_IMAGE::LoadImageJPG(char const*) in openglrainbows.o "gf_png_close()", referenced from: OPENGL_IMAGE::LoadImagePNG(char const*, unsigned long) in openglrainbows.o "gf_write_png(char const*, unsigned char const*, int, int)", referenced from: OpenGLRainbows::SaveImageFile(char const*, OPENGL_IMAGE&) in openglrainbows.o "gf_write_jpeg(char const*, unsigned char const*, int, int)", referenced from: OpenGLRainbows::SaveImageFile(char const*, OPENGL_IMAGE&) in openglrainbows.o "_glbSoundEngine_IsBackgroundMusicPlaying", referenced from: iPhoneIsMusicPlaying() in dxsound.o "_glbSoundEngine_IsEffectPlaying", referenced from: SFXSoundBuffer::Play(int, int, unsigned long) in dxsound.o SFXSoundBuffer::IsPlaying(long) in dxsound.o "_glbSoundEngine_LoadBackgroundMusicTrack", referenced from: iPhonePlayMusic(char const*, bool) in dxsound.o "_glbSoundEngine_LoadEffect", referenced from: SFXSoundBuffer::Load(SFXSound*, char const*, int) in dxsound.o "_glbSoundEngine_PauseBackgroundMusic", referenced from: iPhonePauseMusic(bool) in dxsound.o "_glbSoundEngine_SetBackgroundMusicVolume", referenced from: iPhoneMusicVolume(float) in dxsound.o "_glbSoundEngine_SetEffectLevel", referenced from: SFXSoundBuffer::Play(int, int, unsigned long) in dxsound.o "_glbSoundEngine_SetEffectPosition", referenced from: SFXSoundBuffer::Play(int, int, unsigned long) in dxsound.o "_glbSoundEngine_SetListenerPosition", referenced from: SFXSound::SFXSound() in dxsound.o "_glbSoundEngine_StartBackgroundMusic", referenced from: iPhonePlayMusic(char const*, bool) in dxsound.o "_glbSoundEngine_StartEffect", referenced from: SFXSoundBuffer::Play(int, int, unsigned long) in dxsound.o "_glbSoundEngine_StopBackgroundMusic", referenced from: iPhonePlayMusic(char const*, bool) in dxsound.o "_glbSoundEngine_StopEffect", referenced from: SFXSoundBuffer::Stop(int) in dxsound.o "_glbSoundEngine_UnloadBackgroundMusicTrack", referenced from: iPhonePlayMusic(char const*, bool) in dxsound.o iPhoneStopMusic() in dxsound.o "_glbSoundEngine_UnloadEffect", referenced from: SFXSoundBuffer::Clear() in dxsound.old: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)
#ifdef hashing_on void ADDHASH(long a,long b, long c); long m_HASH_TABLE[65536]; #endif
#ifdef hashing_on void ADDHASH(long a,long b, long c); long *m_HASH_TABLE; #endif
GFCompression() {#ifdef hashing_on m_HASH_TABLE = new long[65536];#endif m_outfile=0L; Clear(); m_Method=1; }
~GFCompression() { Clear();#ifdef hashing_on delete[] m_HASH_TABLE;#endif }
#define DWORD unsigned long
#define DWORD unsigned int
g_debug("sizeof(long): %ld\n", sizeof(long));
sizeof(long): 4
sizeof(long): 8
assert(sizeof(DWORD) == 4);
Greedy Mouse now run nicely. Phew. One game ago (Karma Miwa).