What does the -c option do? -shared I cannot take off since gcc starts complaining of missing WinMain, -c was added by Code::Blocks so I do not know what option to uncheck. -- View this message in context: http://gcc.1065356.n5.nabble.com/Confusing-undefined-function-which-I-know-is-defined-tp983603p983861.html Sent from the gcc - Help mailing list archive at Nabble.com.