I was wondering if it's possible to create a shared library for Linux from within Visual Studio 2017?
Or would I have to develop on Linux and compile for Windows instead?
Thanks!
I was wondering if it's possible to create a shared library for Linux from within Visual Studio 2017?
Or would I have to develop on Linux and compile for Windows instead?
Thanks!
Visual studio can't build linux library with its built in toolchain, so you need an extern build system.
You have two option for the external toolchain:
cross compiler is more suited for clean/freestanding environment. If your code rely on certain 3rd party libraries (and your target linux is compatible) it might be more convenient to use docker.
Visual Studio 2017 can run external tools, so if you have a compiler that will generate Linux code while running on Windows you can do it.
If you have a Windows computer and a Linux computer in the same network, you can also set up Visual Studio on the Windows computer to run tools on the Linux computer.