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?.