How can I dynamically link to the following library ?: SDL_ttf

Hello SDLers !

im new to DEV-C++ and I managed to compile and link a programm, which
uses the libraries “SDL” and “SDL_TTF”.
The resulting executable is 929 kb in size (with no debugger
information & with best optimization).
Cause of the size, I’m not sure if both libs are really dynamically linked ?

Is it right, that they are dynamically linked, when I include the
following linker parameters (g++ is used) ?:
-lSDL_ttf -lSDL

I noticed, that when the SDL.dll isn’t available, that Windows or the
executable gives a message about not finding the SDL.dll (so for me it
is dynamically linked).

==> But I get NO message concerning a missing SDL_ttf.dll when it is
renamed to another name !
Is this library really dynamically linked ?

Can somebody try to help me with this ?

Greetings
Alexander G?nzel

Alexander,

This may or may not help but… There’s a handy (free) application called Dependency Walker that tells you what DLL dependencies your exe uses.

Gerald> ----- Original Message -----

From: sdl-bounces+gerald.kaszuba=apnoutdoor.com.au@libsdl.org
[mailto:sdl-bounces+gerald.kaszuba=apnoutdoor.com.au at libsdl.org]On
Behalf Of Alexander G?nzel
Sent: Friday, 24 September 2004 3:48 AM
To: sdl at libsdl.org
Subject: [SDL] How can I dynamically link to the following library ?:
SDL_ttf

Hello SDLers !

im new to DEV-C++ and I managed to compile and link a programm, which
uses the libraries “SDL” and “SDL_TTF”.
The resulting executable is 929 kb in size (with no debugger
information & with best optimization).
Cause of the size, I’m not sure if both libs are really dynamically linked ?

Is it right, that they are dynamically linked, when I include the
following linker parameters (g++ is used) ?:
-lSDL_ttf -lSDL

I noticed, that when the SDL.dll isn’t available, that Windows or the
executable gives a message about not finding the SDL.dll (so for me it
is dynamically linked).

==> But I get NO message concerning a missing SDL_ttf.dll when it is
renamed to another name !
Is this library really dynamically linked ?

Can somebody try to help me with this ?

Greetings
Alexander G?nzel


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hello !

This may or may not help but… There’s a handy (free) application
called Dependency Walker that tells you what DLL dependencies your exe uses.

Look at http://www.dependencywalker.com/ !

CU

Many thanks Gerald and Torsten !
This programm is new to me and I downloaded it for future use. :smiley:

Btw., I have found a solution for my problem.
You can read all and more at:
http://sdldoc.csn.ul.ie

Search there for the date “2004-09-24 01:27:58”. Under this date you can

read my solution and advice for other newbies.

Gerald Kaszuba wrote:> Alexander,

This may or may not help but… There’s a handy (free) application called Dependency Walker that tells you what DLL dependencies your exe uses.

Gerald

-----Original Message-----
From: sdl-bounces+gerald.kaszuba=apnoutdoor.com.au at libsdl.org
[mailto:sdl-bounces+gerald.kaszuba=apnoutdoor.com.au at libsdl.org]On
Behalf Of Alexander G?nzel
Sent: Friday, 24 September 2004 3:48 AM
To: sdl at libsdl.org
Subject: [SDL] How can I dynamically link to the following library ?:
SDL_ttf

Hello SDLers !

im new to DEV-C++ and I managed to compile and link a programm, which
uses the libraries “SDL” and “SDL_TTF”.
The resulting executable is 929 kb in size (with no debugger
information & with best optimization).
Cause of the size, I’m not sure if both libs are really dynamically linked ?

Is it right, that they are dynamically linked, when I include the
following linker parameters (g++ is used) ?:
-lSDL_ttf -lSDL

I noticed, that when the SDL.dll isn’t available, that Windows or the
executable gives a message about not finding the SDL.dll (so for me it
is dynamically linked).

==> But I get NO message concerning a missing SDL_ttf.dll when it is
renamed to another name !
Is this library really dynamically linked ?

Can somebody try to help me with this ?

Greetings
Alexander G?nzel


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Many thanks Gerald and Torsten !
This programm is new to me and I downloaded it for future use. :smiley:

Btw., I have found a solution for my problem.
You can read all and more at:
http://sdldoc.csn.ul.ie

