Thread: Sdl-1.2.15
View Single Post
Old 09 March 2018, 23:24   #28
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
I try to build GnNeo, which is almost done, but linking give some errors,
which makes no sense.
using my "old" libSDL.a which was ok for many things i build,
now I get these things:
Code:
libSDL.a(SDL_string.go) :SDL_string.go: undefined reference to `_ctype_'
libSDL.a(SDL_string.go) :SDL_string.go: undefined reference to `_ctype_'
libSDL.a(SDL_string.go) :SDL_string.go: undefined reference to `_ctype_'
libSDL.a(SDL_string.go) :SDL_string.go: undefined reference to `_ctype_'
libSDL.a(SDL_string.go) :SDL_string.go: undefined reference to `_ctype_'
libSDL.a(SDL_string.go) :SDL_string.go: more undefined references to `_ctype_' follow
libSDL.a(SDL_cgxvideo.go) :SDL_cgxvideo.go: undefined reference to `Delay'
libSDL.a(SDL_cgxvideo.go) :SDL_cgxvideo.go: undefined reference to `Delay'
libSDL.a(SDL_ahiaudio.go) :SDL_ahiaudio.go: undefined reference to `Delay'
libSDL.a(SDL_sysjoystick.go) :SDL_sysjoystick.go: undefined reference to `Delay'
libSDL.a(SDL_amigaevents.go) :SDL_amigaevents.go: undefined reference to `Open'
libSDL.a(SDL_amigaevents.go) :SDL_amigaevents.go: undefined reference to `MapRawKey'
libSDL.a(SDL_amigaevents.go) :SDL_amigaevents.go: undefined reference to `MapRawKey'
libSDL.a(SDL_amigaevents.go) :SDL_amigaevents.go: undefined reference to `MapRawKey'
libSDL.a(SDL_amigaevents.go) :SDL_amigaevents.go: undefined reference to `MapRawKey'
libSDL.a(SDL_amigaevents.go) :SDL_amigaevents.go: undefined reference to `Close'
libSDL.a(SDL_amigaevents.go) :SDL_amigaevents.go: undefined reference to `MapRawKey'
libSDL.a(SDL_amigaevents.go) :SDL_amigaevents.go: undefined reference to `MapRawKey'
using gcc6, maybe 3 month old:
Code:
CFLAGS="-DNDEBUG -D__AMIGA__ -I/cygdrive/d/SDL/include -mcrt=clib2 -O3 -m68020-40 -g"
Code:
$ m68k-amigaos-nm.exe /cygdrive/d/SDL/lib/libSDL.a | grep MapRawKey
m68k-amigaos-nm: SDL_cgxyuv.go: no symbols
m68k-amigaos-nm: SDL_cgxgl_wrapper.go: no symbols
m68k-amigaos-nm: SDL_stdlib.go: no symbols
m68k-amigaos-nm: SDL_malloc.go: no symbols
m68k-amigaos-nm: SDL_getenv.go: no symbols
         U _MapRawKey
any idea?

#1) playing with sdl 1.2.15, i found these warnings, which match some of the errors above:
Code:
video/amigaos/SDL_amigaevents.c:195: warning: implicit declaration of function ‘Open’ 
video/amigaos/SDL_amigaevents.c:200: warning: implicit declaration of function ‘Close’
video/amigaos/SDL_cgxvideo.c:1402: warning: implicit declaration of function ‘Delay’
video/amigaos/SDL_amigaevents.c:748: warning: implicit declaration of function ‘MapRawKey’
no such warning, building SDL_string.go, which above complains about "_ctype_" :/

what the heck is wrong here?

#2)
video/amigaos/SDL_amigaevents.c:
Code:
	#ifdef STORMC4_WOS
	if( (actual=MapRawKey(&event,buffer,5,NULL))>=0)
at least something to fix :/

this is the very same folder I build my libSDl couple weeks ago, not a bit changed,
now out of a sudden such errors, even with the one build many weeks ago.

the new player here is gcc6, but all this makes no sense. need a break :/

Last edited by emufan; 10 March 2018 at 03:06.
emufan is offline  
 
Page generated in 0.04121 seconds with 11 queries