From: <no...@so...> - 2001-08-07 21:31:42
|
Bugs item #448857, was opened at 2001-08-07 11:05 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=448857&group_id=2435 Category: None Group: None >Status: Closed >Resolution: Rejected Priority: 5 Submitted By: Antonio Arauzo (dax5) Assigned to: Nobody/Anonymous (nobody) Summary: Undefined reference on libmingw32.a Initial Comment: Compiling dgclass.cpp from http://www.grandgent.com/tom/projects/dbclass/dbclass.zip D:\Usuarios\Antonio\ODBC>g++ dbclass.cpp -lodbc32 d:/mingw/bin/../lib/gcc-lib/mingw32/2.95.3-5/../../../libmingw32.a(main.o)(.text +0x8d):main.c: undefined reference to `WinMain@16' ---------------------------------------------------------------------- >Comment By: Danny Smith (dannysmith) Date: 2001-08-07 14:31 Message: Logged In: YES user_id=11494 This is not a bug. You really do need a main or a WinMain in your programme. If you only want to compile the object file add -c switch. BTW, that little ODBC database wrapper class requires structured exception handling (__try, __finally blocks) which are not implemented in mingw. You could try to convert it to use C++ exception handling. Danny ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=102435&aid=448857&group_id=2435 |