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
Symbols from included files are not being recognized as defined. I see that in version 0.7.0 a change is listed for recursive include? Is there anything special I need to be doing?
Steps to recreate
at top of file #pragma include "<filename>"
use symbols from <filename>
squiggle lines appear beneath the symbols and debugger shows errors that look like: 0(33) : error C1503: undefined variable "surfaceWidth"
The text was updated successfully, but these errors were encountered:
Aha! The extension does not like my use of #pragma. After wrangling with this for a while I finally managed to use the "controlling with comments" feature correctly. For what it's worth, to me, the description in the readme is confusing and the provided examples didn't seem exactly relevant to my situation.
Using OpenFrameworks (C++) what this turned out to mean for me was that in my shaders if I want to include a file named "sdfUtils.glsl" like:
#pragma include "sdfUtils.glsl"
I need to do this instead:
#pragma include "sdfUtils.glsl" //! #include "sdfUtils.glsl"
Now it's working nicely. Thanks again for your work on this extension, it's useful to me and I appreciate it! I wish I could offer a better alternative to the current description in the readme but I'm afraid I still don't fully understand the reasons it was necessary to do this.
Installed product versions
Description
Thank you for your work on this extension!
Symbols from included files are not being recognized as defined. I see that in version 0.7.0 a change is listed for recursive include? Is there anything special I need to be doing?
Steps to recreate
#pragma include "<filename>"
<filename>
0(33) : error C1503: undefined variable "surfaceWidth"
The text was updated successfully, but these errors were encountered: