Valhalla Legends Forums Archive | General Discussion | C/C++

AuthorMessageTime
Mangix
if i make a program in C or C++, will it work on Linux and Mac?
March 19, 2005, 7:35 AM
K
Yes, if it's source compatible.
March 19, 2005, 8:15 AM
Quarantine
If it's compiled on the platform that you want to use it on most times since the implementation of the C runtimes vary from OS to OS see if you make a graphical C++ program under Windows you would have to use Linux to run it but for the most part if you use the standard libraries I believe you should be fine
March 19, 2005, 1:20 PM
Myndfyr
[quote author=Warrior link=topic=10960.msg104510#msg104510 date=1111238429]
if you make a graphical C++ program under Windows you would have to use Linux to run it
[/quote]

...errr?

For cross-platform GUI support, I highly recommend wxWidgets.
March 19, 2005, 1:29 PM
iago
It likely won't, unless you spend a lot of time trying to make it cross platform.

There are many toolkits like gtk, wxWidgets, etc. to help you.

Also, you should look into autoconf and automake which are standard tools for generating Makefiles which help you compile your code properly on every platform.
March 19, 2005, 7:51 PM
Adron
Also, command line programs are easy to make portable, very much easier than GUI.
March 19, 2005, 9:01 PM
JoeTheOdd
You should probably try porting it to Java, which wouldn't be too hard because their both Carbon variants. Since java code is run through an executable itself, java.exe for Windows, a single "executable" .class file is usable under Windows, MacOS X, *nix, and any other platform the Java RE runs on.
March 19, 2005, 10:52 PM
Mephisto
[quote author=Joey link=topic=10960.msg104569#msg104569 date=1111272754]
You should probably try porting it to Java, which wouldn't be too hard because their both Carbon variants. Since java code is run through an executable itself, java.exe for Windows, a single "executable" .class file is usable under Windows, MacOS X, *nix, and any other platform the Java RE runs on.
[/quote]

He doesn't want to use an incomplete language like Java.  :)
March 20, 2005, 2:31 AM
Mangix
lol hahahahaha. i dunno how to code in C++. i just wanted to know if it was possible.
March 20, 2005, 4:43 AM

Search