* Re: (Problem building program)
[not found] <010001be67d6$839f4cb0$080216c0@newt.san.rr.com>
@ 1999-03-06 8:02 ` Nehru Juman
1999-03-31 19:45 ` Nehru Juman
0 siblings, 1 reply; 4+ messages in thread
From: Nehru Juman @ 1999-03-06 8:02 UTC (permalink / raw)
To: Steve Biskis; +Cc: Cygnus Solutions
Thanks a lot! Couldn't get it to work with RSXNTDJ (still love DJGPP
though). Now I can write win32 using c++. Cool.
Steve Biskis wrote:
> Need to link libuser32.a
>
> gcc -o hello hello.c -luser32
>
> Take care,
>
> Steve B.
>
> -----Original Message-----
> From: Nehru Juman <shadowcaster@solutions2000.net>
> To: cygwin@sourceware.cygnus.com <cygwin@sourceware.cygnus.com>
> Date: Friday, March 05, 1999 5:33 PM
> Subject: (Problem building program)
>
>
> >Hello Everybody,
> >
> > I've just installed MingW32 and have my path and files set up
> >properly but when I try and build the simple hello world program
> below
> >everything compiles fine but during the linking process I get the
> >following error message:
> >
> >C:\WINDOWS\TEMP\cc8480511.o(.text+0x66):two.cc:undefined reference to
>
> >'MessageBoxA@16'
> >
> > Can anyone please tell me what I'm doing wrong.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: (Problem building program)
1999-03-06 8:02 ` (Problem building program) Nehru Juman
@ 1999-03-31 19:45 ` Nehru Juman
0 siblings, 0 replies; 4+ messages in thread
From: Nehru Juman @ 1999-03-31 19:45 UTC (permalink / raw)
To: Steve Biskis; +Cc: Cygnus Solutions
Thanks a lot! Couldn't get it to work with RSXNTDJ (still love DJGPP
though). Now I can write win32 using c++. Cool.
Steve Biskis wrote:
> Need to link libuser32.a
>
> gcc -o hello hello.c -luser32
>
> Take care,
>
> Steve B.
>
> -----Original Message-----
> From: Nehru Juman <shadowcaster@solutions2000.net>
> To: cygwin@sourceware.cygnus.com <cygwin@sourceware.cygnus.com>
> Date: Friday, March 05, 1999 5:33 PM
> Subject: (Problem building program)
>
>
> >Hello Everybody,
> >
> > I've just installed MingW32 and have my path and files set up
> >properly but when I try and build the simple hello world program
> below
> >everything compiles fine but during the linking process I get the
> >following error message:
> >
> >C:\WINDOWS\TEMP\cc8480511.o(.text+0x66):two.cc:undefined reference to
>
> >'MessageBoxA@16'
> >
> > Can anyone please tell me what I'm doing wrong.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* (Problem building program)
1999-03-05 17:34 Nehru Juman
@ 1999-03-31 19:45 ` Nehru Juman
0 siblings, 0 replies; 4+ messages in thread
From: Nehru Juman @ 1999-03-31 19:45 UTC (permalink / raw)
To: cygwin
Hello Everybody,
I've just installed MingW32 and have my path and files set up
properly but when I try and build the simple hello world program below
everything compiles fine but during the linking process I get the
following error message:
C:\WINDOWS\TEMP\cc8480511.o(.text+0x66):two.cc:undefined reference to
'MessageBoxA@16'
Can anyone please tell me what I'm doing wrong.
// Hello World Program
#include <windows.h>
#include <iostream.h>
int PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR
lpCmdLine, int nCmdShow)
{
cout<<"Hey, I'm working."<<endl;
MessageBox(NULL,(const char *)"Hello World",
(const char *)"My first program", MB_OK);
return TRUE;
}
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* (Problem building program)
@ 1999-03-05 17:34 Nehru Juman
1999-03-31 19:45 ` Nehru Juman
0 siblings, 1 reply; 4+ messages in thread
From: Nehru Juman @ 1999-03-05 17:34 UTC (permalink / raw)
To: cygwin
Hello Everybody,
I've just installed MingW32 and have my path and files set up
properly but when I try and build the simple hello world program below
everything compiles fine but during the linking process I get the
following error message:
C:\WINDOWS\TEMP\cc8480511.o(.text+0x66):two.cc:undefined reference to
'MessageBoxA@16'
Can anyone please tell me what I'm doing wrong.
// Hello World Program
#include <windows.h>
#include <iostream.h>
int PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR
lpCmdLine, int nCmdShow)
{
cout<<"Hey, I'm working."<<endl;
MessageBox(NULL,(const char *)"Hello World",
(const char *)"My first program", MB_OK);
return TRUE;
}
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-03-31 19:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <010001be67d6$839f4cb0$080216c0@newt.san.rr.com>
1999-03-06 8:02 ` (Problem building program) Nehru Juman
1999-03-31 19:45 ` Nehru Juman
1999-03-05 17:34 Nehru Juman
1999-03-31 19:45 ` Nehru Juman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).