Re: Using libtool via autotools causes linking problem on mingw

2013-11-08 Thread Václav Zeman
On 7 November 2013 22:00, Panicz Maciej Godek godek.mac...@gmail.comwrote: Hi, For some time I've been trying to compile my framework for writing multimedia and 3d games in Guile Scheme on Windows/MinGW. The framework uses SDL library, and more details can be found here:

Re: Using libtool via autotools causes linking problem on mingw

2013-11-08 Thread Peter Rosin
On 2013-11-08 11:31, Václav Zeman wrote: On 7 November 2013 22:00, Panicz Maciej Godek godek.mac...@gmail.com mailto:godek.mac...@gmail.com wrote: Hi, For some time I've been trying to compile my framework for writing multimedia and 3d games in Guile Scheme on

Re: Using libtool via autotools causes linking problem on mingw

2013-11-08 Thread Panicz Maciej Godek
2013/11/8 Václav Zeman vhais...@gmail.com The -mwindows switch says that your are compiling a Windows GUI application, which implies WinMain() function. If you are not doing that, remove the switch and (maybe) use -mconsole instead. See

Re: Using libtool via autotools causes linking problem on mingw

2013-11-08 Thread Peter Rosin
On 2013-11-08 12:18, Panicz Maciej Godek wrote: 2013/11/8 Peter Rosin p...@lysator.liu.se mailto:p...@lysator.liu.se The SDL library, for some obscure reason, has its own special take on that and prescribes that you should keep using main() even if you are doing a GUI app. I

Re: Using libtool via autotools causes linking problem on mingw

2013-11-08 Thread Peter Rosin
On 2013-11-08 14:15, Peter Rosin wrote: On 2013-11-08 12:18, Panicz Maciej Godek wrote: 2013/11/8 Peter Rosin p...@lysator.liu.se mailto:p...@lysator.liu.se The SDL library, for some obscure reason, has its own special take on that and prescribes that you should keep using main()

Re: Using libtool via autotools causes linking problem on mingw

2013-11-08 Thread Panicz Maciej Godek
2013/11/8 Peter Rosin p...@lysator.liu.se On 2013-11-08 12:18, Panicz Maciej Godek wrote: 2013/11/8 Peter Rosin p...@lysator.liu.se mailto:p...@lysator.liu.se The SDL library, for some obscure reason, has its own special take on that and prescribes that you should keep using

Using libtool via autotools causes linking problem on mingw

2013-11-07 Thread Panicz Maciej Godek
Hi, For some time I've been trying to compile my framework for writing multimedia and 3d games in Guile Scheme on Windows/MinGW. The framework uses SDL library, and more details can be found here: https://puszcza.gnu.org.ua/projects/slayer After many issues with compiling Guile Scheme on MinGW,

Re: Using libtool via autotools causes linking problem on mingw

2013-11-07 Thread Peter Rosin
On 2013-11-07 22:00, Panicz Maciej Godek wrote: Hi, For some time I've been trying to compile my framework for writing multimedia and 3d games in Guile Scheme on Windows/MinGW. The framework uses SDL library, and more details can be found here: https://puszcza.gnu.org.ua/projects/slayer

Re: Using libtool via autotools causes linking problem on mingw

2013-11-07 Thread Panicz Maciej Godek
Hi, I did apply that change, i.e. replaced AM_LDFLAGS with slayer_LDADD and moved the definition to the end of the src/Makefile.am. The libtool is right now invoked this way: /bin/sh ../libtool --tag=CXX --mode=link g++ -D_GNU_SOURCE=1 -Dmain=SDL_main -Ic:/mingw/msys/1.0/include/SDL

Re: Using libtool via autotools causes linking problem on mingw

2013-11-07 Thread Peter Rosin
On 2013-11-07 23:39, Panicz Maciej Godek wrote: Hi, I did apply that change, i.e. replaced AM_LDFLAGS with slayer_LDADD and moved the definition to the end of the src/Makefile.am. The libtool is right now invoked this way: /bin/sh ../libtool --tag=CXX --mode=link g++ -D_GNU_SOURCE=1