Can DLLs be compiled without Visual Studio?
I intend to take a C ++ library , wrap it for C # with SWIG ( alt. Link ), and compile both C ++ and C # components as DLLs for Unity 5. (C # DLL provides Unity an interface with C + + DLL.)
As far as I know, compiling C ++ and C # DLLs always requires Visual Studio (or tools like msbuild
that that come with VS). However, I am currently struggling to install VS, which has led me to question this assumption.
Are there any other options for compiling pre-made Unity DLLs on Windows?
(Even though I've installed VS, I'm still curious to know.)
source to share
Yes, you can use MinGW to compile C ++ to DLL from the command line.
If you prefer a GUI interface, you can try Code :: Blocks . It comes with a modified version of MinGW, but since it's a GUI based IDE you don't need to interact with it directly :)
However, you still need your swig-wrapped code to be in a C # DLL. I would investigate if MonoDevelop can achieve this.
EDIT: Just seen ReCoF's answer - it seems you can use MonoDevelop for the C # side, so you're good to go :)
source to share
Use command line tools like csc (C# Compler)
, they have everything to get the job done, you don't need anything, check this Link .
You just need to install .Net framework to get the VS compiler or some other tool. It has a switch for each option provided by VS.
If you need an assembly, use the Assembly Linker Link tool .
Check also Link on ILMerge
source to share