hi,
I have build spiderMonkey(esr78) in windows by following the steps mentioned in official documentation. For more info regarding build process see this link, https://firefox-source-docs.mozilla.org/setup/windows_build.html#building-firefox-on-windows
When I’m tryiing to build my testapp.cpp using spiderMonkey in visual studio 2019,it’s giving compilation error from GCPolicyAPI.h(line:70) whenever i’m adding jsapi.h in my program.
Error: error C2338: Pointer type not allowed for StructGCPolicy
If I remove “jsapi.h” the program compiles and runs fine.
// testapp.cpp:
#include <jsapi.h>
#include <js/Initialization.h>
int main(void) {
if (!JS_Init()) return 1;
JS_ShutDown();
return 0;
}
[Note: preprocessor used: STATIC_JS_API in project properties]
Can anyone please help me on this, what’s wrong I’m doing here?