nanogui: Thread: how to compile and link win32 api in linux


[<<] [<] Page 1 of 1 [>] [>>]
Subject: how to compile and link win32 api in linux
From: RAHUL RAVINDRAN ####@####.####
Date: 19 Aug 2008 06:48:39 -0000
Message-Id: <576280.8788.qm@web56909.mail.re3.yahoo.com>

Sir,
   i went through the examples in microwindow.90/demos/mwin
   In that i go throught mtest2.c mtest.c which uses window api.
   i want to know how it is compiled and linked.
  can u give the  command for which  i can compile  and link  my file which uses
  win32 api.
  Because i created my own file but while linking there is error:

   vcdemo1.c:(.text+0xa): undefined reference to `GetDesktopWindow'
vcdemo1.c:(.text+0x1e): undefined reference to `GetWindowRect'
vcdemo1.c:(.text+0x42): undefined reference to `MwRegisterButtonControl'
vcdemo1.c:(.text+0x4e): undefined reference to `MwRegisterEditControl'
vcdemo1.c:(.text+0x5a): undefined reference to `MwRegisterStaticControl'
vcdemo1.c:(.text+0x9d): undefined reference to `GetStockObject'
vcdemo1.c:(.text+0xbc): undefined reference to `RegisterClass'
vcdemo1.c:(.text+0x11e): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x19a): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x217): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x290): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x2a2): undefined reference to `ShowWindow'
vcdemo1.c:(.text+0x2ad): undefined reference to `UpdateWindow'
vcdemo1.c:(.text+0x2ba): undefined reference to `TranslateMessage'
vcdemo1.c:(.text+0x2c5): undefined reference to `DispatchMessage'
vcdemo1.c:(.text+0x2e8): undefined reference to `GetMessage'
vcdemo1.o: In function `wproc':
vcdemo1.c:(.text+0x317): undefined reference to `PostQuitMessage'
vcdemo1.c:(.text+0x339): undefined reference to `DefWindowProc'

please help.




      Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
Subject: Fw: [nanogui] how to compile and link win32 api in linux
From: RAHUL RAVINDRAN ####@####.####
Date: 19 Aug 2008 07:19:45 -0000
Message-Id: <220254.89564.qm@web56902.mail.re3.yahoo.com>


--- On Tue, 19/8/08, RAHUL RAVINDRAN ####@####.#### wrote:
From: RAHUL RAVINDRAN ####@####.####
Subject: [nanogui] how to compile and link win32 api in linux
To: "nanogui" ####@####.####
Date: Tuesday, 19 August, 2008, 12:17 PM

Sir,
   i went through the examples in microwindow.90/demos/mwin
   In that i go throught mtest2.c mtest.c which uses window api.
   i want to know how it is compiled and linked.
  can u give the  command for which  i can compile  and link  my file
which uses
  win32 api.
  Because i created my own file but while linking there is error:

   vcdemo1.c:(.text+0xa): undefined reference to `GetDesktopWindow'
vcdemo1.c:(.text+0x1e): undefined reference to `GetWindowRect'
vcdemo1.c:(.text+0x42): undefined reference to `MwRegisterButtonControl'
vcdemo1.c:(.text+0x4e): undefined reference to `MwRegisterEditControl'
vcdemo1.c:(.text+0x5a): undefined reference to `MwRegisterStaticControl'
vcdemo1.c:(.text+0x9d): undefined reference to `GetStockObject'
vcdemo1.c:(.text+0xbc): undefined reference to `RegisterClass'
vcdemo1.c:(.text+0x11e): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x19a): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x217): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x290): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x2a2): undefined reference to `ShowWindow'
vcdemo1.c:(.text+0x2ad): undefined reference to `UpdateWindow'
vcdemo1.c:(.text+0x2ba): undefined reference to `TranslateMessage'
vcdemo1.c:(.text+0x2c5): undefined reference to `DispatchMessage'
vcdemo1.c:(.text+0x2e8): undefined reference to `GetMessage'
vcdemo1.o: In function `wproc':
vcdemo1.c:(.text+0x317): undefined reference to `PostQuitMessage'
vcdemo1.c:(.text+0x339): undefined reference to `DefWindowProc'

please help.




      Unlimited freedom, unlimited storage. Get it now, on
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/


      Did you know? You can CHAT without downloading messenger. Go to http://in.webmessenger.yahoo.com/
