7
AleCx04
2y

Today in Windows Clang misadventures from one past wtf

I have 0 fucking clue what is happening, so I am starting to think that this is a windows 11 only bug.

If I (say for example) compile all of my headers into a .dll and then link them to my executable program, an executable will be generated.

If I use the dll to be linked into my executable, but DON'T use any of the code inside, then no executable is generated.

I need to at least use something from within the headers that I create into the main program for it to build and actually throw out an executable.

I could argue that doing this would be the proper way to setup a project in some scenarios, managing your headers and what not.
The only bad part is that it essentially removes the ability for newcomers to just install clang and hello the fucking world into existence.

Mind you, using the Mingw installation is possible still. I-just-don't-fuckig-understand-why-the-fucking-official-build WORKS

THIS is why people are trying to jump into other languages. My dude's shit is solved, but this fucking infuriates me. ANd go on, try googling "clang not building executable" and see how this shit is nowhere to be fucking found sdfksakjdfa

Comments
  • 3
    I swear Windoozle 11 is spyware with some OS functionalities...
  • 2
    @PonySlaystation

    “When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.” ~ Arthur Conan Doyle
  • 3
    So, I solved it, for anyone that might be on the same boat.

    My g did not have VS Studio, just VS Code installed, again, web devs, so we don't need any of the other shit.

    I installed VS Studio on his machine (well, more like, I advised him to do so and he did it because he was just as hysterical as I was) an through the windows installer we added all packs that had something to do with C++ except for Linux and Embedded.

    After that it worked and I believe this is absolute bullshit, one should be able to install a compiler without an OS vendor stopping them from developing shit without their bullshit, but such is not the case it seems.

    I know Apple does this, and I hate them for it. But have always had a little more respect for Microsoft in this regard. Sad thing is, I can't get around it for game development.
Add Comment