[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: images.png (5 KB, 390x129)
5 KB
5 KB PNG
>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)
>>
>>107674487
If you're so mad about it why don't you just write your own scripting language like a real programmer?
>>
File: wires tired.jpg (108 KB, 1396x1192)
108 KB
108 KB JPG
>>107674487
>Why do C compilers suck so much?
>look inside
>a C++ project
>extern "C"
>>
>sepples
found your problem
>>
File: 1713261259968063.png (298 KB, 832x1133)
298 KB
298 KB PNG
>>107674487
>complaints specific to C++
>"Why do C compilers suck so much?"
>>
>>107674650
nice bunda
>>
>>107674487
C users didnt ask
the compiler people pretend they didnt think about it
and everyone copes that its better this way because theres less code surface to keep clean

cryptic compiler errors are one of the """"joys"""" of working with C
its this or its rust with its fucktarded syntactical strutures
personally 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 all
surprizingly simple, even
and its a fun thing to do the design choices about that, especially when written in C
unironically.
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
>>
>>107675227
and these days you can just unga bunga gemini gibe library pls ;) a few times



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.