We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Will a Windows program run on linux?

Ok what I mean is if i build say a client and server side (network) program in c++ on linux. Will i be able to run it on windows?

i know that linux creates .o files and those are executed. were windows create .exe files and thos are executed. I am actualy wondering if the libraries would work. windows you would use the wsocks2.h and linux you use sys/sock.h.

They are differint so would i work or not?

2
Contributors
1
Reply
3 Minutes
Discussion Span
9 Months Ago
Last Updated
3
Views
Question
Answered
MasterHacker110
Junior Poster
189 posts since Dec 2011
Reputation Points: 6
Solved Threads: 0
Skill Endorsements: 0

It wouldn't work without an emulation layer or cross compiling with a Windows target. The format of object code files is different between Linux and Windows.

deceptikon
Challenge Accepted
Administrator
3,499 posts since Jan 2012
Reputation Points: 822
Solved Threads: 481
Skill Endorsements: 58
Question Answered as of 2 Months Ago by deceptikon

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0577 seconds using 2.65MB