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.
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.
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
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
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.
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!)
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!)
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
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
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
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
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.
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