Search there for the date “2004-09-24 01:27:58”. Under this date you can
read my solution and advice for other newbies.

Gerald Kaszuba wrote:

Alexander,

This may or may not help but… There’s a handy (free) application
called Dependency Walker that tells you what DLL dependencies your
exe uses.

Gerald

[mailto:sdl-bounces+gerald.kaszuba=apnoutdoor.com.au at libsdl.org]On
Behalf Of Alexander G?nzel
SDL_ttf

Hello SDLers !

im new to DEV-C++ and I managed to compile and link a programm, which
uses the libraries “SDL” and “SDL_TTF”.
The resulting executable is 929 kb in size (with no debugger
information & with best optimization).
Cause of the size, I’m not sure if both libs are really dynamically
linked ?

Is it right, that they are dynamically linked, when I include the
following linker parameters (g++ is used) ?:
-lSDL_ttf -lSDL

I noticed, that when the SDL.dll isn’t available, that Windows or the
executable gives a message about not finding the SDL.dll (so for me it
is dynamically linked).

==> But I get NO message concerning a missing SDL_ttf.dll when it is
renamed to another name !
Is this library really dynamically linked ?

Can somebody try to help me with this ?

Greetings
Alexander G?nzel


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
On your notes on the site: stdout.txt and stderr.txt do not normally get deleted if they actually contain something when the program exits. Also, I have successfully compiled programs in Dev-C++ that dynamically link the libraries by compiling all the libraries myself using msys and mingw (command line) and then using those as my dependencies under the lib and include directories. TomT64 Alexander G?nzel wrote:

-----Original Message-----
From: sdl-bounces+gerald.kaszuba=apnoutdoor.com.au at libsdl.org
Sent: Friday, 24 September 2004 3:48 AM
To: sdl at libsdl.org
Subject: [SDL] How can I dynamically link to the following library ?:

Thanks TomT64,

for your remark towards my notes about stdout.txt & stderr.txt I have to
admit, that you’re right, with what you wrote.
I tested it again and the stdout.txt indeed doesn’t get deleted, when I
write text to cout.
I don’t know why I didn’t noticed this before ? Maybe I thought that it
contains debug output for the developers of SDL and deleted it, without
opening it in a texteditor ?

So I can drop my handling with debugfile(fstream).

Alex =)------------------------------------------

TomT64 wrote:

On your notes on the site: stdout.txt and stderr.txt do not normally get deleted if they actually contain something when the program exits. Also, I have successfully compiled programs in Dev-C++ that dynamically link the libraries by compiling all the libraries myself using msys and mingw (command line) and then using those as my dependencies under the lib and include directories. TomT64 Alexander G?nzel wrote:

Many thanks Gerald and Torsten !
This programm is new to me and I downloaded it for future use. :smiley:

Btw., I have found a solution for my problem.
You can read all and more at:
http://sdldoc.csn.ul.ie

Search there for the date “2004-09-24 01:27:58”. Under this date you can
read my solution and advice for other newbies.

Gerald Kaszuba wrote:

Alexander,

This may or may not help but… There’s a handy (free) application
called Dependency Walker that tells you what DLL dependencies your
exe uses.

Gerald

-----Original Message-----
From: sdl-bounces+gerald.kaszuba=apnoutdoor.com.au at libsdl.org
[mailto:sdl-bounces+gerald.kaszuba=apnoutdoor.com.au at libsdl.org]On
Behalf Of Alexander G?nzel
Sent: Friday, 24 September 2004 3:48 AM
To: sdl at libsdl.org
Subject: [SDL] How can I dynamically link to the following library ?:
SDL_ttf

Hello SDLers !

im new to DEV-C++ and I managed to compile and link a programm, which
uses the libraries “SDL” and “SDL_TTF”.
The resulting executable is 929 kb in size (with no debugger
information & with best optimization).
Cause of the size, I’m not sure if both libs are really dynamically
linked ?

Is it right, that they are dynamically linked, when I include the
following linker parameters (g++ is used) ?:
-lSDL_ttf -lSDL

I noticed, that when the SDL.dll isn’t available, that Windows or the
executable gives a message about not finding the SDL.dll (so for me it
is dynamically linked).

==> But I get NO message concerning a missing SDL_ttf.dll when it is
renamed to another name !
Is this library really dynamically linked ?

Can somebody try to help me with this ?

Greetings
Alexander G?nzel


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl