public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Nehru Juman <shadowcaster@solutions2000.net>
To: cygwin@sourceware.cygnus.com
Subject: (Problem building program)
Date: Fri, 05 Mar 1999 17:34:00 -0000	[thread overview]
Message-ID: <36E09392.F58D9168@solutions2000.net> (raw)

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

WARNING: multiple messages have this Message-ID
From: Nehru Juman <shadowcaster@solutions2000.net>
To: cygwin@sourceware.cygnus.com
Subject: (Problem building program)
Date: Wed, 31 Mar 1999 19:45:00 -0000	[thread overview]
Message-ID: <36E09392.F58D9168@solutions2000.net> (raw)
Message-ID: <19990331194500.97YZq7lJUkwB6cjZX5jCQ-LKn_g2a-PydFlY_L2TG-I@z> (raw)

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


             reply	other threads:[~1999-03-05 17:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-05 17:34 Nehru Juman [this message]
1999-03-31 19:45 ` Nehru Juman
     [not found] <010001be67d6$839f4cb0$080216c0@newt.san.rr.com>
1999-03-06  8:02 ` Nehru Juman
1999-03-31 19:45   ` Nehru Juman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=36E09392.F58D9168@solutions2000.net \
    --to=shadowcaster@solutions2000.net \
    --cc=cygwin@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).