Hello
I was always wondering whats the difference between compiling in these different environment Linux and Windows ! and
Why can’t we just run the same executable file (compiled in Linux) both on Windows 7 and Ubuntu?


also I

The executable files in these systems are different. They follow the conventions of the OS. That is why they are not interchangable.

Why can’t we just run the same executable file (compiled in Linux) both on Windows 7 and Ubuntu?

Have you ever heard of wine? That should do trick to run windows exe in linux :)

Have you ever heard of wine? That should do trick to run windows exe in linux :)

Did I misunderstand his question?

thanks for responding ...I know you can run softwares using Wine, I just want to know why when you compile code on linux sometimes it wont work on windows ! exe file especially !
thanks