> static void NAG_CALL objfun(Integer n, double x[], double *objf, double
> objgrd[], Nag_Comm *comm){
> shared_ptr<Scene> scene = Omega()::instance().getScene();
> }
Code looks right to me. Did you include appropriate headers? (i.e. are
those the very first errors you get from the compiler?):
> pkg/dem/DataClass/InteractionGeometry/IgFunc.cpp: In function 'void
> objfun(Integer, double*, double*, double*, Nag_Comm*)':
> pkg/dem/DataClass/InteractionGeometry/IgFunc.cpp:420: error: conversion from
> 'Omega' to non-scalar type 'boost::shared_ptr<Scene>' requested
> pkg/dem/DataClass/InteractionGeometry/IgFunc.cpp:420: error: expected ',' or
> ';' before '::' token
v.
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp