I am trying to build JSCocoa for iPhone by including the JSCocoa code
as part of my project. When I compile I see following errors
...JSCocoa/iPhone/../JSCocoaPrivateObject.h:48: error: expected
specifier-qualifier-list before 'JSValueRef'
...JSCocoa/iPhone/../JSCocoaPrivateObject.h:49: error: expected
specifier-qualifier-list before 'JSContextRef'
Any idea how I can fix it?
Thanks!
-Patrick
> --
> JSCocoa: http://inexdo.com/JSCocoa
> Source: http://github.com/parmanoir/jscocoa/tree/master
> Docs: http://code.google.com/p/jscocoa/
> Group: http://groups.google.com/group/jscocoa
> Unsubscribe: jscocoa+u...@googlegroups.com
Any idea what can be the issue?
-Mithin
-Patrick
#include "JavascriptCore.h"
needs to be in the .pch file.
-Steve
- In Project Settings
- Other Linker Flags -lxml2
- Header Search Paths /usr/include/libxml2
- Don't forget to add iPhone.bridgesupport under JSCocoa/iPhone.
- Note that main.m (unsurprisingly) is changed vs the default main.m.
-Steve