newbie question about NASM
From: John Smith (spamtrap_at_crayne.org)
Date: 02/25/05
- Next message: Teis Draiby: "How can I convert RGB16 to BGRA colors using SSE2?"
- Previous message: hutch--: "Re: Compilation mistake with a C and ASM programs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 24 Feb 2005 23:11:39 +0000 (UTC)
I am a student of assembly language. They are teaching me in MASM, and the
..LIB file they have given me was made with MASM.
I have been playing around with NASM, in my limited ways, and have found it
much easier to use. So I have been taking the code from the book, and
rewriting the MASM code to NASM with great success. However, I am at the
point in the book where it starts to use the library, and I cannot for the
life of me get it to link. I tried MASM's linker, and it complains about my
OBJ file, I used "nasm -f obj file.asm" to compile. I am using ALINK for
NASM, and when I try to link, it says "Error in file at 0000009C - start
address defined in more than one module." Linking with "alink -oEXE
file.obj file2.lib"
In MASM, the book uses: _data segment word public 'data'
In NASM, I've been using: segment data public
In the book, they reference to the library funtion like this: EXTRN
CRLF:NEAR
but I had trouble with that, so I've been referencing to the library funtion
like this: EXTERN CRLF
I would have hoped that it would be easy to use libraries made with
different compilers, with NASM.
I was hoping it was just me, but I will use MASM if I can not figure out how
to use 3rd party libraries.
Thanks to anyone how can help.
Keyboard Smasher.
- Next message: Teis Draiby: "How can I convert RGB16 to BGRA colors using SSE2?"
- Previous message: hutch--: "Re: Compilation mistake with a C and ASM programs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|