Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (6.1k points)

Why is there this fact that a program developed under Windows in C++ be used under Linux?

1 Answer

0 votes
by (11.7k points)

There are different container formats being used to hold the executable code. There is a huge difference between windows and Linux APIs and also the directory structure is pretty much different in both. 

 

You can write a program that can use either set of APIs and that can handle either directory structure, but you still can’t run the same file on both operating systems because of the difference in container formats.

You can solve this by using Wine.

Want to get in-depth knowledge of Linux, check out this Linux course from Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Dec 1, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...