🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2880

Re: Windows applications with the free Borland Compiler

#2880
From: David Lindauer
Date: Wed, 30 Jan 2002 01:15
29 lines
1759 bytes
bcc32 -W my-prog.c

should do it (upper case the W)

David

Stephen Montgomery-Smith wrote:

> I am trying to make my first simple windows application using the free
> Borland command line compiler.  I copied the program from the book
> "Programming Windows" by Petzold:
>
> #include<windows.h>
> int WINAPI WinMain( .... ) {
>   .....
> }
>
> So I type
> bcc32 my-prog.c
> and I get a linker error message something like
> could not resolve _main
>
> My guess is that I need to add something extra to the compiling command
> line, but really I don't know.  Can anyone help me?
>
> --
> Stephen Montgomery-Smith
> stephen@math.missouri.edu
> http://www.math.missouri.edu/~stephen
Technical Details
Message-ID: <3C57494D.3E8E557E@bluegrass.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!213.204.128.162!news000.worldonline.se!newsfeed.wirehub.nl!news-hub.cableinet.net!blueyonder!newsfeeder.randori.com!news2.randori.com.POSTED!not-for-mail
References: <3C538626.FBC8A92F@math.missouri.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f8d38,209c616db645ba7b
X-Google-Attributes: gidf8d38,public
X-Google-Thread: 105df1,209c616db645ba7b
X-Google-Attributes: gid105df1,public
X-Google-ArrivalTime: 2002-01-29 17:24:26 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!213.204.128.162!news000.worldonline.se!newsfeed.wirehub.nl!news-hub.cableinet.net!blueyonder!newsfeeder.randori.com!news2.randori.com.POSTED!not-for-mail
Message-ID: <3C57494D.3E8E557E@bluegrass.net>
From: David Lindauer <camille@bluegrass.net>
X-Mailer: Mozilla 4.76 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.ms-windows.programmer.misc,borland.public.cpp.language
Subject: Re: Windows applications with the free Borland Compiler
References: <3C538626.FBC8A92F@math.missouri.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 30
Organization: Randori News - http://www.randori.com
Date: Wed, 30 Jan 2002 01:15:40 GMT