RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
 
Post new topic Reply to topic  
View previous topic - View next topic  
Author Message
Ninkazu
Demon Hunter


Joined: 08 Aug 2002
Posts: 945
Location: Location:

PostPosted: Wed Jul 16, 2003 8:25 pm    Post subject: Wait, I'm confused... [quote]

With GLUT, a program can be made cross compatible, right? Or do I have to use gcc as the compiler ONLY? Is it possible to make cross-compatible programs with MinGW or VC++6?
Back to top  
valderman
Mage


Joined: 29 Aug 2002
Posts: 334
Location: Gothenburg, Sweden

PostPosted: Wed Jul 16, 2003 9:09 pm    Post subject: [quote]

I'm pretty sure you can't cross-compile with GCC either, you'll have to recompile your executable for each platform. If you use GLUT, though, you won't need to change as much of your code to port it.
_________________
http://www.weeaboo.se
Back to top  
Bjorn
Demon Hunter


Joined: 29 May 2002
Posts: 1425
Location: Germany

PostPosted: Wed Jul 16, 2003 9:39 pm    Post subject: [quote]

I didn't think Ninkazu was talking about cross compiling, but rather just being crosplatform compatible. GLUT can be used with VC++6 easily, it's just a matter of finding the include, lib and dll files (ie. a binary distribution for MSVC).

Of course, you ought to be able to compile it yourself too, but this tends to be more difficult and error prone.

GLUT for Win32:
http://www.xmission.com/~nate/glut.html
Back to top  
Ninkazu
Demon Hunter


Joined: 08 Aug 2002
Posts: 945
Location: Location:

PostPosted: Wed Jul 16, 2003 10:29 pm    Post subject: [quote]

Well, I don't really know how to use gcc, so how would I go about compiling my code for Win32 and Linux?
Back to top  
LeoDraco
Demon Hunter


Joined: 24 Jun 2003
Posts: 584
Location: Riverside, South Cali

PostPosted: Thu Jul 17, 2003 2:53 am    Post subject: [quote]

Ninkazu wrote:
Well, I don't really know how to use gcc, so how would I go about compiling my code for Win32 and Linux?


Information about gcc and make can be found at GNU. While the two manuals might be a tad bit imposing (and I doubt that you'll ever need all of the features that gcc provides), they do make for relatively good reference material. The easiest way by which to use gcc is to write a makefile for each project you write (which is why I linked you to make).

However, if you're looking for a way to compile Win32 and Linux binaries, I wouldn't know exactly how to help you. To my knowledge, there isn't a compiler that does that. However, if you wanted to roll your own compiler, you could always look at the a.out and exe formats listed at Wotsit. Course, if you could roll your own compiler... Heh.

[edit]
Okay, seems I can make a liar out of myself sometimes. While researching something totally unrelated I ran across this reference at MinGW, which might be what you're looking for. I don't know how precise it is, but it might put you in the right direction.
[/edit]

Sorry if none of that was useful.
_________________
"...LeoDraco is a pompus git..." -- Mandrake
Back to top  
Post new topic Reply to topic Page 1 of 1 All times are GMT
 



Display posts from previous:   
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum