Thanks to everyone for their help!
ld -dynamic-linker /lib/ld-linux.so.2 -o main main.o /usr/lib/libSDL.so /usr/lib/libGL.so /usr/lib/libGLU.so
produces a executable that runs!
So I guess I...
Type: Posts; User: kerryhall
Thanks to everyone for their help!
ld -dynamic-linker /lib/ld-linux.so.2 -o main main.o /usr/lib/libSDL.so /usr/lib/libGL.so /usr/lib/libGLU.so
produces a executable that runs!
So I guess I...
Thanks to everyone for your help! :)
The version linked with gcc runs.
The version linked with ld produces the error.
I must be making an error with the linking, but I can not understand why...
Sorry in advance for the extra wide post!
kerry@BigOwl:~/Programming/x86_asm/extern_func_03$ gcc -v -s -o main main.o /usr/lib/libGL.so /usr/lib/libGLU.so /usr/lib/libSDL.so
Using built-in...
Yes, I can run any program called main.
programs created with gcc work fine.
Am I linking right?
my assembling and linking commands:
nasm -f elf main.asm
ld -s -o main main.o /usr/lib/libGL.so /usr/lib/libGLU.so...
mv works. every file manipulation tool, such as ls, mv, cp, works fine on it. is this a bug with linux??
The file definitely exists, I have tried changing the name and everything. Here is the output from strace:
kerry@BigOwl:~/Programming/x86_asm/extern_func_03$ strace ./main
execve("./main",...
ls -lb gives the same result as ls -l
and ./m tab causes it to auto complete with ./main (but still giving me the same error when i run it!)
thanks!
Here is the session:
kerry@BigOwl:~/Programming/x86_asm/extern_func_03$ ls
main.asm main.asm~ makefile makefile~
kerry@BigOwl:~/Programming/x86_asm/extern_func_03$ make
nasm -f elf main.asm...
Hello all!
I am writing a program in x86 asm, using nasm syntax, and using opengl and sdl. I assemble my program with:
nasm -f elf main.asm
and link with:
ld -o main main.o /usr/lib/libGL.so...