hcustom SOP_Star.C

Anonymous Coward 2018-03-04 17:24:39.08433 UTC

1hcustom SOP_Star.C
2Making SOP_Star.o and /home/madjestic/houdini16.5/dso/SOP_Star.so from SOP_Star.C
3SOP_Star.C:59:48: error: unable to find string literal operator ‘operator""_sh’ with ‘const char [9]’, ‘long unsigned int’ arguments
4 const UT_StringHolder SOP_Star::theSOPTypeName("hdk_star"_sh);
5 ^~~~~~~~~~~~~
6SOP_Star.C: In static member function ‘static PRM_Template* HDK_Sample::SOP_Star::buildTemplates()’:
7SOP_Star.C:130:38: error: unable to find string literal operator ‘operator""_sh’ with ‘const char [11]’, ‘long unsigned int’ arguments
8 static PRM_TemplateBuilder templ("SOP_Star.C"_sh, theDsFile);
9 ^~~~~~~~~~~~~~~
10SOP_Star.C: At global scope:
11SOP_Star.C:134:29: error: invalid use of incomplete type ‘class SOP_NodeVerb’
12 class SOP_StarVerb : public SOP_NodeVerb
13 ^~~~~~~~~~~~
14In file included from SOP_Star.h:32:0,
15 from SOP_Star.C:29:
16/opt/hfs16.5.315/toolkit/include/SOP/SOP_Node.h:54:7: note: forward declaration of ‘class SOP_NodeVerb’
17 class SOP_NodeVerb;
18 ^~~~~~~~~~~~
19SOP_Star.C:143:13: error: ‘CookMode’ does not name a type
20 virtual CookMode cookMode(const SOP_NodeParms *parms) const { return COOK_GENERIC; }
21 ^~~~~~~~
22SOP_Star.C:145:29: error: ‘CookParms’ does not name a type
23 virtual void cook(const CookParms &cookparms) const;
24 ^~~~~~~~~
25SOP_Star.C:149:32: error: ‘Register’ in ‘class SOP_NodeVerb’ does not name a template type
26 static const SOP_NodeVerb::Register<SOP_StarVerb> theVerb;
27 ^~~~~~~~
28SOP_Star.C: In member function ‘virtual SOP_NodeParms* SOP_StarVerb::allocParms() const’:
29SOP_Star.C:140:60: error: expected type-specifier before ‘SOP_StarParms’
30 virtual SOP_NodeParms *allocParms() const { return new SOP_StarParms(); }
31 ^~~~~~~~~~~~~
32SOP_Star.C:140:60: error: expected ‘;before ‘SOP_StarParms’
33SOP_Star.C:140:74: error: ‘SOP_StarParms’ was not declared in this scope
34 virtual SOP_NodeParms *allocParms() const { return new SOP_StarParms(); }
35 ^
36SOP_Star.C: At global scope:
37SOP_Star.C:154:21: error: ‘Register’ in ‘class SOP_NodeVerb’ does not name a template type
38 const SOP_NodeVerb::Register<SOP_StarVerb> SOP_StarVerb::theVerb;
39 ^~~~~~~~
40SOP_Star.C: In member function ‘virtual const SOP_NodeVerb* HDK_Sample::SOP_Star::cookVerb() const’:
41SOP_Star.C:159:12: error: ‘theVerb’ is not a member of ‘SOP_StarVerb’
42 return SOP_StarVerb::theVerb.get();
43 ^~~~~~~~~~~~
44SOP_Star.C: At global scope:
45SOP_Star.C:164:40: error: ‘CookParms’ in ‘class SOP_NodeVerb’ does not name a type
46 SOP_StarVerb::cook(const SOP_NodeVerb::CookParms &cookparms) const
47 ^~~~~~~~~
48SOP_Star.C: In member function ‘virtual void SOP_StarVerb::cook(const int&) const’:
49SOP_Star.C:166:33: error: request for member ‘parms’ in ‘cookparms’, which is of non-class type ‘const int’
50 auto &&sopparms = cookparms.parms<SOP_StarParms>();
51 ^~~~~
52SOP_Star.C:166:39: error: ‘SOP_StarParms’ was not declared in this scope
53 auto &&sopparms = cookparms.parms<SOP_StarParms>();
54 ^~~~~~~~~~~~~
55SOP_Star.C:166:54: error: expected primary-expression before ‘)’ token
56 auto &&sopparms = cookparms.parms<SOP_StarParms>();
57 ^
58SOP_Star.C:167:35: error: request for member ‘gdh’ in ‘cookparms’, which is of non-class type ‘const int’
59 GU_Detail *detail = cookparms.gdh().gdpNC();
60 ^~~
61SOP_Star.C:177:19: error: request for member ‘sopAddWarning’ in ‘cookparms’, which is of non-class type ‘const int’
62 cookparms.sopAddWarning(SOP_MESSAGE, "There must be at least 2 divisions; defaulting to 2.");
63 ^~~~~~~~~~~~~
64SOP_Star.C:203:19: warning: unused variable ‘primoff’ [-Wunused-variable]
65 GA_Offset primoff = detail->appendPrimitivesAndVertices(GA_PRIMPOLY, 1, npoints, start_vtxoff, true);
66 ^~~~~~~
67SOP_Star.C:233:11: error: ‘SOP_StarParms’ does not name a type
68 const SOP_StarParms::Orient plane = sopparms.getOrient();
69 ^~~~~~~~~~~~~
70SOP_Star.C:239:13: error: ‘plane’ was not declared in this scope
71 switch (plane)
72 ^~~~~
73SOP_Star.C:241:14: error: ‘SOP_StarParms’ is not a class, namespace, or enumeration
74 case SOP_StarParms::Orient::XY: // XY Plane
75 ^~~~~~~~~~~~~
76SOP_Star.C:246:14: error: ‘SOP_StarParms’ is not a class, namespace, or enumeration
77 case SOP_StarParms::Orient::YZ: // YZ Plane
78 ^~~~~~~~~~~~~
79SOP_Star.C:251:14: error: ‘SOP_StarParms’ is not a class, namespace, or enumeration
80 case SOP_StarParms::Orient::ZX: // XZ Plane
81 ^~~~~~~~~~~~~
82SOP_Star.C:277:14: error: in argument to unary !
83 if (!allow_negative_radius && rad < 0)
84 ^~~~~~~~~~~~~~~~~~~~~