Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running on Linux
Message
From
10/04/2005 22:24:41
 
 
To
10/04/2005 08:08:38
General information
Forum:
Visual C++
Category:
Other
Miscellaneous
Thread ID:
01003186
Message ID:
01003273
Views:
18
Hello,

if you would only use ISO standard C++ language/classes it would be possible but normally this is not the case.

for example the user interface (there are completly different API's under Windows/Linux for this) (but you can run a C++ program written for Windows user interface with "Wine" (a Windows Emulator for Linux))

there're almost unlimited api's that are either completly different on windows/linux or not available at all on one of these platform's.

it all depends what kinda program you want to write -> what features it needs -> what API's it has to deal with.

having said this I think it's very very unlikely that you can compile to a windows/linux version from the same source without modification

if you're lucky you'll get away with a few #ifdef statements in some header files ..
if you're unlucky you have to write some parts of the application multiple times for each operating systems you want to support

Regards
Christian
Previous
Reply
Map
View

Click here to load this message in the networking platform