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 X-Originating-IP: [203.29.131.24] X-Originating-Email: [arashp AT hotmail DOT com] From: "Arash Partow" To: cygwin AT cygwin DOT com Subject: Re: Segmentation fault with all c programs Date: Tue, 11 Nov 2003 18:18:51 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 Nov 2003 18:18:51.0659 (UTC) FILETIME=[423585B0:01C3A880] I tried your code, it compiles and runs ok, there is no problem! If i was you i would try the following: 1. make sure there is only 1 location on your pc where cygwin1.dll can be found, it should be cygwin/bin/cygwin1.dll + make sure you have the latest cygwin1.dll (1.5.5-1) 2. download the latest gcc and frontend (gcc 3.3.1-2 cygming release) 3. use -g in your compilation string then using gdb see where the program crashes 4. if all else fails try to give this ml more info about what the segmentation fault actually is, when a seg fault occurs gcc gives a 1 line description of what kind of seg fault it is... Regards Arash >Hi, > >Each C program that I compile with gcc causes a segmentation fault. Even >such simple and harmless programs: > > void funct() { > } > > int main() { > funct(); > return 0; > } >With compilation I don?t get any warnings or errors. I tried it with gcc >version 3.2.1 and version 2.95. In both cases I have the same problem. I?m >using WinXP. > >Any Ideas? > >Michael _________________________________________________________________ Hot chart ringtones and polyphonics. Go to http://ninemsn.com.au/mobilemania/default.asp -- 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/