[Scilab-users] Difference between pvApiCtx and scilabEnv

classic Classic list List threaded Threaded
2 messages Options
shamikam shamikam
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Scilab-users] Difference between pvApiCtx and scilabEnv

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
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Clément David-3 Clément David-3
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Difference between pvApiCtx and scilabEnv

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
> [hidden email]
> http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Loading...