Please help

To, llvm/clang

Firstly I’d like to preface this by saying a few things:

  1. I don’t always know what is or isn’t socially appropriate to say/ask/do, so please don’t get mad at me if I say/ask/do something inappropriate just let me know and I’ll try to do better.

  2. Sometimes I word things oddly so if a phrase sounds weird or doesn’t make sense please let me know and I’ll try to explain.

  3. I want to make it VERY clear that the above statement should in no way be misinterpreted to say that ‘I think you’re dumb’ (because I don’t.)

  4. I’m not sure this is the correct email to send this to if it isn’t:

a. I’m sorry

b. Would you please give me the correct email address? Thanks

Anyway…

  1. How do I compile c/c++ programs for Windows using llvm/clang without the use of Microsoft Visual Studio? The main reason i wanted to use llvm/clang was/is because it is free/open source so being required to use Microsoft Visual Studio (which is Proprietary (I think) it also costs money) would defeat the purpose.

  2. How do I cross-compile applications for Windows and/or MacOS?

To, llvm/clang
     Firstly I'd like to preface this by saying a few things:

    1. I don't always know what is or isn't socially appropriate to say/ask/do, so please don't get mad at me if I say/ask/do something inappropriate just let me know and I'll try to do better.

    2. Sometimes I word things oddly so if a phrase sounds weird or doesn't make sense please let me know and I'll try to explain.

    3. I want to make it VERY clear that the above statement should in no way be misinterpreted to say that 'I think you're dumb' (because I don't.)

    4. I'm not sure this is the correct email to send this to if it isn't:
        a. I'm sorry
        b. Would you please give me the correct email address? Thanks

Seems like a good a spot as any to post this (other places could
include the "include++" discord ( https://discord.com/invite/ZPErMGW
), the LLVM discord ( https://discord.com/invite/xS7Z362 ) or Stack
Overflow ( https://stackoverflow.com/questions/tagged/c%2B%2B )
(though that last one can be a bit rougher))

Anyway...

1) How do I compile c/c++ programs for Windows using llvm/clang without the use of Microsoft Visual Studio?

I don't believe that's possible - Microsoft's/Visual Studio's header
files/libraries are needed, even when using clang/llvm/lld to compile
and link.

The main reason i wanted to use llvm/clang was/is because it is free/open source so being required to use Microsoft Visual Studio (which is Proprietary (I think) it also costs money) would defeat the purpose.

I don't believe you need to spend any money - I think the free (Visual
Studio Code or Visual Studio Express or something like that I think
provides the libraries/headers without having to pay for anything)
options exist.

2) How do I cross-compile applications for Windows and/or MacOS?

Not too familiar with that - I think it's something to do with -target
or -triple, but setting up any system library headers, etc, might be a
bit more involved.