lldb Windows errors with clang 10 - lldb

I have clang 10.0.0 for Windows installed from here
I also used the community VS installer to install 3 components that I understood were needed for clang 10:
C++ 2019 Redistributable Update
MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.26)
Windows 10 SDK (10.0.18362.0)
clang itself works ok - I can compile, link with -fuse-ld=lld, run some code with concepts, std::span, looks good.
When I run lldb.exe, I get:
..python36.dll was not found..
If I put python36.dll on the path, I then get:
The application was unable to start correctly (0xc000007b)..
I'm learning C++, wanted to start using a debugger but I'm getting stuck here.
Do I need to install the entire Python 3.6 for this to work? (I have 3.8 already installed)

I needed the 64bit version of python36.dll, got it from wikidll

Related

How to compile and run C on a Surface Pro X?

I'd like to program some Ansi-C on a Surface Pro X. On my Computer I just set up VS Code as an editor and installed Msys2 which comes with the GCC. But the same won't work on the Surface Pro X, cause if the processor architecture as I understand (correct me if I'm wrong).
So my question is: How can I compile and run C on a Surface Pro X and also check for Ansi C conformity. It also would be nice to be able to work in VS Code.
Also is this a general problem of the Surface Pro X? Would those issues also appear when trying to program java or python?
I don't have a Surface Pro X or any other ARM Windows device, however it should be possible to use VS Code since there has been a Windows on ARM version since May 2020 (download on the usual Visual Studio Code download page).
I am not sure on what development environments are available for Windows on ARM, but you could always install WSL (the Windows subsystem for Linux) where you can then install pretty much anything you want. You can then link your VS Code to your WSL and work there.
To install development tools for any language you would then follow instructions on how to install that environment for Linux (eg. using apt-get for Debian and it's derivatives like Ubuntu).
To install basic development tools for Java and C/C++ in WSL type sudo apt install default-jdk default-jre gcc g++, python is generally already installed in a linux environment.

installing GSL library for C programming in windows

I want to install the GSL library (https://www.gnu.org/software/gsl/) in windows. I have downloaded the files but i do not know what to do apart from that in order to be able to use the functions of the library (apart from the #include <...> in my program.c file).
I am using visual studio code and i have installed mingw.
Thanks in advance
EDIT
I am adding more information about this issue. I am not the original poster, but I have the same problem.
I am trying to use the GSL and I work with Visual Studio Code on Windows 10.
I have already installed the basic packages to work with C/C++ in
Visual Studio Code. More precisely, if I am not wrong, VS Code is
using the compiler gcc.exe from mingw64 (last version). This was
installed using an 'extension' available at VS Code (https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools).
I downloaded the last version of the GSL (2.7) and unzipped it.
I get stuck when I try to follow the installation instructions. When I
execute either .\configure or ./configure in the DOS command line,
I get an error of "unknown command" (even if I am placed in the same directory where the file is stored).
When I execute .\configure in PowerShell, I get a message asking me
which programme should be used to open this file.
And here is where I get lost. :/
I have discovered an alternate path, which is installing GSL from vcpkg (https://vcpkg.io/). This is suggested by VS Code, actually. This vcpkg seems to be a programme by Microsoft to make it easier to install third-party C/C++ packages in Windows.
The specifications to install vcpkg are (https://vcpkg.io/en/getting-started.html):
Windows 7 or newer
Git
Visual Studio 2015 Update 3 or newer
I can try this path, but first I would like to be sure there is no easier way (installing Visual Studio to not really use it seems a lot to me!).

How to install working MinGW in my 32-bit Windows 10

I'm a complete newbie to programming and I want to start learning C. I downloaded Visual studio code and MinGW, then tried to execute a simple 'hello world'. However, I get this error:
This version of C:\MinGW\bin\gcc.exe is not compatible with the version of Windows you're running.
After some searching, I think I have figured out that it is because I'm using Windows 10 32-bit. I can't find helpful videos or tutorials. What should I do?
Try with MinGW-w64 (e.g. from https://winlibs.com/) instead of old MinGW, and make sure VSCode is properly configured for it (see: https://code.visualstudio.com/docs/cpp/config-mingw).

Is there a way to use VS 2010 with clang 9.0.0 version on Windows?

I have a project that can be compiled with clang 9.0.0 version and VS 2017, Windows.
clang is installed by pre-built binaries(Windows 32bit).
The problem is that the user environment for this project should use VS 2010.
If I compile in an environment with only VS 2010 for the same project, I get the following error:
clang: error: linker command failed due to signal (use -v to see invocation).
I tried using the -v option and could not find a solution direction.
Issues related to VS 2010 and clang were only a few years ago.
At the clang document(https://clang.llvm.org/get_started.html), I found the sentence "Visual Studio 2017 or later."
Since previous versions of clang supported VS 2010, I wonder if the latest version of clang blocked VS 2010 or whether there is an option.(I could not find any VS related options in many of the clang -help options.)
If I can never use VS 2010 with the latest version of clang, I will try to use an older version of clang.(This is a way to avoid, but it's not impossible)

Helo with visual studio 2015

could someone help with how can I create a new project on a mac, like in windows when I'm opening win32 console app to start writing C programing?
You can use emacs or xcode on the OSX
with emacs create a project in c and use gcc
You can't do C development using Visual Studio for Mac. The product is the Xamarin toolset used for .Net cross-platform development only.
Users have requested that C and C++ is added (vote here), so it is possible that it could be added in the future.
Meanwhile, see How to use/install gcc on Mac OS X 10.8 / Xcode 4.4

Resources