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: mainCRTstartup warning in ld


Adam Miedzi?ski wrote:

> when i link with "ld" it shows warning about mainCRTstartup 

Because the C runtime startup files expect that your code has a main()
function.

> when i try to run .. it crashes before code executed!

You appear to be trying to do *nix type syscalls.  That won't work. 
Windows does not use int 80 to call into the kernel.  If you are trying
to follow some kind of assembly language tutorial for linux or BSD then
you'll need to actually run this on a linux or BSD system.  Cygwin
provides compatibility on an API level only, not at the level of
syscalls.

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]