Subject: how to compile and link win32 api in linux
From: RAHUL RAVINDRAN ####@####.####
Date: 19 Aug 2008 07:49:35 -0000
Message-Id: <448567.94179.qm@web56911.mail.re3.yahoo.com>

Sir,
   i went through the examples in microwindow.90/demos/mwin
   In that i go throught mtest2.c mtest.c which uses window api.
   i want to know how it is compiled and linked.
  can u give the  command for which  i can compile  and link  my file
which uses
  win32 api.
  Because i created my own file but while linking there is error:

   vcdemo1.c:(.text+0xa): undefined reference to `GetDesktopWindow'
vcdemo1.c:(.text+0x1e): undefined reference to `GetWindowRect'
vcdemo1.c:(.text+0x42): undefined reference to `MwRegisterButtonControl'
vcdemo1.c:(.text+0x4e): undefined reference to `MwRegisterEditControl'
vcdemo1.c:(.text+0x5a): undefined reference to `MwRegisterStaticControl'
vcdemo1.c:(.text+0x9d): undefined reference to `GetStockObject'
vcdemo1.c:(.text+0xbc): undefined reference to `RegisterClass'
vcdemo1.c:(.text+0x11e): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x19a): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x217): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x290): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x2a2): undefined reference to `ShowWindow'
vcdemo1.c:(.text+0x2ad): undefined reference to `UpdateWindow'
vcdemo1.c:(.text+0x2ba): undefined reference to `TranslateMessage'
vcdemo1.c:(.text+0x2c5): undefined reference to `DispatchMessage'
vcdemo1.c:(.text+0x2e8): undefined reference to `GetMessage'
vcdemo1.o: In function `wproc':
vcdemo1.c:(.text+0x317): undefined reference to `PostQuitMessage'
vcdemo1.c:(.text+0x339): undefined reference to `DefWindowProc'

please help.




      Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
Subject: how to compile and link win32 api in linux
From: RAHUL RAVINDRAN ####@####.####
Date: 19 Aug 2008 08:31:17 -0000
Message-Id: <638162.75165.qm@web56909.mail.re3.yahoo.com>

Sir,
   i went through the examples in microwindow.90/demos/mwin
   In that i go throught mtest2.c mtest.c which uses window api.
   i want to know how it is compiled and linked.
  can u give the  command for which  i can compile  and link  my file
which uses
  win32 api.
  Because i created my own file but while linking there is error:

   vcdemo1.c:(.text+0xa): undefined reference to `GetDesktopWindow'
vcdemo1.c:(.text+0x1e): undefined reference to `GetWindowRect'
vcdemo1.c:(.text+0x42): undefined reference to `MwRegisterButtonControl'
vcdemo1.c:(.text+0x4e): undefined reference to `MwRegisterEditControl'
vcdemo1.c:(.text+0x5a): undefined reference to `MwRegisterStaticControl'
vcdemo1.c:(.text+0x9d): undefined reference to `GetStockObject'
vcdemo1.c:(.text+0xbc): undefined reference to `RegisterClass'
vcdemo1.c:(.text+0x11e): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x19a): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x217): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x290): undefined reference to `CreateWindowEx'
vcdemo1.c:(.text+0x2a2): undefined reference to `ShowWindow'
vcdemo1.c:(.text+0x2ad): undefined reference to `UpdateWindow'
vcdemo1.c:(.text+0x2ba): undefined reference to `TranslateMessage'
vcdemo1.c:(.text+0x2c5): undefined reference to `DispatchMessage'
vcdemo1.c:(.text+0x2e8): undefined reference to `GetMessage'
vcdemo1.o: In function `wproc':
vcdemo1.c:(.text+0x317): undefined reference to `PostQuitMessage'
vcdemo1.c:(.text+0x339): undefined reference to `DefWindowProc'

please help.




      Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
Subject: Re: [nanogui] how to compile and link win32 api in linux
From: "Greg Haerr" ####@####.####
Date: 20 Aug 2008 02:55:55 -0000
Message-Id: <059b01c90270$130c0f80$6501a8c0@gregnewport>

> vcdemo1.c:(.text+0xa): undefined reference to `GetDesktopWindow'

You are obviously not including the win32 api library,
-lmwin and possibly others.  See the Makefile in the
src/demos/mwin directory for examples of a link line.

Regards,

Greg

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.