,---
| Frank
,---
I'm not sure I really "get" all that Cygwin is doing for us (which is why I suggested Mingw, even though I haven't tried it). Why should we need "cygwin1.dll"? We "should" have "printf" and "scanf" in a Windows API? No? "msvcrt.dll" or some such? I don't know how to tell gcc to use that. "-lmsvcrt"?...
,---
| Anonymous
,---
Ok.. i typed in "gcc -o prime.exe prime.obj"
in Cygwin in the right directory
`---
Cygwin "mimics" a Linux environment. This means your executables should be ELF format. So, follow the Linux compile/link instructions when using Cygwin:
; For Linux:
; nasm -f elf32 -o prime.o prime.asm
; gcc -o prime prime.o
Nathan.