954,483 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

about compiling in Linux and windows

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

ravenrider
Light Poster
25 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

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

WaltP
Posting Sage w/ dash of thyme
Moderator
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 
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 :)

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 
Have you ever heard of wine? That should do trick to run windows exe in linux :)


Did I misunderstand his question?

WaltP
Posting Sage w/ dash of thyme
Moderator
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 

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

ravenrider
Light Poster
25 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You