While compiling the code in interfaces/OPACS I get the following errors: cxx: Error: src/G4UIWo.cc, line 89: argument of type "void (*)(char *)" is incompatible with parameter of type "OInterpreterDoFunction" OInterpreterCreate ("G4",ExecuteScript,NULL,NULL,NULL); ----------------------------^ cxx: Error: src/G4UIWo.cc, line 98: argument of type "Widget (*)(Widget, String, ArgList, Cardinal)" is incompatible with parameter of type "OClassCreateWidgetFunction" OClassDeclareCompoundWidget ("G4/G4XoView" ,CreateG4XoView ,xoCameraWidgetClass); ----------------------------------------------^ cxx: Error: src/G4UIWo.cc, line 101: argument of type "Widget (*)(Widget, String, ArgList, Cardinal)" is incompatible with parameter of type "OClassCreateWidgetFunction" OClassDeclareCompoundWidget ("G4/G4OIXView",CreateG4OIXView,xmMainWindowWidgetClass); ----------------------------------------------^ cxx: Info: 3 errors detected in the compilation of "src/G4UIWo.cc". and obviously the library is not made.
Some cast was needed with strict_ansi option.