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?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.