Sigh. "Unresolved external" linker error I've just been WTF at turns out to be that the const version of a UE function is NOT exported for some reason, while the non-const version is. I tend to try to pass const objects around if I'm not modifying them but can't in this case.
Conversation
Notices
-
Embed this notice
The Seven Voyages Of Steve (sinbad@mastodon.gamedev.place)'s status on Wednesday, 29-Jan-2025 00:32:19 JST The Seven Voyages Of Steve
-
Embed this notice
Jeremiah Fieldhaven (jeremiahfieldhaven@mastodon.gamedev.place)'s status on Wednesday, 29-Jan-2025 01:21:59 JST Jeremiah Fieldhaven
@sinbad ... that's weird, why on earth?! I can see good reasons to provide both, but not exporting the const version seems such a bizarre ommission.
-
Embed this notice
Laura Hermanns (loco@mastodon.gamedev.place)'s status on Wednesday, 29-Jan-2025 02:13:56 JST Laura Hermanns
@sinbad I presume this was added to fix a specific issue at the time, not to keep the const version internal. This change goes back to 2015 btw.
-
Embed this notice
johnfredcee (johnfredcee@mastodon.gamedev.place)'s status on Wednesday, 29-Jan-2025 02:39:46 JST johnfredcee
@sinbad This always grinds my gears, why make the engine extensible then just not export stuff? Why?
-
Embed this notice
The Seven Voyages Of Steve (sinbad@mastodon.gamedev.place)'s status on Wednesday, 29-Jan-2025 02:54:58 JST The Seven Voyages Of Steve
@JeremiahFieldhaven Is suspect there was an ambiguous function issue and this was the easy fix
-
Embed this notice