[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mingw-users
Subject:    Re: [Mingw-users] wingdi.h and w32API GetCurrentObject
From:       "Mark J. Spinnover" <markjspinnover () yahoo ! com>
Date:       2012-06-15 22:48:23
Message-ID: 1339800503.92676.YahooMailNeo () web113514 ! mail ! gq1 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]




   I used -mwindows in the GCC C++ Compiler - misc flag section. Same errors \
occurred.

   Bringing -mwindows down to the linker in: Project | Properties | MinGW C++ Linker \
| Miscellaneous | Linker Flags field... fixed the problem. The program compiled and \
ran fine.

Thanks...
> > Re: [Mingw-users] wingdi.h and w32API GetCurrentObject>> From: Earnie Boyd \
> > <earnie@us...> -	2012-06-12 15:24
 
> > On Tue, Jun 12, 2012 at 8:31 AM, Vincent Torri <vincent.torri@...> wrote:
> > > according to that thread:
> 
> http://gcc.gnu.org/ml/gcc-help/2004-01/msg00225.html > Ian was somewhat wrong in \
> using "compiler" term in his explanation but
it is an understandable term since GCC is GNU C Compiler.  He adds
that it is used during the link phase. > -mwindows is a compiler flag, even if it \
adds libs to the linker libs list -mwindows is a GCC front end option to supply the \
linker with the correct set of flags.  The linker itself however does not understand
-mwindows.  The truth is in -dumpspecs and -mwindows does more than
add libraries. -- 
Earnie
-- https://sites.google.com/site/earnieboyd  


[Attachment #5 (text/html)]

<html><body><div style="color:#000; background-color:#fff; font-family:times new \
roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new \
roman', 'new york', times, serif; font-size: 12pt; "><br></div><div \
style="text-align: left; font-family: 'times new roman', 'new york', times, serif; \
"><span style="font-size: 12pt; ">&nbsp; &nbsp;I used -mwindows in the GCC C++ \
Compiler - misc flag section. Same errors occurred.</span></div><div \
style="text-align: left; font-family: 'times new roman', 'new york', times, serif; \
"><span style="font-size: 12pt; "><br></span></div><div style="text-align: left; \
font-family: 'times new roman', 'new york', times, serif; "><span style="font-size: \
12pt; ">&nbsp; &nbsp;Bringing -mwindows down to the linker in: Project | Properties | \
MinGW C++ Linker | Miscellaneous | Linker Flags field... fixed the problem. The \
program compiled and ran fine.</span></div><div style="text-align: left; font-family: \
'times  new roman', 'new york', times, serif; "><span style="font-size: 12pt; \
"><br></span></div><div style="text-align: left; font-family: 'times new roman', 'new \
york', times, serif; "><span style="font-size: 12pt; ">Thanks...</span></div><div \
style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; \
"><table width="100%" border="0" style="border-collapse: collapse; border-spacing: \
0px; font-size: 12px; margin: 1em 0px; width: 913px; empty-cells: show; color: \
rgb(85, 85, 85); font-family: arial, helvetica, clean, sans-serif; line-height: 18px; \
text-align: left; "><tbody><tr><td bgcolor="#DDDDDD" nowrap="" style="margin: 0px; \
padding: 10px 5px; font-size: 11px; vertical-align: baseline; border-style: solid \
none; border-bottom-width: 1px; border-bottom-color: rgb(204, 204, 204); \
border-top-width: 1px; border-top-color: rgb(238, 238, 238); background-image: \
url(http://a.fsdn.com/sf/images//phoneix/grad_white_30.png); background-position:  \
0px -1.3em; background-repeat: repeat no-repeat; "><div class="forum" style="margin: \
0px; padding: 0px; "><div style="margin: 0px; padding: 0px; "><b>&gt;&gt;<a \
href="http://sourceforge.net/mailarchive/message.php?msg_id=29396078" style="color: \
rgb(0, 102, 153); text-decoration: none; margin: 0px; padding: 0px; vertical-align: \
baseline; background-color: transparent; outline: none; ">Re: [Mingw-users] wingdi.h \
and w32API GetCurrentObject</a></b></div><small style="font-size: 9px; ">&gt;&gt; \
From: Earnie Boyd &lt;earnie@us...&gt; -	2012-06-12 \
15:24</small><br></div></td></tr><tr><td class="email_body" style="margin: 0px; \
padding: 10px 5px; vertical-align: baseline; border-style: solid none; \
border-bottom-width: 1px; border-bottom-color: rgb(204, 204, 204); border-top-width: \
1px; border-top-color: rgb(238, 238, 238); background-image: \
url(http://a.fsdn.com/sf/images//phoneix/grad_white_30.png); font-family: monospace; \
background-position: 0px -1.3em;  background-repeat: repeat no-repeat; "><pre \
style="margin-top: 0px; margin-bottom: 0px; padding: 0.5em 1em; line-height: 16px; \
font-size: 11px; overflow: auto; ">&gt;&gt;On Tue, Jun 12, 2012 at 8:31 AM, Vincent \
Torri &lt;vincent.torri@...&gt; wrote: &gt;&gt;&gt; according to that thread:
&gt;
&gt; <a href="http://gcc.gnu.org/ml/gcc-help/2004-01/msg00225.html" target="_new" \
style="color: rgb(0, 102, 153); text-decoration: none; margin: 0px; padding: 0px; \
vertical-align: baseline; background-color: transparent; outline: none; \
">http://gcc.gnu.org/ml/gcc-help/2004-01/msg00225.html</a> &gt;

Ian was somewhat wrong in using "compiler" term in his explanation but
it is an understandable term since GCC is GNU C Compiler.  He adds
that it is used during the link phase.

&gt; -mwindows is a compiler flag, even if it adds libs to the linker libs list

-mwindows is a GCC front end option to supply the linker with the
correct set of flags.  The linker itself however does not understand
-mwindows.  The truth is in -dumpspecs and -mwindows does more than
add libraries.

-- 
Earnie
-- <a href="https://sites.google.com/site/earnieboyd" target="_new" style="color: \
rgb(0, 102, 153); text-decoration: none; margin: 0px; padding: 0px; vertical-align: \
baseline; background-color: transparent; outline: none; \
">https://sites.google.com/site/earnieboyd</a> </pre></td></tr></tbody></table><br \
class="Apple-interchange-newline"></div></div></body></html>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may \
cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic