Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 27 Aug 2012
Offline Last Active Sep 23 2016 04:57 PM

Posts I've Made

In Topic: Problem: undefined reference to 'WinMain@16'

30 November 2013 - 06:24 AM

My apologies.  I've just double checked mingw32.a and it is in fact in my MinGW\lib installation directory.  I checked the link line in C::B and I had "-lming32" not '-lmingw32' as it should have been.  This now links and runs as it does with the MS toolchain.


Many thanks for your time and assistance.  :)

In Topic: Problem: undefined reference to 'WinMain@16'

28 November 2013 - 03:50 PM

I've checked the linker settings in Code::Blocks and neither of those libraries were present (at least I couldn't see if they were there).  I added each one in turn (separately) and the linker reported that neither of the libraries were present on my system. I don't want to install these incase it messes up something else since I'm using someone elses GCC distribution and given that GCC is particularily picky when it comes to linking libraries and such.  

As a test I created a standard Win32 GUI application and noted that it links in kernel32, user32 and gdi32 (same as my executable) there didn't appear to be any reference or link setting to either of the libraries that you mentioned. So I assume no problems there.  

Anymore help appreciated.

In Topic: zlib, libpng and VS2005

28 March 2013 - 04:58 PM



Managed to get this sorted out thanks.  For those struggling with this here's the links I used to get a successful build.  Although its outlined for VS2008 this works equally in VS2005.










build process:




these libraries aren't the absolute latest builds but they were sufficient for my purposes.