Programming for Windows in a Linux environment

Hello

I am programming a program, which should only be able to be ran on Windows.
But, I've got a Linux machine. So, I've got a problem.

How do I make it, that my compiler (G++) is able to detect Windows functions and see if I made an error in it? My Linux doesn't need to run the program, it only needs to be able to do error checking and compiling.

Anyway to do this?
Error-checking and compiling Windows functions/code on a Linux machine, but not necessary being able to run them?

Thanks a lot for reading,
Niely
install windows in a virtual machine, and get a visual studio express edition?

I used virtualbox in Linux a few years ago to do this.
I've got that.
But isn't it possible to for example compile functions like 'GetModuleFileName()' on Linux, and run them on Windows?
which should only be able to be ran on Windows


if it's ONLY to be run on windows why do you want to implement it on a Linux box?
Because all my tools and setup is on Linux. I like programming more on Linux,...

Don't tell me that all programmers running Linux switch 100% Windows to when they need to program for Windows.
no, they more often than not install a windows VM on their Linux box, but you don't want to seem to do that :)

Just to clarify, do you want a program that ONLY runs on windows (like you said), or do you want a cross-platform solution?
^It should ONLY run on Windows. Of course, it's no problem if it also works on Linux.
But it's supposed only for Windows. Not Cross-platform.
OP wrote:
Because all my tools and setup is on Linux. I like programming more on Linux,...

Can I be the one to point out that all of the "tools" that you have setup for programming in your Linux environment, are likely tools that are only really useful for programming in Linux unless your want to completely reconfigure them? Anyway mutexe is correct, a VM is the most complete solution for what you are trying to do.
Last edited on
Topic archived. No new replies allowed.