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 To: cygwin AT cygwin DOT com From: "Alex Vinokur" Subject: Re: help with gcc (a.exe & cygwin1.dll) Date: Fri, 19 Mar 2004 08:41:57 +0200 Lines: 52 Message-ID: References: X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: 82-166-123-145.barak.net.il X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 "Dave Korn" wrote in message news:NUTMEGNRXd2y0z3WtE90000019b AT NUTMEG DOT CAM DOT ARTIMI DOT COM... > > > > -----Original Message----- > > From: cygwin-owner On Behalf Of Neto, Antonio Jose Rodrigues > > Sent: 18 March 2004 13:51 > > > After this gcc -o hello hello.c > > > > Now, I need to send this program to another person that don't > > have cygwin1.dll. So, they cannot execute the exe file > > without the dll. > > > > Is is possible to generate a exe file that don't needs the > > dll of cygwin? > > gcc -o hello -mno-cygwin hello.c > > [insert generic RTFF comment here] > ------ foo.c ------ #include int main () { struct utsname u; return 0; } ------------------- $ gcc foo.c $ cygcheck a.exe Found: .\a.exe a.exe C:\cygwin\bin\cygwin1.dll C:\WINNT\System32\KERNEL32.dll C:\WINNT\System32\NTDLL.DLL If we send the a.exe and cygwin1.dll to another person, could he execute a.exe? Where he should set cygwin1.dll ? -- Alex Vinokur mailto:alexvn AT connect DOT to http://mathforum.org/library/view/10978.html -- 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/