This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linking Assembly Code - Can't resolve printf


David Lariviere wrote:

>         movl $0, %ebx
>         movl $1, %eax
>         int $0x80
> ...
> 
> I've tried linking in numerous libraries, hoping one would resolve printf,
> and in numerous order of where to include the -lxxx, but I can't get it to
> compile. I've also tried it on numerous computers, including those with a
> first-time fresh install of cygwin. Compiling a simple helloworld C program
> works fine.

Even if you were able to resolve printf this code will never work.  Int
0x80 is how syscalls work on linux but it is completely different under
Windows.  Cygwin offers API not ABI compatibility.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]