Article View: comp.os.ms-windows.programmer.misc
Article #2879Windows applications with the free Borland Compiler
From: Stephen Montgomery-Smith
Date: Sun, 27 Jan 2002 04:46
Date: Sun, 27 Jan 2002 04:46
21 lines
1845 bytes
1845 bytes
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:
<3C538626.FBC8A92F@math.missouri.edu>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!news-in-sanjose!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.ne.home.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8d38,209c616db645ba7b,start X-Google-Attributes: gidf8d38,public X-Google-Thread: 105df1,209c616db645ba7b,start X-Google-Attributes: gid105df1,public X-Google-ArrivalTime: 2002-01-26 20:46:43 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!news-in-sanjose!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.ne.home.com.POSTED!not-for-mail Message-ID: <3C538626.FBC8A92F@math.missouri.edu> From: Stephen Montgomery-Smith <stephen@math.missouri.edu> X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.ms-windows.programmer.misc,borland.public.cpp.language Subject: Windows applications with the free Borland Compiler Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 21 Date: Sun, 27 Jan 2002 04:46:42 GMT NNTP-Posting-Host: 24.12.197.197 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.ne.home.com 1012106802 24.12.197.197 (Sat, 26 Jan 2002 20:46:42 PST) NNTP-Posting-Date: Sat, 26 Jan 2002 20:46:42 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster