mainCRTstartup warning in ld

Brian Dessent brian@dessent.net
Sat Mar 25 14:18:00 GMT 2006


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/



More information about the Cygwin mailing list