X-Spam-Check-By: sourceware.org Message-ID: <4424D28C.7B2C459A@dessent.net> Date: Fri, 24 Mar 2006 21:18:04 -0800 From: Brian Dessent MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: mainCRTstartup warning in ld References: <3e71ff790603242016n784b8039n AT mail DOT gmail DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/