Windows compilers

What compilers do people use for windows apps? I’m writing a cross
platform game engine of some sort for my college project (That’s what I
call education!) and I’ve done most of my programming with gcc. I need
something that will allow me to easily use code I’ve written under linux in
windows.
I have Borland Builder 5 around here, has anyone ever used that?

-Garrett, http://www.wpi.edu/~mongoose/
“Do not go where the path may lead, go instead where there is no path and
leave a trail.”
-Ralph Waldo Emerson

What compilers do people use for windows apps? I’m writing a cross
platform game engine of some sort for my college project (That’s what I
call education!) and I’ve done most of my programming with gcc.

Why not stick with gcc? =) =)

http://www.mingw.org

Dan

Hmm, whats involved in writing a program that works on both linux and
windows? Using SDL of course. Like do you have to do alot of win API coding
with special #ifdef WIN32? Doesn’t SDL handle the winmain() function somehow?

At 04:01 PM 6/16/00 -0400, you wrote:

What compilers do people use for windows apps? I’m writing a cross
platform game engine of some sort for my college project (That’s what I
call education!) and I’ve done most of my programming with gcc.

Why not stick with gcc? =) =)

http://www.mingw.org

Dan

-Garrett, http://www.wpi.edu/~mongoose/
“Do not go where the path may lead, go instead where there is no path and
leave a trail.”
-Ralph Waldo Emerson

At 15.00 16/06/00 -0400, you wrote:

What compilers do people use for windows apps? I’m writing a cross
platform game engine of some sort for my college project (That’s what I
call education!) and I’ve done most of my programming with gcc. I need
something that will allow me to easily use code I’ve written under linux in
windows.
I have Borland Builder 5 around here, has anyone ever used that?

-Garrett, http://www.wpi.edu/~mongoose/
“Do not go where the path may lead, go instead where there is no path and
leave a trail.”
-Ralph Waldo Emerson

If you’re familiar with gcc, I think the best thing to do is to use the
Cygnus gcc for Windows. http://sourceware.cygnus.com/cygwin__
Fabio " ‘- nowDruid " Franchello
—’---------
@Fabio_SnowDruid_Fran

by linking sdlmain.lib, one can get around using the win32 API and
winmain.

Just create a main function in your application called:

main( int argc, char *argv[] )
{
return 0;
}

-Ryan

Fabio ‘SnowDruid’ Franchello wrote:>

At 15.00 16/06/00 -0400, you wrote:

What compilers do people use for windows apps? I’m writing a cross
platform game engine of some sort for my college project (That’s what I
call education!) and I’ve done most of my programming with gcc. I need
something that will allow me to easily use code I’ve written under linux in
windows.
I have Borland Builder 5 around here, has anyone ever used that?

-Garrett, http://www.wpi.edu/~mongoose/
“Do not go where the path may lead, go instead where there is no path and
leave a trail.”
-Ralph Waldo Emerson

If you’re familiar with gcc, I think the best thing to do is to use the
Cygnus gcc for Windows. http://sourceware.cygnus.com/cygwin

                 __
      Fabio   " '- nowDruid "  Franchello
               ---'---------
       ---  snowdruid at tiscalinet.it  ---

Garrett Banuk wrote:

Hmm, whats involved in writing a program that works on both linux and
windows? Using SDL of course. Like do you have to do alot of win API coding
with special #ifdef WIN32? Doesn’t SDL handle the winmain() function somehow?

Actually, if your app uses all SDL functions, and standard
C/C++ library calls, then there is very little effort required
at all. I even cross-compile my code and build both linux and
windows binaries from the same build script.

What compilers do people use for windows apps?

Now I’m using free Borland C++ compiler (command line)
and it works great!
Debugging can be done with Turbo Debugger 32
(that comes with C++ developement suite 5,
take for free in a magazine!)

Enzo.–
E-mail enzo.gupi at tiscalinet.it
Home page http://enzogupi.interfree.it

I’m thinking I’ll try Borland Builder 5 for my windows stuff. Most of my
devel will be done under linux anyways, so all I’m really doing with
windows stuff is compiling and maybe debugging if something shows up only
under windows.

At 08:55 AM 6/19/00 +0200, you wrote:

What compilers do people use for windows apps?

Now I’m using free Borland C++ compiler (command line)
and it works great!
Debugging can be done with Turbo Debugger 32
(that comes with C++ developement suite 5,
take for free in a magazine!)

Enzo.


E-mail enzo.gupi at tiscalinet.it
Home page http://enzogupi.interfree.it

-Garrett, http://www.wpi.edu/~mongoose/
“Do not go where the path may lead, go instead where there is no path and
leave a trail.”
-Ralph Waldo Emerson

I’m just now getting interested in cross compiling (which means I need
to set up GCC for cross compiline). Would you mind posting or sending me
an example of your build script? I assume it’s a Makefile with an
additional target?

Mike

Ray Kelm wrote:>

Garrett Banuk wrote:

Hmm, whats involved in writing a program that works on both linux and
windows? Using SDL of course. Like do you have to do alot of win API coding
with special #ifdef WIN32? Doesn’t SDL handle the winmain() function somehow?

