X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org From: Haojun Bao To: cygwin AT cygwin DOT com Subject: Re: Using cygwin headers/libraries in MS compiled programs References: <001b01ca8a03$90bfe2f0$b23fa8d0$@calgacus.com> Date: Thu, 31 Dec 2009 23:32:59 +0800 In-Reply-To: <001b01ca8a03$90bfe2f0$b23fa8d0$@calgacus.com> (Neil Mowbray's message of "Thu, 31 Dec 2009 18:25:20 +0800") Message-ID: <7v3a2rf9as.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (cygwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: 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 writes: > Folks, > > Apologies for the dumb question and please re-direct if there is a better > forum. > > How do I use cygwin *.h and *.dll in MS console programs? > > If I include in a MS program I get many conflicts between > the cygwin CRT and MS CRT stuff. Is my only options to "port" the headers > to MS and dynamically load the cygwin functions with LoadLibrary()? > > What calling conventions do I need for cygwin functions in MS compiled > code? > > All I really want is cygwin_conv_path() so that my MS programs can accept > cygwin paths. Why not just wright a bash script to invoke your program like: prog.exe "`cygpath -alw _path_`" This way, no matter whether is _path_ in Posix or Win32 format, you can get what you want. > > Regards, Neil > > > > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple