Thread View: comp.os.ms-windows.programmer.misc
2 messages
2 total messages
Started by Stephen Montgomery-Smith
Sun, 27 Jan 2002 04:46
Windows applications with the free Borland Compiler
Author: 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
Re: Windows applications with the free Borland Compiler
Author: David Lindauer
Date: Wed, 30 Jan 2002 01:15
Date: Wed, 30 Jan 2002 01:15
29 lines
1759 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads