delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Eric Lilja <mindcooler AT gmail DOT com> |
Subject: | Re: Segmentation fault with winmm library |
Date: | Tue, 19 Jun 2007 10:55:02 +0200 |
Lines: | 60 |
Message-ID: | <f585l2$i4o$1@sea.gmane.org> |
References: | <OF02D0CE14 DOT 90D7DAE3-ONC12572FF DOT 002E124F-C12572FF DOT 0030396A AT sennheiser DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Thunderbird 2.0.0.4 (Windows/20070604) |
In-Reply-To: | <OF02D0CE14.90D7DAE3-ONC12572FF.002E124F-C12572FF.0030396A@sennheiser.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Guy DOT Eschemann AT Sennheiser DOT com wrote: > > Hi, > > when trying to run the following program, which uses the windows winmm > library: > > --- > #include <stdio.h> > #include <windows.h> > > int main(void) > { > // a library call to make sure winmm gets loaded > TIMECAPS tc ; > timeGetDevCaps (&tc, sizeof (TIMECAPS)); > > printf("hello world\n"); > > return 0; > } > --- > > compiled with the following command: > > g++ main.cc /usr/lib/w32api/libwinmm.a -Wall -g -O0 > > I get a segmentation fault under gdb: [snip] Not reproducible at all for me: hivemind AT mindcooler ~ $ g++ -o bar foo.cpp -Wall -O0 -g -lwinmm hivemind AT mindcooler ~ $ gdb bar.exe GNU gdb 6.5.50.20060706-cvs (cygwin-special) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-cygwin"... (gdb) run Starting program: /home/hivemind/bar.exe Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll Loaded symbols for /usr/bin/cygwin1.dll Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll Loaded symbols for /cygdrive/c/WINDOWS/system32/winmm.dll Loaded symbols for /cygdrive/c/WINDOWS/system32/user32.dll Loaded symbols for /cygdrive/c/WINDOWS/system32/gdi32.dll hello world Program exited normally. (gdb) - Eric -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |