[Scilab-users] Difference between pvApiCtx and scilabEnv

Clément David Clement.David at esi-group.com
Mon Jul 17 10:12:31 CEST 2017


Hello Shamika,

Scilab 6 C API only use scilabEnv variable ; pvApiCtx is used for Scilab 5 and 6 stack-like C API.
Mixing API should be avoided, if you are porting from 5 to 6 and require some 6 features (mlist,
struct, high-performance, etc..) I suggest you to only use the new 6 API !

Thanks,

--
Clément

Le mercredi 12 juillet 2017 à 20:10 +0530, Shamika Mohanan a écrit :
> Hello,
> 
> I'm using Scilab 6.0.0 API. What is the difference between pvApiCtx and scilabEnv? When I compile
> C++ code on Scilab 6.0.0 using pvApiCtx, I get the following error-
> 
> error: 'pvApiCtx' was not declared in this scope
>      int z=nbInputArgument(pvApiCtx);
>                            ^
> /home/scilab-6.0.0/share/scilab/../../include/scilab/api_stack_common.h:64:53: note: in definition
> of macro 'nbInputArgument'
>  #define nbInputArgument(PVCTX) (*getNbInputArgument(PVCTX))
> 
> If I replace pvApiCtx with scilabEnv, I get the following error-
> 
> /home/scilab-6.0.0/share/scilab/../../include/scilab/api_stack_common.h:64:58: error: expected
> primary-expression before ')' token
>  #define nbInputArgument(PVCTX) (*getNbInputArgument(PVCTX))
> 
> How do I resolve this error for Scilab 6.0.0?
> 
> Regards,
> Shamika
>                                                           
>   
> 
> 
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users


More information about the users mailing list