Bah

Steven Wong writes:

Hello,

When I make, I am getting this error:

[swong at noescape ~/megazook]$ make
gcc -D_REENTRANT -I./src/include -I./src/include/sdl ./src/main.c
./src/init.c ./src/graphics.c -lpthread -lSDL -o ./export/megazook
/usr/lib/libSDL.a(load.o): In function SDL_LoadLibrary': load.o(.text+0x161): undefined reference todlopen’
load.o(.text+0x186): undefined reference to dlopen' load.o(.text+0x195): undefined reference todlerror’
/usr/lib/libSDL.a(load.o): In function SDL_LoadSym': load.o(.text+0x201): undefined reference todlsym’
load.o(.text+0x20e): undefined reference to dlerror' /usr/lib/libSDL.a(load.o): In functionSDL_UnloadLibrary’:
load.o(.text+0x267): undefined reference to `dlclose’
make: *** [megazook] Error 1

Now my knowledge wit all this stuff is nothing :> All I know is how to
use functions, declare variables etc :>

you need a -ldl in your link command (kinda like the lSDL), that loads
a library called libdl from your lib paths…the dl library is for
dynamic linking of libraries…I don’t know why it’s not in your make
and i have no time at current to check mine, ill help you more later
if you can’t get that working…

jeff

Hello,

When I make, I am getting this error:

[swong at noescape ~/megazook]$ make
gcc -D_REENTRANT -I./src/include -I./src/include/sdl ./src/main.c
./src/init.c ./src/graphics.c -lpthread -lSDL -o ./export/megazook
/usr/lib/libSDL.a(load.o): In function SDL_LoadLibrary': load.o(.text+0x161): undefined reference todlopen’
load.o(.text+0x186): undefined reference to dlopen' load.o(.text+0x195): undefined reference todlerror’
/usr/lib/libSDL.a(load.o): In function SDL_LoadSym': load.o(.text+0x201): undefined reference todlsym’
load.o(.text+0x20e): undefined reference to dlerror' /usr/lib/libSDL.a(load.o): In functionSDL_UnloadLibrary’:
load.o(.text+0x267): undefined reference to `dlclose’
make: *** [megazook] Error 1

Now my knowledge wit all this stuff is nothing :> All I know is how to
use functions, declare variables etc :>

Thanks.–
}|B3 (-_-) :> (=& O_O

Steven Wong
NoEscape

e-mail: noescape at letterbox.com
uin: 15266574

X-(

[swong at noescape ~/megazook]$ make
gcc -D_REENTRANT -I./src/include -I./src/include/sdl ./src/main.c
./src/init.c ./src/graphics.c -lpthread -lSDL -o ./export/megazook

This line should have -ldl added to it…

gcc -D_REENTRANT -I./src/include -I./src/include/sdl ./src/main.c
./src/init.c ./src/graphics.c -lpthread -lSDL -ldl -o ./export/megazook

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

ah, i c.

geez. i had a strong feeling it was gonna be a simple answer. it was
in the docs rite? Sorry i had to ask it, time was something AM, i had
school the next day (infact, that morning :>) and after a few hours
changing from svgalib to sdl and then finding this… i gotta sorta sad
:>

Steven Wong wrote:>

Hello,

When I make, I am getting this error:

[swong at noescape ~/megazook]$ make
gcc -D_REENTRANT -I./src/include -I./src/include/sdl ./src/main.c
./src/init.c ./src/graphics.c -lpthread -lSDL -o ./export/megazook
/usr/lib/libSDL.a(load.o): In function SDL_LoadLibrary': load.o(.text+0x161): undefined reference todlopen’
load.o(.text+0x186): undefined reference to dlopen' load.o(.text+0x195): undefined reference todlerror’
/usr/lib/libSDL.a(load.o): In function SDL_LoadSym': load.o(.text+0x201): undefined reference todlsym’
load.o(.text+0x20e): undefined reference to dlerror' /usr/lib/libSDL.a(load.o): In functionSDL_UnloadLibrary’:
load.o(.text+0x267): undefined reference to `dlclose’
make: *** [megazook] Error 1

Now my knowledge wit all this stuff is nothing :> All I know is how to
use functions, declare variables etc :>

Thanks.


}|B3 (-_-) :> (=& O_O

Steven Wong
NoEscape

e-mail: noescape at letterbox.com
uin: 15266574

X-(


}|B3 (-_-) :> (=& O_O

Steven Wong
NoEscape

e-mail: noescape at letterbox.com
uin: 15266574

X-(