SDLTK 1.0.5 GUI Help please

Hi,
I have only just started playing around with SDL but have already
decided I want a fairly fully fledged GUI in my SDL projects.
For the GUI I have chosen SDLTK
(http://developer.berlios.de/projects/sdltk/) because although I haven’t
actually seen it in action the source code looks to have all the Widgets I’d
ever need plus of course I can tweak it a little if it isn’t exactly what I
want :slight_smile:

I’m developing my apps on Windows with Bloodshed Dev C++ and some extra
DevPaks for simplicity at this stage.
I’ll replace the DevPaks with the latest versions of the software once I
have things basically working.

I have freetype2.1.10-1, libiconv1.8-1, libjpeg6b-4, libpng1.2.8,
libtiff3.6.1-2, libxml2.6.23, SDL1.2.12, SDL_gfx2.0.13,
SDL_image1.2.4 and zlib1.2.3 Devpaks installed. Most of these seemed to be
needed by SDLTK.

I am able to quite happily compile and run basic SDL (including openGL)
applications without any problems.

At this point I tried to get the GUI working so I downloaded SDLTK 1.0.5,
created a Dev C++ project and after a bit of playing around I finally got it
to compile with no errors or warnings and a libsdltk.a shared library was
generated.

I had to make the following modifications to the sourcecode:-

In SDL_GLPrimitives.c
void drawwind()
Changed int id; ----------> GLuint id;

In SDL_Window.h
Changed void SDL_WindowRedraw(); ---------> void SDL_WindowRedraw(SDL_Window
*Window);

If I make a basic SDL application and add an include for SDLTk.h and link
with libsdltk.a the compile is fine but the linker complains with the
following messages several times over:-

[Linker error] undefined reference to SDL_LockSurface' [Linker error] undefined reference toSDL_UnlockSurface’
[Linker error] undefined reference to `SDL_MapRGBA’

I don’t understand whats going on as I am linking with the following:-
-lmingw32
-lsdltk
-lSDL_image
-lSDLmain
-lSDL
-lSDL_gfx
-lfreetype.dll
-lopengl32
-lglu32

i have tried changing the order the librararies are listed plus removing
some of them all to no avail.
When using SDLTk do I need to link against all that lot or do I just need
the -lsdltk ?

Sorry its a lot of info for a kick off but I am really really hoping someone
can help out here.

Thanks so much in advance for any help you can offer

Lynton
England UK

Hi,
I have only just started playing around with SDL but
have already
decided I want a fairly fully fledged GUI in my SDL
projects.
For the GUI I have chosen SDLTK
(http://developer.berlios.de/projects/sdltk/) because
although I haven’t
actually seen it in action the source code looks to have
all the Widgets I’d
ever need plus of course I can tweak it a little if it
isn’t exactly what I
want :slight_smile:

I’m developing my apps on Windows with Bloodshed Dev
C++ and some extra
DevPaks for simplicity at this stage.
I’ll replace the DevPaks with the latest versions of
the software once I
have things basically working.

I have freetype2.1.10-1, libiconv1.8-1, libjpeg6b-4,
libpng1.2.8,
libtiff3.6.1-2, libxml2.6.23, SDL1.2.12, SDL_gfx2.0.13,
SDL_image1.2.4 and zlib1.2.3 Devpaks installed. Most of
these seemed to be
needed by SDLTK.

I am able to quite happily compile and run basic SDL
(including openGL)
applications without any problems.

At this point I tried to get the GUI working so I
downloaded SDLTK 1.0.5,
created a Dev C++ project and after a bit of playing around
I finally got it
to compile with no errors or warnings and a libsdltk.a
shared library was
generated.

I had to make the following modifications to the
sourcecode:-

In SDL_GLPrimitives.c
void drawwind()
Changed int id; ----------> GLuint id;

In SDL_Window.h
Changed void SDL_WindowRedraw(); ---------> void
SDL_WindowRedraw(SDL_Window
*Window);

If I make a basic SDL application and add an include for
SDLTk.h and link
with libsdltk.a the compile is fine but the linker
complains with the
following messages several times over:-

[Linker error] undefined reference to
SDL_LockSurface' [Linker error] undefined reference toSDL_UnlockSurface’
[Linker error] undefined reference to `SDL_MapRGBA’

I don’t understand whats going on as I am linking with
the following:-
-lmingw32
-lsdltk
-lSDL_image
-lSDLmain
-lSDL
-lSDL_gfx
-lfreetype.dll
-lopengl32
-lglu32

sdltk needs to come after everything it depends on. Not to mention everything that depends on something needs to come after that thing.

So, SDL depends on SDLmain, SDL_image and SDL_gfx depend on SDL and sdltk depends on SDL, SDL_image, SDL_gfx and (I’m guessing) freetype.

This means SDL needs to come after SDLmain, SDL_imageand SDL_gfx need to come after SDL and sdltk needs to come after all of these as well as freetype. Right now you have them halfway to reverse order.

Also, I don’t know why you have .dll on the end of the freetype line but that won’t have caused an error as there are showstoppers much earlier.

Try this order:
-lmingw32
-lSDLmain
-lSDL
-lSDL_image
-lSDL_gfx
-lfreetype.dll
-lsdltk
-lopengl32
-lglu32— On Thu, 8/14/08, Lynton wrote:

From: Lynton
Subject: [SDL] SDLTK 1.0.5 GUI Help please
To: sdl at libsdl.org
Date: Thursday, August 14, 2008, 1:29 PM

“Paul Duffy” wrote in message
news:625851.14958.qm at web24207.mail.ird.yahoo.com

sdltk needs to come after everything it depends on. Not to mention
everything that depends on something needs to come after that thing.

So, SDL depends on SDLmain, SDL_image and SDL_gfx depend on SDL and sdltk
depends on SDL, SDL_image, SDL_gfx and (I’m guessing) freetype.

This means SDL needs to come after SDLmain, SDL_imageand SDL_gfx need to
come after SDL and sdltk needs to come after all of these as well as
freetype. Right now you have them halfway to reverse order.

Also, I don’t know why you have .dll on the end of the freetype line but
that won’t have caused an error as there are showstoppers much earlier.

Try this order:
-lmingw32
-lSDLmain
-lSDL
-lSDL_image
-lSDL_gfx
-lfreetype.dll
-lsdltk
-lopengl32
-lglu32

Hi Paul,
Thanks for the quick reply to my plea for help.
I tried switching the linking order for the libraries as you suggest but I
seem to end up with more errors.
Do you think that even though libsdltk.a compiled OK there might be
something wrong with it even though it apparently links OK in the project ?
I link with the oddly named have lfreetype.dll because the library for that
in my compiler lib folder is called libfreetype.dll.a so my best guess is
thats a way to alert one that its for Windows rather than Linux ?

Are there any statically linked libraries for sdltk I can download so I can
see what the GUI looks like also I can try linking them in my project ?
If my project then works I know I have a problem with the way I built sdltk
(quite likely) and I can concentrate my efforts on that.

Other than that I’m at a bit of a loss so any other information, thoughts
are much appreciated.

Regards

Lynton

England UK

The whole undefined references are in the application that you are trying to
build or in the library in SDLTK? If they are undefined in the library then
it was not build correctly but if it is in the application the something
must be mis configured. I have not taken a look at the source code but you
should make sure the library properly exports the definitions. I hope that
helps.On Thu, Aug 14, 2008 at 9:29 AM, Lynton wrote:

Hi,
I have only just started playing around with SDL but have already decided
I want a fairly fully fledged GUI in my SDL projects.
For the GUI I have chosen SDLTK (
http://developer.berlios.de/projects/sdltk/) because although I haven’t
actually seen it in action the source code looks to have all the Widgets I’d
ever need plus of course I can tweak it a little if it isn’t exactly what I
want :slight_smile:

I’m developing my apps on Windows with Bloodshed Dev C++ and some extra
DevPaks for simplicity at this stage.
I’ll replace the DevPaks with the latest versions of the software once I
have things basically working.

I have freetype2.1.10-1, libiconv1.8-1, libjpeg6b-4, libpng1.2.8,
libtiff3.6.1-2, libxml2.6.23, SDL1.2.12, SDL_gfx2.0.13,
SDL_image1.2.4 and zlib1.2.3 Devpaks installed. Most of these seemed to be
needed by SDLTK.

I am able to quite happily compile and run basic SDL (including openGL)
applications without any problems.

At this point I tried to get the GUI working so I downloaded SDLTK 1.0.5,
created a Dev C++ project and after a bit of playing around I finally got it
to compile with no errors or warnings and a libsdltk.a shared library was
generated.

I had to make the following modifications to the sourcecode:-

In SDL_GLPrimitives.c
void drawwind()
Changed int id; ----------> GLuint id;

In SDL_Window.h
Changed void SDL_WindowRedraw(); ---------> void
SDL_WindowRedraw(SDL_Window *Window);

If I make a basic SDL application and add an include for SDLTk.h and link
with libsdltk.a the compile is fine but the linker complains with the
following messages several times over:-

[Linker error] undefined reference to SDL_LockSurface' [Linker error] undefined reference toSDL_UnlockSurface’
[Linker error] undefined reference to `SDL_MapRGBA’

I don’t understand whats going on as I am linking with the following:-
-lmingw32
-lsdltk
-lSDL_image
-lSDLmain
-lSDL
-lSDL_gfx
-lfreetype.dll
-lopengl32
-lglu32

i have tried changing the order the librararies are listed plus removing
some of them all to no avail.
When using SDLTk do I need to link against all that lot or do I just need
the -lsdltk ?

Sorry its a lot of info for a kick off but I am really really hoping
someone can help out here.

Thanks so much in advance for any help you can offer

Lynton
England UK


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Rogelio Nodal

Hi Paul,
Thanks for the quick reply to my plea for help.
I tried switching the linking order for the libraries as
you suggest but I
seem to end up with more errors.
Do you think that even though libsdltk.a compiled OK there
might be
something wrong with it even though it apparently links OK
in the project ?

Well, getting it compiled and linking it are two different things. Just compiling (to get the .o file) doesn’t do any checks to see if the required libraries are available.

I link with the oddly named have lfreetype.dll because the
library for that
in my compiler lib folder is called libfreetype.dll.a so my
best guess is
thats a way to alert one that its for Windows rather than
Linux ?

That’s a bit non-standard, not something I’ve seen before and more likely to lead to confusion. Ah well, developers will have their quirks… I say ‘their’.

Are there any statically linked libraries for sdltk I can
download so I can
see what the GUI looks like also I can try linking them in
my project ?

Can’t say I’m afraid, I’m just approaching this from a general library linking perspective without ever having used sdltk.

If my project then works I know I have a problem with the
way I built sdltk
(quite likely) and I can concentrate my efforts on that.

Other than that I’m at a bit of a loss so any other
information, thoughts
are much appreciated.

I’d be interested to know what those errors are as they could either be caused by the situation being made worse or they could be errors from other problems that were always there but were not reached because earlier errors halted the process.

As it stands, the earlier errors could also have been caused by SDL_image, especially with the call to mapRGBA, being in the wrong place.— On Thu, 8/14/08, Lynton wrote:

“Paul Duffy” wrote in message
news:98042.87791.qm at web24206.mail.ird.yahoo.com

I’d be interested to know what those errors are as they could either be
caused by the situation being made worse or they could be errors from
other problems that were always there but were not reached because earlier
errors halted the process.

As it stands, the earlier errors could also have been caused by SDL_image,
especially with the call to mapRGBA, being in the wrong place.

Paul,
OK, here we go with the compile log from Dev CPP:-

Link order is this

-lmingw32
-lSDLmain
-lSDL
-lSDL_image
-lSDL_gfx
-lfreetype.dll
-lsdltk
-lopengl32
-lglu32

I also have -Dmain=SDL_main in the compiler command line options.

I apologize for the length of this…

Compiler: Default compiler
Building Makefile: “C:\Users\Lynton\Desktop\SDLTest\Makefile.win"
Finding dependencies for file: C:\Users\Lynton\Desktop\SDLTest\main.c
Executing make…
c:\dev-cpp\bin\make.exe -f “C:\Users\Lynton\Desktop\SDLTest\Makefile.win"
all
c:\dev-cpp\bin\g++.exe -c main.c -o
main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include” -I"C:/Dev-Cpp/include/c++/3.4.2/backward”
-I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2"
-I"C:/Dev-Cpp/include" -I"C:/Users/Lynton/Desktop/sdltk-1.0.5/src"

c:\dev-cpp\bin\windres.exe -i SDLTest_private.rc --input-format=rc -o
SDLTest_private.res -O coff

c:\dev-cpp\bin\g++.exe main.o SDLTest_private.res -o
"SDLTest.exe" -L"C:/Dev-Cpp/lib" -L"C:/Users/Lynton/Desktop/sdltk-1.0.5" -mwindows
-lmingw32 -lSDLmain -lSDL -lSDL_image -lSDL_gfx -lfreetype.dll -lsdltk -lopengl32
-lglu32

main.o(.text+0x7):main.c: undefined reference to SDL_RadioButtonNew()' main.o(.text+0x35):main.c: undefined reference toSDL_WidgetSetDims(SDL_Widget*, short, short, short, short)'
main.o(.text+0x48):main.c: undefined reference to
SDL_RadioButtonSetText(SDL_Widget*, char*)' main.o(.text+0x53):main.c: undefined reference toSDL_WidgetShow(SDL_Widget*)'
main.o(.text+0x94):main.c: undefined reference to SDLTk_Init()' main.o(.text+0x9e):main.c: undefined reference toSDLTk_Main()‘
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_FontTTF.o)(.text+0xe):SDL_FontTTF.c:
undefined reference to FT_Init_FreeType' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_FontTTF.o)(.text+0x71):SDL_FontTTF.c: undefined reference toFT_New_Face’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_FontTTF.o)(.text+0x2a4):SDL_FontTTF.c:
undefined reference to FT_Set_Char_Size' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_FontTTF.o)(.text+0x2fb):SDL_FontTTF.c: undefined reference toFT_Load_Char’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_FontTTF.o)(.text+0x314):SDL_FontTTF.c:
undefined reference to FT_Render_Glyph' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_FontTTF.o)(.text+0x36b):SDL_FontTTF.c: undefined reference toFT_Load_Char’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_FontTTF.o)(.text+0x384):SDL_FontTTF.c:
undefined reference to FT_Render_Glyph' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_FontTTF.o)(.text+0x450):SDL_FontTTF.c: undefined reference toFT_Set_Char_Size’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_FontTTF.o)(.text+0x46e):SDL_FontTTF.c:
undefined reference to FT_Load_Char' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_FontTTF.o)(.text+0x4a5):SDL_FontTTF.c: undefined reference toFT_Render_Glyph’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_FontTTF.o)(.text+0x659):SDL_FontTTF.c:
undefined reference to FT_Set_Char_Size' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_FontTTF.o)(.text+0x677):SDL_FontTTF.c: undefined reference toFT_Load_Char’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_FontTTF.o)(.text+0x6ab):SDL_FontTTF.c:
undefined reference to FT_Render_Glyph' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x1fc):SDL_Primitives.c: undefined reference toSDL_LockSurface’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x252):SDL_Primitives.c:
undefined reference to SDL_UnlockSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x2be):SDL_Primitives.c: undefined reference toSDL_MapRGBA’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x34c):SDL_Primitives.c:
undefined reference to SDL_MapRGBA' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x5e6):SDL_Primitives.c: undefined reference toSDL_MapRGB’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0xb09):SDL_Primitives.c:
undefined reference to SDL_LockSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0xb6b):SDL_Primitives.c: undefined reference toSDL_MapRGBA’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0xbbf):SDL_Primitives.c:
undefined reference to `SDL_UnlockSurface’

C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0xc37):SDL_Primitives.c:
undefined reference to SDL_MapRGBA' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0xe8a):SDL_Primitives.c: undefined reference toSDL_MapRGB’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x13ce):SDL_Primitives.c:
undefined reference to SDL_LockSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x1430):SDL_Primitives.c: undefined reference toSDL_MapRGBA’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x1494):SDL_Primitives.c:
undefined reference to SDL_UnlockSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x1650):SDL_Primitives.c: undefined reference toSDL_MapRGBA’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x17f9):SDL_Primitives.c:
undefined reference to SDL_LockSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x192b):SDL_Primitives.c: undefined reference toSDL_UnlockSurface’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x1b4c):SDL_Primitives.c:
undefined reference to `SDL_MapRGBA’

C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x1b5a):SDL_Primitives.c:
undefined reference to SDL_LockSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x1c8c):SDL_Primitives.c: undefined reference toSDL_UnlockSurface’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x1ee3):SDL_Primitives.c:
undefined reference to SDL_MapRGBA' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x1ef1):SDL_Primitives.c: undefined reference toSDL_LockSurface’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x1ff3):SDL_Primitives.c:
undefined reference to SDL_UnlockSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x2a45):SDL_Primitives.c: undefined reference toSDL_MapRGBA’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x2a53):SDL_Primitives.c:
undefined reference to SDL_LockSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x2c1b):SDL_Primitives.c: undefined reference toSDL_UnlockSurface’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x2f26):SDL_Primitives.c:
undefined reference to SDL_LockSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x2f88):SDL_Primitives.c: undefined reference toSDL_MapRGBA’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x3302):SDL_Primitives.c:
undefined reference to SDL_UnlockSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x3584):SDL_Primitives.c: undefined reference toSDL_LockSurface’

C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x37d4):SDL_Primitives.c:
undefined reference to SDL_UnlockSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x40bf):SDL_Primitives.c: undefined reference toSDL_LockSurface’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x4133):SDL_Primitives.c:
undefined reference to SDL_MapRGBA' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x4faa):SDL_Primitives.c: undefined reference toSDL_UnlockSurface’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x5310):SDL_Primitives.c:
undefined reference to SDL_LockSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Primitives.o)(.text+0x5a48):SDL_Primitives.c: undefined reference toSDL_UnlockSurface’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Window.o)(.text+0x102):SDL_Window.c:
undefined reference to SDL_CreateRGBSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Window.o)(.text+0x123):SDL_Window.c: undefined reference toSDL_SetAlpha’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Window.o)(.text+0x169):SDL_Window.c:
undefined reference to SDL_MapRGB' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Window.o)(.text+0x1cf):SDL_Window.c: undefined reference toSDL_MapRGB’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Window.o)(.text+0x519):SDL_Window.c:
undefined reference to SDL_PushEvent' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Window.o)(.text+0x544):SDL_Window.c: undefined reference toSDL_PushEvent’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Window.o)(.text+0x650):SDL_Window.c:
undefined reference to SDL_FillRect' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Window.o)(.text+0x6ff):SDL_Window.c: undefined reference toSDL_GetMouseState’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Window.o)(.text+0x7ff):SDL_Window.c:
undefined reference to SDL_CreateRGBSurfaceFrom' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Widget.o)(.text+0xdf):SDL_Widget.c: undefined reference toSDL_CreateMutex’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Widget.o)(.text+0x18c):SDL_Widget.c:
undefined reference to `SDL_mutexP’

C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Widget.o)(.text+0x1f7):SDL_Widget.c:
undefined reference to SDL_mutexV' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Widget.o)(.text+0x225):SDL_Widget.c: undefined reference toSDL_UpdateRect’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Widget.o)(.text+0x3cb):SDL_Widget.c:
undefined reference to SDL_PushEvent' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Widget.o)(.text+0x3fe):SDL_Widget.c: undefined reference toSDL_PushEvent’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Widget.o)(.text+0x44d):SDL_Widget.c:
undefined reference to SDL_PushEvent' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Widget.o)(.text+0x4d9):SDL_Widget.c: undefined reference toSDL_PushEvent’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Widget.o)(.text+0x548):SDL_Widget.c:
undefined reference to SDL_PushEvent' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Widget.o)(.text+0x5f3):SDL_Widget.c: undefined reference toSDL_FreeSurface’

C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDLTk.o)(.text+0x1b):SDLTk.c:
undefined reference to SDL_GetVideoSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDLTk.o)(.text+0xd9):SDLTk.c: undefined reference toSDL_EnableUNICODE’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDLTk.o)(.text+0xed):SDLTk.c:
undefined reference to SDL_EnableKeyRepeat' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDLTk.o)(.text+0x113):SDLTk.c: undefined reference toSDL_AddTimer’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDLTk.o)(.text+0x374):SDLTk.c:
undefined reference to SDL_AddTimer' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDLTk.o)(.text+0x3c7):SDLTk.c: undefined reference toSDL_EnableKeyRepeat’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDLTk.o)(.text+0x42d):SDLTk.c:
undefined reference to SDL_PeepEvents' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDLTk.o)(.text+0x489):SDLTk.c: undefined reference toSDL_EnableKeyRepeat’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDLTk.o)(.text+0x4b8):SDLTk.c:
undefined reference to SDL_WaitEvent' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDLTk.o)(.text+0x4ef):SDLTk.c: undefined reference toSDL_Delay’

C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDLTk.o)(.text+0x534):SDLTk.c:
undefined reference to SDL_GetVideoSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDLTk.o)(.text+0x570):SDLTk.c: undefined reference toSDL_UpdateRect’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDLTk.o)(.text+0x59d):SDLTk.c:
undefined reference to SDL_UpdateRect' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x25):SDL_Images.c: undefined reference toSDL_PushEvent’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0xf1):SDL_Images.c:
undefined reference to SDL_FreeSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x21e):SDL_Images.c: undefined reference toSDL_CreateRGBSurface’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x230):SDL_Images.c:
undefined reference to SDL_DisplayFormat' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x255):SDL_Images.c: undefined reference toSDL_UpperBlit’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x260):SDL_Images.c:
undefined reference to SDL_FreeSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x2c7):SDL_Images.c: undefined reference toSDL_AddTimer’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x36f):SDL_Images.c:
undefined reference to SDL_CreateRGBSurface' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x39b):SDL_Images.c: undefined reference toSDL_SetAlpha’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x3be):SDL_Images.c:
undefined reference to SDL_SetAlpha' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x3e6):SDL_Images.c: undefined reference toSDL_UpperBlit’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x40e):SDL_Images.c:
undefined reference to SDL_UpperBlit' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x43b):SDL_Images.c: undefined reference toSDL_SetAlpha’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x459):SDL_Images.c:
undefined reference to SDL_SetAlpha' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x470):SDL_Images.c: undefined reference toSDL_GetTicks’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x61d):SDL_Images.c:
undefined reference to SDL_UpperBlit' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x6ae):SDL_Images.c: undefined reference toSDL_UpperBlit’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x779):SDL_Images.c:
undefined reference to SDL_UpperBlit' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x879):SDL_Images.c: undefined reference toSDL_UpperBlit’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Images.o)(.text+0x9b7):SDL_Images.c:
undefined reference to SDL_AddTimer' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_Label.o)(.text+0x163):SDL_Label.c: undefined reference toSDL_FillRect’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageFrame.o)(.text+0x53):SDL_ImageFrame.c:
undefined reference to SDL_RWFromFile' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageFrame.o)(.text+0x93):SDL_ImageFrame.c: undefined reference toIMG_Load’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleDefault.o)(.text+0x10b):SDL_StyleDefault.c:
undefined reference to SDL_MapRGB' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleDefault.o)(.text+0x121):SDL_StyleDefault.c: undefined reference toSDL_FillRect’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleDefault.o)(.text+0x70b):SDL_StyleDefault.c:
undefined reference to SDL_MapRGB' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleDefault.o)(.text+0x721):SDL_StyleDefault.c: undefined reference toSDL_FillRect’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleDefault.o)(.text+0x789):SDL_StyleDefault.c:
undefined reference to SDL_MapRGB' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleDefault.o)(.text+0x79f):SDL_StyleDefault.c: undefined reference toSDL_FillRect’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleDefault.o)(.text+0xa9f):SDL_StyleDefault.c:
undefined reference to SDL_MapRGB' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleDefault.o)(.text+0xab5):SDL_StyleDefault.c: undefined reference toSDL_FillRect’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleDefault.o)(.text+0xb16):SDL_StyleDefault.c:
undefined reference to SDL_MapRGB' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleDefault.o)(.text+0xb2c):SDL_StyleDefault.c: undefined reference toSDL_FillRect’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleXP.o)(.text+0xc3):SDL_StyleXP.c:
undefined reference to `SDL_MapRGB’

C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleXP.o)(.text+0xd9):SDL_StyleXP.c:
undefined reference to `SDL_FillRect’

C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleXP.o)(.text+0x141):SDL_StyleXP.c:
undefined reference to SDL_MapRGB' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleXP.o)(.text+0x157):SDL_StyleXP.c: undefined reference toSDL_FillRect’

C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleXP.o)(.text+0x534):SDL_StyleXP.c:
undefined reference to SDL_MapRGB' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleXP.o)(.text+0x54a):SDL_StyleXP.c: undefined reference toSDL_FillRect’

C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleXP.o)(.text+0x5b2):SDL_StyleXP.c:
undefined reference to SDL_MapRGB' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_StyleXP.o)(.text+0x5c8):SDL_StyleXP.c: undefined reference toSDL_FillRect’

C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageGIF.o)(.text+0x107):SDL_ImageGIF.c:
undefined reference to SDL_SetError' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageGIF.o)(.text+0x137):SDL_ImageGIF.c: undefined reference toSDL_SetError’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageGIF.o)(.text+0x1a3):SDL_ImageGIF.c:
undefined reference to SDL_SetError' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageGIF.o)(.text+0x205):SDL_ImageGIF.c: undefined reference toSDL_SetError’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageGIF.o)(.text+0x2a3):SDL_ImageGIF.c:
undefined reference to SDL_SetError' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageGIF.o)(.text+0x2dd):SDL_ImageGIF.c: more undefined references toSDL_SetError’ follow
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageGIF.o)(.text+0x58c):SDL_ImageGIF.c:
undefined reference to SDL_SetColorKey' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageGIF.o)(.text+0x5e9):SDL_ImageGIF.c: undefined reference toSDL_SetError’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageGIF.o)(.text+0x8c6):SDL_ImageGIF.c:
undefined reference to SDL_SetError' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageGIF.o)(.text+0xd42):SDL_ImageGIF.c: undefined reference toSDL_SetError’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageGIF.o)(.text+0xe5d):SDL_ImageGIF.c:
undefined reference to SDL_SetError' C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageGIF.o)(.text+0xe94):SDL_ImageGIF.c: undefined reference toSDL_SetError’
C:/Users/Lynton/Desktop/sdltk-1.0.5/libsdltk.a(SDL_ImageGIF.o)(.text+0xf15):SDL_ImageGIF.c:
undefined reference to `SDL_CreateRGBSurface’
collect2: ld returned 1 exit status
c:\dev-cpp\bin\make.exe: *** [SDLTest.exe] Error 1

Execution terminated

Regards

Lynton
England UK

“Rogelio Nodal” wrote in message
news:9d972bed0808141147n2dbeecfnc68f8104cf4288a9 at mail.gmail.com
The whole undefined references are in the application that you are trying
to build or in the library in SDLTK? If they are undefined in the library
then it was not build >correctly but if it is in the application the
something must be mis configured. I have not taken a look at the source
code but you should make sure the library properly >exports the
definitions. I hope that helps.

Rogelio,
To be honest I don’t know whether or not the definitions within the
sdltk library are exported or not.
Certainly I haven’t done anything to make sure they are, I just took the
sdltk sourcecode and created a Dev C++ project and compiled it as a static
library.
Is there a tool I can use to check if the functions exported ?

Thanks

Lynton
England UK

Forget about the whole export thing. I forgot that you were building a
static library anyways. Are you sure though that you are building a static
library and not a shared one? I looked at the source code pretty quickly and
I did not find any signs of exporting symbols which is something required in
windows to correctly build a shared library as far as I am concerned. When
you build your static library are you also linking against the SDL
libraries.? Some how it seems to me that the SDL stuff is not getting linked
into SDLTK. Sorry for not being of much help.On Thu, Aug 14, 2008 at 3:31 PM, Lynton wrote:

“Rogelio Nodal” <@Rogelio_Nodal> wrote in message

news:9d972bed0808141147n2dbeecfnc68f8104cf4288a9 at mail.gmail.com
The whole undefined references are in the application that you are trying
to build or in the library in SDLTK? If they are undefined in the library
then it was not build >correctly but if it is in the application the
something must be mis configured. I have not taken a look at the source
code but you should make sure the library properly >exports the definitions.
I hope that helps.

Rogelio,
To be honest I don’t know whether or not the definitions within the sdltk
library are exported or not.
Certainly I haven’t done anything to make sure they are, I just took the
sdltk sourcecode and created a Dev C++ project and compiled it as a static
library.
Is there a tool I can use to check if the functions exported ?

Thanks

Lynton
England UK


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Rogelio Nodal

Paul,
OK, here we go with the compile log from Dev CPP:-

Link order is this

-lmingw32
-lSDLmain
-lSDL
-lSDL_image
-lSDL_gfx
-lfreetype.dll
-lsdltk
-lopengl32
-lglu32

OK, looking through that I realised that all the errors looked like the kind of errors you get when you’re statically linking, except I know those are referring to .dlls. Turns out you have to go through an extra step when creating a static lib that depends on dynamic libs, that is you have to link the static lib to the dynamic ones when you create it. As it is, the linker is expecting libsdltk.o to already have everything linked in and will only link libraries with the main program now, which is why it’s complaining.

It may be as simple as adding all the -lSDL and the rest that it depends on to the command for creating the library, recompiling and using that. So long as it’s told it’s creating a lib it should still behave. I’m also unsure as to whether you’ll have to link them again for the main program if you want to use them directly but you shouldn’t need anything that is being used through sdltk unless it’s being used in another part of your program.

Personally I’d try getting away with the bare minimum but as sdltk is trying to import symbols from SDL, SDL_image, SDL_gfx and freetype.dll rather than export them you’ll probably have to link them against the main program as well if you use them outside of the sdltk functions.

Well, I’m slightly out of my depth here not having written a library yet so if this doesn’t solve it, it’s up in the air whether I can help any further but let us know how it goes and maybe someone else will be able to step in.— On Thu, 8/14/08, Lynton wrote:

Hey Lynton,

I just gave a glance at the source… I saw that the SDLTK-specific headers do not actually export their functions. I don’t know if you’ve worked on that yet, but you can look at SDL_Primitives.h, since that’s from SDL_gfx, for a way to do it. Also, if you’re building this with a C++ compiler, you need to ensure that the function prototypes are in an extern “C” block (like in SDL_Primitives.h) to prevent name-mangling. If you don’t do that, it will compile fine, but linking will never find the functions.

Jonny D> To: sdl at libsdl.org

From: lyntontowler at gmail.com
Date: Thu, 14 Aug 2008 14:29:38 +0100
Subject: [SDL] SDLTK 1.0.5 GUI Help please

Hi,
I have only just started playing around with SDL but have already
decided I want a fairly fully fledged GUI in my SDL projects.
For the GUI I have chosen SDLTK
(http://developer.berlios.de/projects/sdltk/) because although I haven’t
actually seen it in action the source code looks to have all the Widgets I’d
ever need plus of course I can tweak it a little if it isn’t exactly what I
want :slight_smile:

I’m developing my apps on Windows with Bloodshed Dev C++ and some extra
DevPaks for simplicity at this stage.
I’ll replace the DevPaks with the latest versions of the software once I
have things basically working.

I have freetype2.1.10-1, libiconv1.8-1, libjpeg6b-4, libpng1.2.8,
libtiff3.6.1-2, libxml2.6.23, SDL1.2.12, SDL_gfx2.0.13,
SDL_image1.2.4 and zlib1.2.3 Devpaks installed. Most of these seemed to be
needed by SDLTK.

I am able to quite happily compile and run basic SDL (including openGL)
applications without any problems.

At this point I tried to get the GUI working so I downloaded SDLTK 1.0.5,
created a Dev C++ project and after a bit of playing around I finally got it
to compile with no errors or warnings and a libsdltk.a shared library was
generated.

I had to make the following modifications to the sourcecode:-

In SDL_GLPrimitives.c
void drawwind()
Changed int id; ----------> GLuint id;

In SDL_Window.h
Changed void SDL_WindowRedraw(); ---------> void SDL_WindowRedraw(SDL_Window
*Window);

If I make a basic SDL application and add an include for SDLTk.h and link
with libsdltk.a the compile is fine but the linker complains with the
following messages several times over:-

[Linker error] undefined reference to SDL_LockSurface' [Linker error] undefined reference toSDL_UnlockSurface’
[Linker error] undefined reference to `SDL_MapRGBA’

I don’t understand whats going on as I am linking with the following:-
-lmingw32
-lsdltk
-lSDL_image
-lSDLmain
-lSDL
-lSDL_gfx
-lfreetype.dll
-lopengl32
-lglu32

i have tried changing the order the librararies are listed plus removing
some of them all to no avail.
When using SDLTk do I need to link against all that lot or do I just need
the -lsdltk ?

Sorry its a lot of info for a kick off but I am really really hoping someone
can help out here.

Thanks so much in advance for any help you can offer

Lynton
England UK


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Got Game? Win Prizes in the Windows Live Hotmail Mobile Summer Games Trivia Contest
http://www.gowindowslive.com/summergames?ocid=TXT_TAGHM

“Paul Duffy” wrote in message
news:810508.59093.qm at web24203.mail.ird.yahoo.com

OK, looking through that I realised that all the errors looked like the
kind of errors you get when you’re statically linking, except I know those
are referring to .dlls. Turns out you have to go through an extra step
when creating a static lib that depends on dynamic libs, that is you have
to link the static lib to the dynamic ones when you create it. As it is,
the linker is expecting libsdltk.o to already have everything linked in
and will only link libraries with the main program now, which is why it’s
complaining.

It may be as simple as adding all the -lSDL and the rest that it depends
on to the command for creating the library, recompiling and using that. So
long as it’s told it’s creating a lib it should still behave. I’m also
unsure as to whether you’ll have to link them again for the main program
if you want to use them directly but you shouldn’t need anything that is
being used through sdltk unless it’s being used in another part of your
program.

Personally I’d try getting away with the bare minimum but as sdltk is
trying to import symbols from SDL, SDL_image, SDL_gfx and freetype.dll
rather than export them you’ll probably have to link them against the main
program as well if you use them outside of the sdltk functions.

Well, I’m slightly out of my depth here not having written a library yet
so if this doesn’t solve it, it’s up in the air whether I can help any
further but let us know how it goes and maybe someone else will be able to
step in.

Paul,
Right, I think I have is sorted :slight_smile:
To compile the library I link with -lmingw32 only and
include -Dmain=SDL_main as a compiler option.

For each SDL project I create where I need to use SDLTK I need to do the
following:-

  1. #include <SDLTk.h>
  2. Add -Dmain=SDL_main as a compiler option
  3. Link with some or all of the following depending on whether or not openGL
    is needed for example:-
    -lmingw32
    libxml2.lib
    libsdltk.a
    -lSDLmain
    -lSDL_image
    -lSDL
    -lfreetype
    -lopengl32
    -lglu32
  4. Make sure some or all of the following DLL’s exist depending on
    requirements:-
    freetype6.dll
    jpeg62.dll
    libpng12.dll
    libsdltk.a
    SDL.dll
    tiff.dll
    zlib1.dll

Thanks so much for your help and advice, it certainly got me thinking about
the way I was doing things and ultimately led to a solution.

Regards

Lynton
England UK

“Rogelio Nodal” wrote in message
news:9d972bed0808141626k6426b424o76d60953b0e0a214 at mail.gmail.com
Forget about the whole export thing. I forgot that you were building a
static library anyways. Are you sure though that you are building a static
library and not a shared >one? I looked at the source code pretty quickly
and I did not find any signs of exporting symbols which is something
required in windows to correctly build a shared >library as far as I am
concerned. When you build your static library are you also linking against
the SDL libraries.? Some how it seems to me that the SDL stuff is not

getting linked into SDLTK. Sorry for not being of much help.

Rogelio,
As you can probably see in another post to this group I (along with some
help) managed to solve the problem.
I rebuilt the library by only linking it against -lmingw32 rather than all
the other stuff I originally had in there so my guess is things were simply
getting confused.

Regards

Lynton
England UK