Closed legends2k closed 1 year ago
Relevant issues #50, #17, #18.
Any suggested solution?
@RandyGaul For always_inline
#18 already introduced the fix -- adding inline
keyword along with the attribute. Looks like the fix was overwritten over time. Not sure of selectany
though.
Okay cool, could you make a PR for this?
Okay cool, could you make a PR for this?
Done!
Looks good!
I've
main.cpp
andscene.cpp
wherecute_math.h
is included. I defineCUTE_MATH_IMPLEMENTATION
in neither (since I don't need the larger functions). Compilation succeeds but linking fails with numerous warnings about attributesselectany
andalways_line
ignored. Understandably linker errors ensure when linking. Sample errors:Relevant StackOverflow post: warning: always_inline function might not be inlinable [-Wattributes]