Hi  :mrgreen:

I have the following problem.
i can assemble the program without any errors but when i try to link it with tlink32.exe then this error appears : "Fatal: Bad loc for fixupp in module 'inkballtrainer.obj' near file offset 1e0"

My question now is how am i able to find the mistake in the source?

Posted on 2009-02-18 12:14:31 by Mr. Psycho
It's linker's problem, not assembler's. What is your version of tlink32? What are you trying to link? This problem is usually related to linking a 16-bit module using 32-bit linker, or to (more frequently seen by novices) trying to assemble/link a source which is partially 16-bit and partially 32-bit.
Posted on 2009-02-18 13:08:59 by ti_mo_n
Ok i accidently wrote five times dx instead of edx  :lol:

Edit: I now get a new error. I'm using this batch script to compile the .asm file:

tasm32 /z /ml /m3 %1.asm,,;
tlink32 -Tpe -c %1,%1,, import32

When i use it this error appears : "Fatal: Unable to open file 'import32.lib'"

Posted on 2009-02-18 13:34:52 by Mr. Psycho
Make sure that import32.lib is in the same directory where the tlink32 is OR where the source being built is.
Posted on 2009-02-19 01:36:03 by ti_mo_n
It worked!

Thank you so much  :D
Posted on 2009-02-19 06:09:09 by Mr. Psycho