FieldKit.cpp icon indicating copy to clipboard operation
FieldKit.cpp copied to clipboard

Compiling errors: "reference to 'Handle' ambiguous"

Open num3ric opened this issue 13 years ago • 0 comments

I had errors while compiling FieldKit revolving around "error: reference to 'Handle' is ambiguous" in the Camera3D.cpp class. It turns out that adding "v8::" to each "Handle" type resolved the errors. Idem for the SketchPad.cpp sample. I'd be happy to know why... Nonetheless, everything appears to run correctly for me now.

For reference, here is the beginning of the error log that was produced:

/Users/num3ric/Code/cinder/FieldKit.cpp/xcode/../src/fieldkit/script/module/../../../../../FieldKit.cpp/src/fieldkit/script/module/Camera3D.cpp:27: error: reference to 'Handle' is ambiguous /System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:219: error: candidates are: typedef char** Handle ../../v8/include/v8.h:101: error: template<class T> class v8::Handle /Users/num3ric/Code/cinder/FieldKit.cpp/xcode/../src/fieldkit/script/module/../../../../../FieldKit.cpp/src/fieldkit/script/module/Camera3D.cpp:27: error: 'Handle' has not been declared /Users/num3ric/Code/cinder/FieldKit.cpp/xcode/../src/fieldkit/script/module/../../../../../FieldKit.cpp/src/fieldkit/script/module/Camera3D.cpp:27: error: expected ',' or '...' before '<' token [...]

Note that my v8 javascript engine has been freshly downloaded today.

num3ric avatar Jan 15 '12 05:01 num3ric