Windows Linux Subsysytem - using the linux libraries

35 views
Skip to first unread message

Craig Branch

unread,
Jan 7, 2020, 10:11:57 AM1/7/20
to deal.II User Group
Hi, I have successfully installed dealii using Visual Studio 2019 and also the Windows Linux Subsystem (WLS). The WLS worked eventually and I will post some commands that will help new users. I used Ubuntu 18.04 and needed to install  cmake, g++, libblas-dev and liblapack-dev before it when smoothly.

The question I have is can I compile within WSL(Ubuntu) using cmake/make and g++ compiler and make the dealii build and libraries then use these libraries and headers within Visual Studio and link against them but compile with the native VSC++ compiler. That is make dealii/build on Linux but use native visual studio for everything else.

I realise its a long shot but I have code already in native windows so this would be my most robust and easiest option if it could worked. Otherwise I will need to continue with the Native Windows dealii build and at present I haven't got blas or lapack working on this.

Thanks

Craig 

Craig Branch

unread,
Jan 7, 2020, 3:08:58 PM1/7/20
to deal.II User Group
From what I have read there is an issue with c++ and name mangling between compilers so there may be no way to do this. If there is a way let me know. Thanks
Reply all
Reply to author
Forward
0 new messages