0

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
Views
5 Years
Discussion Span
Last Post by deceptikon
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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.