Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 27 Aug 2012
Offline Last Active Nov 30 2013 06:25 AM

Topics I've Started

Problem: undefined reference to 'WinMain@16'

28 November 2013 - 06:12 AM

I'm using two compilers: VS2005 Professional Edition and a pre-built distribution of the GCC toolchain obtained here.  I'm using two compilers simply to test my code over alternative compilers.  Also I'm a newbie to GCC.
I have a static library which contains the framework and implementation of the WinMain function and an executable which links in the static library.  This works fine when I compile and link with the MS toolchain, however I get the error mentioned above when using the GCC toolchain. I know that this error is caused by the linker not finding the function in any of the object files that it is linking to the executable.  Is there anyway of getting around this using either a command-line compilation and linkage (using GCC) or using Code::Blocks 10.05 to make the applicable compile and link settings to get this to work?.

zlib, libpng and VS2005

26 March 2013 - 01:15 PM


Can anyone tell me the binary version (or sources) that I need to use or compile zlib and libPNG in vs2005 Professional Edition (with service pack 1).  I've noticed that within the sources that I've tried there doesn't appear to be a project solution file for VS2005.  The reason I'm asking is that I keep getting library conflicts (libcmtd and msvcrtd) and its driving me nuts.  This happens (with varying numbers of errors) depending on the setting in the Code-Generation for the project.  Any help appreciated.