Just a simple question, might sound stupid even. :)

If I write a C program that incorporates execv or fork, does it work properly if I run the program on Windows? I heard that they are associated with Linux based system.

c

Recommended Answers

you will have to recompile the program. Whether it will compile depends on your compiler. You will have a better chance at that if you use Code::Blocks with MinGW compiler, which is a port of the same compiler on *nix.

Jump to Post

All 2 Replies

you will have to recompile the program. Whether it will compile depends on your compiler. You will have a better chance at that if you use Code::Blocks with MinGW compiler, which is a port of the same compiler on *nix.

It may or it may not. depends you have all the the header file which it want. if you have , then no point that it will not compile, and if not, then there is not any question of running ;) simple!

Be a part of the DaniWeb community

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