>you use Lua in a C++ project, but forget to add extern "C" declarations>this will cause the project to spit out a ton of linker errors to you>but of course, the compiler won't just tell you that -llua is incompatible, it will instead just vomit linker errors and it is up to you to figure out why that is>the linker/compiler will SILENTLY IGNORE the incompatibility of liblua and instead just vomit some garbage that doesn't help in any way.Why do C compilers suck so much? Or does Lua suck so much? It is hard to tell ...Who designed this shit? (spent 2 hours on this)
>>107674487If you're so mad about it why don't you just write your own scripting language like a real programmer?
>>107674487>Why do C compilers suck so much?>look inside>a C++ project>extern "C"
>sepplesfound your problem
>>107674487>complaints specific to C++>"Why do C compilers suck so much?"
>>107674650nice bunda
>>107674487C users didnt askthe compiler people pretend they didnt think about itand everyone copes that its better this way because theres less code surface to keep cleancryptic compiler errors are one of the """"joys"""" of working with Cits this or its rust with its fucktarded syntactical struturespersonally id rather deal with lazy design only in select cases than deal with lazy design throughout every aspect of my code
just write native C++ or your own scripting engine pussy
>>107675169>own scripting engine(not op)its actually not hard at allsurprizingly simple, evenand its a fun thing to do the design choices about that, especially when written in Cunironically.how do you deal with the thing? do you transpile it into c and then link your scripts as a library?do you decide on an interpreted language?or maybe something inbetween?fascinating stuff to be quite desu with you
>>107675227and these days you can just unga bunga gemini gibe library pls ;) a few times