* MINGW32
@ 1999-11-22 12:10 Uri Yanover
1999-11-22 13:07 ` MINGW32 Mumit Khan
1999-11-30 23:28 ` MINGW32 Uri Yanover
0 siblings, 2 replies; 10+ messages in thread
From: Uri Yanover @ 1999-11-22 12:10 UTC (permalink / raw)
To: help-gcc
Hello anybody!
I am a beginning programmer for Windows. I heard of GNU ports for
DOS/Windows. I chose MINGW32 , so I downloaded the binaries, the libraries,
the tools etc. I installed it (unzipped and set up the environment). Then I
compiled and linked a few examples (one from the SDK and one from Petzold)
using the main libraries (user32, gdi32, kernel32, comdlg32 and comctl32),
like this.
SET DEFAULTLIB=c:\mingw32\lib
SET GUILIBS=-L%DEFAULTLIB% -luser32 -lgdi32 -lkernel32 -lcomdlg32 -lcomctl32
gcc -c hellowin.c
gcc -o hellowin.exe hellowin.o %GUILIBS%
It generally worked, but it shows up a console window. It is reported as
c:\windows\system\conagent.exe in its properties, but I guess it is not so
informative. I also know that each Win32 application has a console attached
to it, but as far as I know the startup code should normally get rid of it.
Unfortunately, I do not have enough experience to clear it all up myself, so
I would like to ask you. Any help would be appreciated.
Uri
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MINGW32
1999-11-22 12:10 MINGW32 Uri Yanover
@ 1999-11-22 13:07 ` Mumit Khan
1999-11-23 12:30 ` MINGW32 Uri Yanover
` (2 more replies)
1999-11-30 23:28 ` MINGW32 Uri Yanover
1 sibling, 3 replies; 10+ messages in thread
From: Mumit Khan @ 1999-11-22 13:07 UTC (permalink / raw)
To: help-gcc
In article < 3839a2d9@news.bezeqint.net >, Uri Yanover <uriyan@yahoo.com> wrote:
>Hello anybody!
>I am a beginning programmer for Windows. I heard of GNU ports for
>DOS/Windows. I chose MINGW32 , so I downloaded the binaries, the libraries,
>the tools etc. I installed it (unzipped and set up the environment). Then I
>compiled and linked a few examples (one from the SDK and one from Petzold)
>using the main libraries (user32, gdi32, kernel32, comdlg32 and comctl32),
>like this.
What version are you running? The latest versions are at:
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/
No setup required, just run self-extracting executable to install,
add the binary directory to PATH and go.
>SET DEFAULTLIB=c:\mingw32\lib
Not needed in the new releases (4 in the last 1-1/2 years or so).
>SET GUILIBS=-L%DEFAULTLIB% -luser32 -lgdi32 -lkernel32 -lcomdlg32 -lcomctl32
-luser32 and -lkernel32 are automatically linked in, so no need. `gcc -v'
when linking shows exactly what's being linked in, so that's a good
diagnostic tool.
>gcc -c hellowin.c
>gcc -o hellowin.exe hellowin.o %GUILIBS%
Add -mwindows, which expands to the following, to avoid the DOS window:
-Wl,--subsystem,windows -lgdi32 -lcomdlg32
So, the following are equivalent:
$ gcc -c hellowin.c
$ gcc -o hellowin.exe hellowin.o -mwindows -lcomctl32
To see what's going on, add the -v option:
$ gcc -v -o hellowin.exe hellowin.o -mwindows -lcomctl32
Mingw32 questions are probably best posted to the appropriate mailing
lists -
- Cygwin -- http://sourceware.cygnus.com/lists.html ) -- Mingw and Cygwin
share the same development tools, so the answers are the same.
- Mingw32 -- http://www.eGroups.COM/lists/mingw32.html
Regards,
Mumit
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MINGW32
1999-11-22 13:07 ` MINGW32 Mumit Khan
@ 1999-11-23 12:30 ` Uri Yanover
1999-11-30 23:28 ` MINGW32 Uri Yanover
1999-11-27 21:59 ` MINGW32 Bill Bartley
1999-11-30 23:28 ` MINGW32 Mumit Khan
2 siblings, 1 reply; 10+ messages in thread
From: Uri Yanover @ 1999-11-23 12:30 UTC (permalink / raw)
To: help-gcc
Thanks for the helpful information!
I was using MINGW32 based on GCC 2.8.1 under Windows 95's DOS box and I
never knew that there was a newer vesion.
Thanks again,
Uri
Mumit Khan <khan@xraylith.wisc.edu> wrote in message
news: 81cacv$mjm$1@news.doit.wisc.edu ...
> In article < 3839a2d9@news.bezeqint.net >, Uri Yanover <uriyan@yahoo.com>
wrote:
> >Hello anybody!
> >I am a beginning programmer for Windows. I heard of GNU ports for
> >DOS/Windows. I chose MINGW32 , so I downloaded the binaries, the
libraries,
> >the tools etc. I installed it (unzipped and set up the environment). Then
I
> >compiled and linked a few examples (one from the SDK and one from
Petzold)
> >using the main libraries (user32, gdi32, kernel32, comdlg32 and
comctl32),
> >like this.
>
> What version are you running? The latest versions are at:
>
> http://www.xraylith.wisc.edu/~khan/software/gnu-win32/
>
> No setup required, just run self-extracting executable to install,
> add the binary directory to PATH and go.
>
> >SET DEFAULTLIB=c:\mingw32\lib
>
> Not needed in the new releases (4 in the last 1-1/2 years or so).
>
> >SET
GUILIBS=-L%DEFAULTLIB% -luser32 -lgdi32 -lkernel32 -lcomdlg32 -lcomctl32
>
> -luser32 and -lkernel32 are automatically linked in, so no need. `gcc -v'
> when linking shows exactly what's being linked in, so that's a good
> diagnostic tool.
>
> >gcc -c hellowin.c
> >gcc -o hellowin.exe hellowin.o %GUILIBS%
>
> Add -mwindows, which expands to the following, to avoid the DOS window:
> -Wl,--subsystem,windows -lgdi32 -lcomdlg32
>
> So, the following are equivalent:
>
> $ gcc -c hellowin.c
> $ gcc -o hellowin.exe hellowin.o -mwindows -lcomctl32
>
> To see what's going on, add the -v option:
>
> $ gcc -v -o hellowin.exe hellowin.o -mwindows -lcomctl32
>
> Mingw32 questions are probably best posted to the appropriate mailing
> lists -
>
> - Cygwin -- http://sourceware.cygnus.com/lists.html ) -- Mingw and Cygwin
> share the same development tools, so the answers are the same.
> - Mingw32 -- http://www.eGroups.COM/lists/mingw32.html
>
> Regards,
> Mumit
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MINGW32
1999-11-23 12:30 ` MINGW32 Uri Yanover
@ 1999-11-30 23:28 ` Uri Yanover
0 siblings, 0 replies; 10+ messages in thread
From: Uri Yanover @ 1999-11-30 23:28 UTC (permalink / raw)
To: help-gcc
Thanks for the helpful information!
I was using MINGW32 based on GCC 2.8.1 under Windows 95's DOS box and I
never knew that there was a newer vesion.
Thanks again,
Uri
Mumit Khan <khan@xraylith.wisc.edu> wrote in message
news: 81cacv$mjm$1@news.doit.wisc.edu ...
> In article < 3839a2d9@news.bezeqint.net >, Uri Yanover <uriyan@yahoo.com>
wrote:
> >Hello anybody!
> >I am a beginning programmer for Windows. I heard of GNU ports for
> >DOS/Windows. I chose MINGW32 , so I downloaded the binaries, the
libraries,
> >the tools etc. I installed it (unzipped and set up the environment). Then
I
> >compiled and linked a few examples (one from the SDK and one from
Petzold)
> >using the main libraries (user32, gdi32, kernel32, comdlg32 and
comctl32),
> >like this.
>
> What version are you running? The latest versions are at:
>
> http://www.xraylith.wisc.edu/~khan/software/gnu-win32/
>
> No setup required, just run self-extracting executable to install,
> add the binary directory to PATH and go.
>
> >SET DEFAULTLIB=c:\mingw32\lib
>
> Not needed in the new releases (4 in the last 1-1/2 years or so).
>
> >SET
GUILIBS=-L%DEFAULTLIB% -luser32 -lgdi32 -lkernel32 -lcomdlg32 -lcomctl32
>
> -luser32 and -lkernel32 are automatically linked in, so no need. `gcc -v'
> when linking shows exactly what's being linked in, so that's a good
> diagnostic tool.
>
> >gcc -c hellowin.c
> >gcc -o hellowin.exe hellowin.o %GUILIBS%
>
> Add -mwindows, which expands to the following, to avoid the DOS window:
> -Wl,--subsystem,windows -lgdi32 -lcomdlg32
>
> So, the following are equivalent:
>
> $ gcc -c hellowin.c
> $ gcc -o hellowin.exe hellowin.o -mwindows -lcomctl32
>
> To see what's going on, add the -v option:
>
> $ gcc -v -o hellowin.exe hellowin.o -mwindows -lcomctl32
>
> Mingw32 questions are probably best posted to the appropriate mailing
> lists -
>
> - Cygwin -- http://sourceware.cygnus.com/lists.html ) -- Mingw and Cygwin
> share the same development tools, so the answers are the same.
> - Mingw32 -- http://www.eGroups.COM/lists/mingw32.html
>
> Regards,
> Mumit
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MINGW32
1999-11-22 13:07 ` MINGW32 Mumit Khan
1999-11-23 12:30 ` MINGW32 Uri Yanover
@ 1999-11-27 21:59 ` Bill Bartley
1999-11-28 11:45 ` MINGW32 Mumit Khan
1999-11-30 23:28 ` MINGW32 Bill Bartley
1999-11-30 23:28 ` MINGW32 Mumit Khan
2 siblings, 2 replies; 10+ messages in thread
From: Bill Bartley @ 1999-11-27 21:59 UTC (permalink / raw)
To: help-gcc
Perhaps that first link should be " http://sourceware.cygnus.com/ml/ " ?
Bill
Mumit Khan wrote:
>
> Mingw32 questions are probably best posted to the appropriate mailing
> lists -
>
> - Cygwin -- http://sourceware.cygnus.com/lists.html ) -- Mingw and Cygwin
> share the same development tools, so the answers are the same.
> - Mingw32 -- http://www.eGroups.COM/lists/mingw32.html
>
> Regards,
> Mumit
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MINGW32
1999-11-22 13:07 ` MINGW32 Mumit Khan
1999-11-23 12:30 ` MINGW32 Uri Yanover
1999-11-27 21:59 ` MINGW32 Bill Bartley
@ 1999-11-30 23:28 ` Mumit Khan
2 siblings, 0 replies; 10+ messages in thread
From: Mumit Khan @ 1999-11-30 23:28 UTC (permalink / raw)
To: help-gcc
In article < 3839a2d9@news.bezeqint.net >, Uri Yanover <uriyan@yahoo.com> wrote:
>Hello anybody!
>I am a beginning programmer for Windows. I heard of GNU ports for
>DOS/Windows. I chose MINGW32 , so I downloaded the binaries, the libraries,
>the tools etc. I installed it (unzipped and set up the environment). Then I
>compiled and linked a few examples (one from the SDK and one from Petzold)
>using the main libraries (user32, gdi32, kernel32, comdlg32 and comctl32),
>like this.
What version are you running? The latest versions are at:
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/
No setup required, just run self-extracting executable to install,
add the binary directory to PATH and go.
>SET DEFAULTLIB=c:\mingw32\lib
Not needed in the new releases (4 in the last 1-1/2 years or so).
>SET GUILIBS=-L%DEFAULTLIB% -luser32 -lgdi32 -lkernel32 -lcomdlg32 -lcomctl32
-luser32 and -lkernel32 are automatically linked in, so no need. `gcc -v'
when linking shows exactly what's being linked in, so that's a good
diagnostic tool.
>gcc -c hellowin.c
>gcc -o hellowin.exe hellowin.o %GUILIBS%
Add -mwindows, which expands to the following, to avoid the DOS window:
-Wl,--subsystem,windows -lgdi32 -lcomdlg32
So, the following are equivalent:
$ gcc -c hellowin.c
$ gcc -o hellowin.exe hellowin.o -mwindows -lcomctl32
To see what's going on, add the -v option:
$ gcc -v -o hellowin.exe hellowin.o -mwindows -lcomctl32
Mingw32 questions are probably best posted to the appropriate mailing
lists -
- Cygwin -- http://sourceware.cygnus.com/lists.html ) -- Mingw and Cygwin
share the same development tools, so the answers are the same.
- Mingw32 -- http://www.eGroups.COM/lists/mingw32.html
Regards,
Mumit
^ permalink raw reply [flat|nested] 10+ messages in thread
* MINGW32
1999-11-22 12:10 MINGW32 Uri Yanover
1999-11-22 13:07 ` MINGW32 Mumit Khan
@ 1999-11-30 23:28 ` Uri Yanover
1 sibling, 0 replies; 10+ messages in thread
From: Uri Yanover @ 1999-11-30 23:28 UTC (permalink / raw)
To: help-gcc
Hello anybody!
I am a beginning programmer for Windows. I heard of GNU ports for
DOS/Windows. I chose MINGW32 , so I downloaded the binaries, the libraries,
the tools etc. I installed it (unzipped and set up the environment). Then I
compiled and linked a few examples (one from the SDK and one from Petzold)
using the main libraries (user32, gdi32, kernel32, comdlg32 and comctl32),
like this.
SET DEFAULTLIB=c:\mingw32\lib
SET GUILIBS=-L%DEFAULTLIB% -luser32 -lgdi32 -lkernel32 -lcomdlg32 -lcomctl32
gcc -c hellowin.c
gcc -o hellowin.exe hellowin.o %GUILIBS%
It generally worked, but it shows up a console window. It is reported as
c:\windows\system\conagent.exe in its properties, but I guess it is not so
informative. I also know that each Win32 application has a console attached
to it, but as far as I know the startup code should normally get rid of it.
Unfortunately, I do not have enough experience to clear it all up myself, so
I would like to ask you. Any help would be appreciated.
Uri
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~1999-11-30 23:28 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-22 12:10 MINGW32 Uri Yanover
1999-11-22 13:07 ` MINGW32 Mumit Khan
1999-11-23 12:30 ` MINGW32 Uri Yanover
1999-11-30 23:28 ` MINGW32 Uri Yanover
1999-11-27 21:59 ` MINGW32 Bill Bartley
1999-11-28 11:45 ` MINGW32 Mumit Khan
1999-11-30 23:28 ` MINGW32 Mumit Khan
1999-11-30 23:28 ` MINGW32 Bill Bartley
1999-11-30 23:28 ` MINGW32 Mumit Khan
1999-11-30 23:28 ` MINGW32 Uri Yanover
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).