Actually, if your app uses all SDL functions, and standard
C/C++ library calls, then there is very little effort required
at all. I even cross-compile my code and build both linux and
windows binaries from the same build script.

I havn’t actually done this yet, I’m still looking into it myself. But if
your going to use makefiles then I’m assuming that youd have to use some
port of gcc or something? Or can gcc in linux make windows binaries?

At 11:53 AM 6/19/00 -0500, you wrote:

I’m just now getting interested in cross compiling (which means I need
to set up GCC for cross compiline). Would you mind posting or sending me
an example of your build script? I assume it’s a Makefile with an
additional target?

Mike

Ray Kelm wrote:

Garrett Banuk wrote:

Hmm, whats involved in writing a program that works on both linux and
windows? Using SDL of course. Like do you have to do alot of win API
coding

with special #ifdef WIN32? Doesn’t SDL handle the winmain() function
somehow?

Actually, if your app uses all SDL functions, and standard
C/C++ library calls, then there is very little effort required
at all. I even cross-compile my code and build both linux and
windows binaries from the same build script.

-Garrett, http://www.wpi.edu/~mongoose/
“Do not go where the path may lead, go instead where there is no path and
leave a trail.”
-Ralph Waldo Emerson

Michael Vanecek wrote:

I’m just now getting interested in cross compiling (which means I need
to set up GCC for cross compiline). Would you mind posting or sending me
an example of your build script? I assume it’s a Makefile with an
additional target?

Mike

Ray Kelm wrote:

Garrett Banuk wrote:

Hmm, whats involved in writing a program that works on both linux and
windows? Using SDL of course. Like do you have to do alot of win API coding
with special #ifdef WIN32? Doesn’t SDL handle the winmain() function somehow?

Actually, if your app uses all SDL functions, and standard
C/C++ library calls, then there is very little effort required
at all. I even cross-compile my code and build both linux and
windows binaries from the same build script.

I am using autoconf, aclocal, and automake.

My current project is available on the web, but it’s not
to a point where I wanted to announce it to the list yet :slight_smile:

Here goes anyway:

http://www.newimage.com/~rhk/cyclone

It’s a 2d shooter scrolling game, and is still under
rapid development, so take it easy on me…

I’ll probably be moving it to sourceforge soon since my
site is only on a 64K ISDN, and can’t handle a lot of
traffic.

Included in the source tar.gz is the configure.in, Makefile.am,
and so on files to build for unix-like systems, and cross-build
for win32.

Garrett Banuk wrote:

I havn’t actually done this yet, I’m still looking into it myself. But if
your going to use makefiles then I’m assuming that youd have to use some
port of gcc or something? Or can gcc in linux make windows binaries?

There is a version of mingw32 on the SDL web site which can
cross compile from linux to win32.

There are directions in the README.win32 file in the SDL
source archive. The docs hint that you might be able to
build DLL’s of SDL using the instructions in the README,
but don’t count on it working without you making some
changes to the scripts :slight_smile:

Ray Kelm wrote:

My current project is available on the web,
but it’s not to a point where I wanted to
announce it to the list yet :slight_smile:

Here goes anyway:

http://www.newimage.com/~rhk/cyclone

It’s a 2d shooter scrolling game, and is
still under rapid development, so take it
easy on me…

Got it up and running with VC6 on NT4, looks great. I am considering using
your SDL_gui with my project. Will you be generating Win32 DLL’s with the
cross-compiler? I didn’t see any of the typical “extern DECLSPEC” stuff in
the “SDL_gui.h”. Any thoughts on VC++ development binaries? (I know, I seem
to be stuck on that subject today :slight_smile:

  • Randi

Regimental Command
Generic Armored Combat System
http://www-users.cs.umn.edu/~relander/regcom/index.html

Michael Vanecek wrote:

I’m just now getting interested in cross compiling (which means I need
to set up GCC for cross compiline). Would you mind posting or sending me
an example of your build script? I assume it’s a Makefile with an
additional target?

Mike

Here is a script that will build a windows cross compiling gcc for you.
Just set the directories where things should be built and installed
at the top of the file and then run it under bash.

Mo DeJong
Red Hat Inc
-------------- next part --------------
A non-text attachment was scrubbed…
Name: build_cross_mingw32.sh
Type: application/x-sh
Size: 4195 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000619/814b1e34/attachment.sh

“Randi J. Relander” wrote:

Got it up and running with VC6 on NT4, looks great. I am considering using
your SDL_gui with my project. Will you be generating Win32 DLL’s with the
cross-compiler? I didn’t see any of the typical “extern DECLSPEC” stuff in
the “SDL_gui.h”. Any thoughts on VC++ development binaries? (I know, I seem
to be stuck on that subject today :slight_smile:

  • Randi

Regimental Command
Generic Armored Combat System
http://www-users.cs.umn.edu/~relander/regcom/index.html

I’ll be adding the DECLSPEC stuff soon. There is another thread here
I believe with the VC++ dev stuff…