- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want tocompile code forexecution on aLinux based server; however, I will be developing the code on Windows based labtop and then running it on the server through remote desktop (VNC). The code is relatively portable other than some system calls to run specific software in batch mode.
Is it possible to compile the code for Linux in Windows? (Preferably using Visual Studio)
Cheers,
Chris
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - mequeensboyle
Is it possible to compile the code for Linux in Windows? (Preferably using Visual Studio)
It's only possible if you can run your Windows exe under Wine or Mono, but you can't get Linux native executables. Of course, the non-portable portions will be unuseable.
Jack
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In principle, a gfortran cross compiler could be made which runs on Windows and generates linux code. The other way round is much more popular.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page