1

I distribute a c++ program made with visual studio.

Whenever I need to give it to someone I just edit the code with some infos regarding this person to track the executable usage.

I have a server running ubuntu, I already made a shell script that automates the code changes but I can't find a way to compile a visual studio project on linux for windows.

Is it even possible ?

Thanks.

3
  • Possible duplicate of How to compile for Windows on Linux with gcc/g++? Commented Oct 31, 2016 at 1:27
  • 1
    Not really since I want to compile with visual studio Commented Oct 31, 2016 at 9:44
  • There is no VS on linux ! Commented Oct 31, 2016 at 13:42

2 Answers 2

1

How complex is your Visual Studio project? If it is basically a straightforward project, you should be able to write a Makefile with minimal effort. If Visual studio basically auto-created your project and you did very little customization, other than small stuff like include directories, then the Makefile should be pretty simple.

Sign up to request clarification or add additional context in comments.

1 Comment

It is pretty complex in terms of libraries, for example I use boost and others, I already tried a port from visual studio to mingw and it did not go very well that's why I would like to keep my visual studio project ^^
0

There is an option for such a development.

Install all dev libraries with vcpkg tool on Windows. Install all dev libraries with apt-get tool on Ubuntu.

Create cross-platform Linux project in VS2017. Add there all your files from Windows project. Set up remote Ubuntu server(I'm using VirtualBox with Ubuntu installed). Compile and debug your project on Ubuntu server just from VS2017.

There is one problem I'm looking solution for: auto-refresh Linux project according to file changes (add/remove only as modifications are auto-refreshing) in your Windows project, but that is a minor issue.

Have a nice day :)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.