compiling for linux and mac

Just starting out? Need help? Post your questions and find answers here.
jcoggins
User
User
Posts: 25
Joined: Sat Apr 12, 2008 12:30 am

compiling for linux and mac

Post by jcoggins »

How do I get PB to compile programs for linux and mac computers? The .exe files it creates work great on windows but I cannot get them to work on linux or mac computers.

Jason
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

You need to compile an executable for each OS by running PB on each OS.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
jcoggins
User
User
Posts: 25
Joined: Sat Apr 12, 2008 12:30 am

Post by jcoggins »

Does that mean that I have to physically install PB on each type of computer, manually move the code to each installation and build it three seperate times?

Isn't there some setting in the compiler that I can set that will tell it to compile for each of the different operating systems?

Jason
aaron
Enthusiast
Enthusiast
Posts: 267
Joined: Mon Apr 19, 2004 3:04 am
Location: Canada
Contact:

Post by aaron »

Yes, you have to compile on the target system. Purebasic won't cross-compile.
Post Reply