yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03884
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
-
How to use a plugin
From: boon chiaweng, 2010-04-01
-
Re: How to use a plugin
From: Anton Gladky, 2010-04-01
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-05
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-05
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-05
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-05
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-05
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-05
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-05
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-05
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-05
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-07