Article View: comp.os.ms-windows.programmer.tools
Article #581BC++ 3.1 Linker Warning (Duplicate WinMain)
From: Paul Hodgetts
Date: Fri, 16 Oct 1992 00:55
Date: Fri, 16 Oct 1992 00:55
31 lines
1873 bytes
1873 bytes
When I link my Windows program under BC++ 3.1 with the "warn duplicate symbols" linker option on, I am receiving the following warning message... Linker Warning:WINMAIN defined in module xxx.cpp is duplicated in module WINMAIN. The map file shows the message... Warning: WINMAIN defined in module xxx.cpp is duplicated in library file CWS.LIB in module WINMAIN, but shows only one definition of WINMAIN in the symbol table. The only #include in this program is windows.h, plus whatever run time stuff is linked in by default. I notice that if I turn the "warn duplicate symbols option on" I will see this message even for Borland's example programs. What is the cause of this warning, and is it a problem (the program seems to run just fine)? How can I eliminate it (we're kind of strict on having no warnings for released software)? Paul ---------------------------------------------------------------------- | Paul R. Hodgetts | email: paulh@odetics.com | | Odetics Inc., Broadcast Division | uunet!odetics.com!paulh | | 1515 S. Manchester Ave. | phone: (714) 774-2200 ext 3793 | | Anaheim, CA, USA 92802-2907 | fax: (714) 535-8532 | ---------------------------------------------------------------------- | Disclaimer: Odetics is not responsible for anything I say or do! | ----------------------------------------------------------------------
Technical Details
Message-ID:
<1992Oct16.005506.23471@odetics.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!odetics!paulhShow Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.tools,comp.windows.ms.programmer,comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!odetics!paulh From: paulh@odetics.com (Paul Hodgetts) Subject: BC++ 3.1 Linker Warning (Duplicate WinMain) Message-ID: <1992Oct16.005506.23471@odetics.com> Followup-To: comp.os.ms-windows.programmer.tools Organization: Odetics, Inc., Anaheim, CA Date: Fri, 16 Oct 92 00:55:06 GMT Lines: 31