I have created a C Command Line app in Xcode 3.2.3. I have compiled SpiderMonkey from the command line, and have it working, this was for CouchDB 0.11. The js interpreter works, as well as all the files being in /usr/local/spidermonkey/include and /usr/local/spidermonkey/lib. I have added /usr/local/spidermonkey/include to my Header Paths, and /usr/local/spidermonkey/lib to my library path.
Every time I add the jsapi.h file from the /usr/local/spidermonkey/include and reference it in my main.c file. Compliation breaks. Why won't the following compile?
#include "jsapi.h"
int main (int argc, const char * argv[])
{
return 0;
}