Re: Segmentation fault with winmm library

2007-06-19 Thread Brian Dessent
[EMAIL PROTECTED] wrote: > compiled with the following command: > > g++ main.cc /usr/lib/w32api/libwinmm.a -Wall -g -O0 > > I get a segmentation fault under gdb: You should use "-lwinmm" and not "/usr/lib/w32api/libwinmm.a". There's no need to specify an absolute path to the import library, an

Antwort: RE: Segmentation fault with winmm library

2007-06-19 Thread Guy . Eschemann
That solved the problem. Many thanks, Guy. "Dave Korn" <[EMAIL PROTECTED] .com>

RE: Segmentation fault with winmm library

2007-06-19 Thread Dave Korn
On 19 June 2007 09:36, [EMAIL PROTECTED] wrote: > Program received signal SIGSEGV, Segmentation fault. > 0x18bfb7c3 in wxvault!??0Cwxvault@@[EMAIL PROTECTED] () > (gdb) bt > #0 0x18bfb7c3 in wxvault!??0Cwxvault@@[EMAIL PROTECTED] () > Does someone have a suggestion about how to debug this? U

Re: Segmentation fault with winmm library

2007-06-19 Thread Eric Lilja
[EMAIL PROTECTED] wrote: Hi, when trying to run the following program, which uses the windows winmm library: --- #include #include int main(void) { // a library call to make sure winmm gets loaded TIMECAPS tc ; timeGetDevCaps (&tc, sizeof (TIMECAPS)); printf("hello world\n");