You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
(StructName) {...} gives error C4576 with MSVC #76
@megapro17 you need to use CLITERAL define since (Vector3){ 0.0f, 0.0f, 0.0f } is for C not C++, if you want to code in c++ you need to remove the ( and ) like this: Vector3{ 0.0f, 0.0f, 0.0f } or with the define CLITERAL(Vector3){ 0.0f, 0.0f, 0.0f } it will convert from c or c++ automatically :) PS: CLITERAL is from raylib.h
Activity
Fix for 3D camera first person example
megapro17 commentedon Nov 24, 2021
It's still not fixed
thomaswtn01 commentedon Jun 27, 2022
do u have solution for that ?
RobLoach commentedon Jun 27, 2022
Is this still an issue?
megapro17 commentedon Jun 28, 2022
Not an issue, not coding in C++ anymore
TokyoSU commentedon Jul 3, 2022
@megapro17 you need to use
CLITERALdefine since(Vector3){ 0.0f, 0.0f, 0.0f }is for C not C++, if you want to code in c++ you need to remove the(and)like this:Vector3{ 0.0f, 0.0f, 0.0f }or with the defineCLITERAL(Vector3){ 0.0f, 0.0f, 0.0f }it will convert from c or c++ automatically :) PS:CLITERALis from raylib.hpenggrin12 commentedon Jul 16, 2026
i believe this was fixed in #393 ..?
RobLoach commentedon Jul 16, 2026
Thanks! We could open up a new issue if it's not fixed fixed.