X-Spam-Check-By: sourceware.org Date: Wed, 18 Oct 2006 08:02:55 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: gcc & mingw code? Message-ID: <20061018120255.GB1327@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20061018023521 DOT GA13096 AT trixie DOT casa DOT cgf DOT cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 On Wed, Oct 18, 2006 at 11:41:51AM +0000, Mike wrote: >On 2006-10-18, Christopher Faylor wrote: >> On Wed, Oct 18, 2006 at 02:22:23AM +0000, Mike wrote: >>>Does someone have a bit of code that can be compiled static and mingw >>>(the way I understand it) to remove all cygwin dependencies that will >>>run as a windows (xp) service for starting vbscripts? I cannot install >>>cygwin on all my windows boxes and have a limit to how large an >>>executable I can install on the boxes. I do not want to muck with the >>>registry beyond installing the service. Having the program read from a >>>file what vbscript to start and other run-time parameters is ok with >>>me. >> >> This mailing list is really not intended to discuss how not to use >> Cygwin. If you want to use MinGW, please ask questions in the mingw >> mailing list. > >However the question is how to use cygwin to create a program that >works in a windows environment as a stand-alone executable. That >program would be compiled by gcc under cygwin, hence it is a cygwin >question. 1) You can't produce a "static" Cygwin binary. 2) You can't use MinGW to provide full linux/POSIX functionality. 3) You *can* use the -mno-cygwin option to gcc to produce "MinGW" binaries but the limit of support you are going to receive in this mailing list for MinGW questions is to be told that the option -mno-cygwin exists. It may or may not do what you want, but if it doesn't, or you have more detailed questions about MinGW, then use the MinGW mailing list. cgf -- 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/