[Scilab-users] Windows 10 VS 2015 example under ilib_build fails pvApiCtx undeclared identifier

PhilAPol philpollock at hotmail.com
Fri Jul 15 02:37:31 CEST 2016


I am using Visual Studio Express 2015 with C++ and attempted to build the cpp
example for a an interface found at page:

https://help.scilab.org/docs/5.4.0/fr_FR/ilib_build.html

I copied the example and pasted it into SciNotes and saved it into
cpp_test.sce then executed it. The build produced several errors:

=========================================

exec('C:\Users\Admin\Desktop\cpp_test.sce', -1)
   Generate a gateway file
   Generate a loader file
   Generate a Makefile
   Running the makefile
   Compilation of ilib_build_cpp.cpp
   Compilation of ilib_build_cpp.h
   Compilation of ilib_build_cpp.hxx
   Compilation of sci_cppfind.cxx
   Building shared library (be patient)

!------------- Compile file sci_cppfind.cxx --------------                             
!
!                                                                                      
!
!	IF NOT EXIST  Release mkdir Release                                                  
!
!                                                                                      
!
!sci_cppfind.cxx                                                                       
!
!                                                                                      
!
!sci_cppfind.cxx(27): error C2065: 'pvApiCtx': undeclared identifier                   
!
!                                                                                      
!
!sci_cppfind.cxx(34): error C2065: 'pvApiCtx': undeclared identifier                   
!
!                                                                                      
!
!sci_cppfind.cxx(47): error C2065: 'pvApiCtx': undeclared identifier                   
!
!                                                                                      
!
!sci_cppfind.cxx(54): error C2065: 'pvApiCtx': undeclared identifier                   
!
!                                                                                      
!
!sci_cppfind.cxx(67): error C2065: 'pvApiCtx': undeclared identifier                   
!
!                                                                                      
!
!sci_cppfind.cxx(81): error C2065: 'pvApiCtx': undeclared identifier                   
!
!                                                                                      
!
!sci_cppfind.cxx(95): error C2065: 'pvApiCtx': undeclared identifier                   
!
!                                                                                      
!
!sci_cppfind.cxx(102): error C2065: 'pvApiCtx': undeclared identifier                  
!
!                                                                                      
!
!sci_cppfind.cxx(116): warning C4244: '=': conversion from 'unsigned
__int64' to 'double!
!', possible loss of data                                                              
!
!                                                                                      
!
!sci_cppfind.cxx(122): error C2065: 'pvApiCtx': undeclared identifier                  
!
!                                                                                      
!
!sci_cppfind.cxx(129): error C2065: 'pvApiCtx': undeclared identifier                  
!
!                                                                                      
!
!NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN!
!\amd64\cl.EXE"' : return code '0x2'                                                   
!
!                                                                                      
!
!Stop.                                                                                 
!
at line    36 of function dlwCompile   (
C:\PROGRA~1\SCILAB~1.0-B\modules\dynamic_link\macros\windows\dlwCompile.sci
line 49 )
at line    70 of function ilib_compile (
C:\PROGRA~1\SCILAB~1.0-B\modules\dynamic_link\macros\ilib_compile.sci line
86 )
at line   115 of function ilib_build   (
C:\PROGRA~1\SCILAB~1.0-B\modules\dynamic_link\macros\ilib_build.sci line 128
)
at line   147 of executed file C:\Users\Admin\Desktop\cpp_test.sce

ilib_compile: Error while executing Makelib.mak.

====================================

I have not configured any environment variables for includes, etc. since I
it wasn't clear how the environment should be configured - I presumed that
the SciLab installation with Visual Studio 2015 would set this up properly
so that the demos would work.

Please help me find the problem.

Tnx

PhilAPol





--
View this message in context: http://mailinglists.scilab.org/Windows-10-VS-2015-example-under-ilib-build-fails-pvApiCtx-undeclared-identifier-tp4034371.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list