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 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/

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 > 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 fra

Re: Using libtool via autotools causes linking problem on mingw

2013-11-08 Thread Panicz Maciej Godek
2013/11/8 Václav Zeman > 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 > http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Windows-Options.h

Re: Using libtool via autotools causes linking problem on mingw

2013-11-08 Thread Panicz Maciej Godek
2013/11/8 Peter Rosin > 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 think the SDLmain library contains the real WinMain@16 entry point and > that > entry point in turn calls

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 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 think the SD

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 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 yo

g++ and -nostdlib

2013-11-08 Thread Peter Rosin
Hi! There seem to be a longstanding complaint that libtool is using -nostdlib when it links libraries using g++. It interferes with -pthread and I think I have also seen other issues. No one can give a satisfactory explanation why libtool does this, it seems like it is just the way it has always b

Re: g++ and -nostdlib

2013-11-08 Thread Bob Friesenhahn
On Fri, 8 Nov 2013, Peter Rosin wrote: Hi! There seem to be a longstanding complaint that libtool is using -nostdlib when it links libraries using g++. It interferes with -pthread and I think I have also seen other issues. No one can give a satisfactory explanation why libtool does this, it see

Re: Using libtool via autotools causes linking problem on mingw

2013-11-08 Thread Panicz Maciej Godek
2013/11/8 Peter Rosin > On 2013-11-08 12:18, Panicz Maciej Godek wrote: > > 2013/11/8 Peter Rosin 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 ar