This is the mail archive of the
mailing list for the Cygwin project.
Re: Segmentation fault with winmm library
> 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, and doing so
makes your build infrastructure extremely unfriendly (e.g. for someone
trying to crosscompile your software.) The compiler and linker both
know where to search for the w32api headers and libs.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html