linker problems
Posted: Mon Apr 14, 2008 4:54 pm
I use cygwin as a compiler, nasm as an assembler and ld as a linker.
I can easily jump to a c function from the assembler code, but i cannot go the other way round, the linker always gives an undefined referene error.
I have put a leading underscore in my asm code and i have defined my asm function as extern in my c code (and yes i have checked i haven't missed copied my functions name), but i still get a linker error.
There are no other assembler, compiler or linking errors.
Any ideas what the problem might be?
Thanks in advance,
Jules
I can easily jump to a c function from the assembler code, but i cannot go the other way round, the linker always gives an undefined referene error.
I have put a leading underscore in my asm code and i have defined my asm function as extern in my c code (and yes i have checked i haven't missed copied my functions name), but i still get a linker error.
There are no other assembler, compiler or linking errors.
Any ideas what the problem might be?
Thanks in advance,
Jules