Search:

Type: Posts; User: kerryhall

Search: Search took 0.00 seconds.

  1. Replies
    24
    Views
    11,835

    Thanks to everyone for their help! ld...

    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...
  2. Replies
    24
    Views
    11,835

    Thanks to everyone for your help! :) The...

    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...
  3. Replies
    24
    Views
    11,835

    Sorry in advance for the extra wide post! ...

    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...
  4. Replies
    24
    Views
    11,835

    Yes, I can run any program called main.

    Yes, I can run any program called main.
  5. Replies
    24
    Views
    11,835

    programs created with gcc work fine. Am I...

    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...
  6. Replies
    24
    Views
    11,835

    mv works. every file manipulation tool, such as...

    mv works. every file manipulation tool, such as ls, mv, cp, works fine on it. is this a bug with linux??
  7. Replies
    24
    Views
    11,835

    The file definitely exists, I have tried changing...

    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",...
  8. Replies
    24
    Views
    11,835

    ls -lb gives the same result as ls -l and ./m...

    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!
  9. Replies
    24
    Views
    11,835

    Here is the session: ...

    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...
  10. Replies
    24
    Views
    11,835

    ld: No such file or directory

    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...
Results 1 to 10 of 10