cycling74 / max-sdk-base Goto Github PK
View Code? Open in Web Editor NEWHeaders, libs, and scripts for Max external development
License: Other
Headers, libs, and scripts for Max external development
License: Other
I ran into a warning in VS 2019 while running Resharper and iggylabs suggested I post it here as an open question. This only appears in the IDE and doesn't block building the project, so it's not a big deal, but still might be worth looking at, as the Resharper Code Analysis feature is handy to have active.
The issue impacts a few of the ATTR macros. In particular, CLASS_ATTR_RGBA will be highlighted with red squiggles in the IDE and display an error "Cannot resolve symbol 'C74_VARFUN_4'" CLASS_ATTR_DEFAULT has a similar error, but displays 'C74_VARFUN_2' instead. Other attribute macros like CLASS_ATTR_INT32 and CLASS_ATTR_DOUBLE don't display any error.
Some details on my environment:
Since moving to max-sdk-base (from the old max-sdk, prior to this separation) I've been getting these warnings about macros like:
CLASS_ATTR_SYM
in Xcode where the max object is a C++ object (I'm not using the min-api I have my own C++ wrapper). The warning does not occur for exactly the same code if I switch back to the old SDK, so it's related to the SDK, and not Xcode version/compiler etc. I cannot find any relevant pragmas that would have previously been suppressing the warning, nor do my types have any virtual methods.
Everything still works as expected, but it is a bit tedious - do you have any pointers for why this might have changed and if I can suppress the warnings?
Hi there,
I am on Mac using Xcode 13.2.1, and when compiling externals there are some compiler warnings in max-sdk-base saying "This function declaration is not a prototype". It suggests to add void to the method body, which will resolve it.
I am guessing this happens when compiling sources as C++ files, as opposed to pure C files, which won't trigger the warnings.
I believe it is harmless, but annoying indeed... Could it be fixed in a future update?
We would probably want to do it by default, but it would be nice to at least also have an option to turn it off.
Related to Cycling74/min-devkit#200
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.