← Back to team overview

yade-dev team mailing list archive

Re: How to use a plugin

 

> 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.





Follow ups

References