Article View: att.lang.c++
Article #134Re: Error: Unresolved external '_main'
From: Bart and Debbie Crane
Date: Mon, 06 Sep 1999 00:00
Date: Mon, 06 Sep 1999 00:00
24 lines
1332 bytes
1332 bytes
Normal C programs expect a function named main, unless you are writing a Windows program, in which case you need a function named WinMain. If you are using Borland's Integrated Development system, then you have probably created a new project that builds a straight dos/unix type of program, and you are want to build a windows program. Start a new project, looking out for where it asks the kind of program: dll, application, console. Hakan Venderlof wrote: > Hello > While compiling a program I get this error: > > Linking C:\C++_source\BOX.exe > Error: Unresolved external '_main' referenced from D:\BC5\LIB\COX32.OBJ > > Could someone explain what it means... > > (I use Borland 5.02) > -- > *** greetings grok sweden ***
Technical Details
Message-ID:
<37D38199.3B183A3E@qwestinternet.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<Y7hA3.215$Bt9.177571328@newsb.telia.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4ba,3921050bef832433 X-Google-Attributes: gid10d4ba,public From: Bart and Debbie Crane <bart@qwestinternet.net> Subject: Re: Error: Unresolved external '_main' Date: 1999/09/06 Message-ID: <37D38199.3B183A3E@qwestinternet.net> X-Deja-AN: 521600134 Content-Transfer-Encoding: 7bit References: <Y7hA3.215$Bt9.177571328@newsb.telia.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Concentric Internet Services Mime-Version: 1.0 Newsgroups: att.lang.c++