Article View: comp.os.ms-windows.programmer.misc
Article #2895Re: OK, I gots a little problem with my linker, here...
From: Chris Marriott
Date: Sun, 22 Nov 1998 00:00
Date: Sun, 22 Nov 1998 00:00
20 lines
1607 bytes
1607 bytes
Tom Burke wrote in message <36586EBF.CC89AFA5@erols.com>... >Will not link, get the following error: > Error: Unresolved external '_main' referenced from >C:\BC5\LIB\COX32.OBJ > >Can anyone help? The linker is attempting to create a CONSOLE application with an entry point of "main"; you need to tell it to create a WINDOWS application which has an entry point of "WinMain". In Microsoft's linker you do this by adding a "/subsystem:windows" flag to the linker command line; I'd imagine that Borland's linker has a similar option. Chris ----------------------------------------------------------------------- Chris Marriott, SkyMap Software, UK (chris@skymap.com) Visit our web site at http://www.skymap.com Astronomy software written by astronomers, for astronomers
Technical Details
Message-ID:
<911766139.13399.0.nnrp-07.9e9809e7@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36586EBF.CC89AFA5@erols.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8d38,229cc96a0cb0e3e7 X-Google-Attributes: gidf8d38,public X-Google-Thread: 105df1,229cc96a0cb0e3e7 X-Google-Attributes: gid105df1,public From: "Chris Marriott" <chris@NOSPAM.skymap.com> Subject: Re: OK, I gots a little problem with my linker, here... Date: 1998/11/22 Message-ID: <911766139.13399.0.nnrp-07.9e9809e7@news.demon.co.uk> X-Deja-AN: 414568489 X-NNTP-Posting-Host: chrism.demon.co.uk:158.152.9.231 References: <36586EBF.CC89AFA5@erols.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 911766139 nnrp-07:13399 NO-IDENT chrism.demon.co.uk:158.152.9.231 Organization: SkyMap Software Newsgroups: comp.os.ms-windows.programmer.misc,borland.public.cpp.language