-
July 22nd, 2020, 07:15 AM
#11
Re: Problem with cmath
Thanks for the link, I have installed for it the DEV\vcpkg and Git before I started the whole work.
Thank you very much for the instructions. I tried to add into old compilation line the extra element ‘gsl-2.6\vector\init_source.c’ like below, but got many syntax like errors.
Could you pls help to remove them, is it again incompatibility between c and cpp.
>> mex -c entropy\entropy_bub_c.c entropy\entropy_bub_mx.c entropy\entropy_c.c entropy\entropy_chaoshen_c.c entropy\entropy_jack_c.c entropy\entropy_ma_c.c entropy\entropy_mx.c entropy\entropy_nsb_c.cpp entropy\entropy_nsb_mx.cpp entropy\entropy_plugin_c.c entropy\entropy_tpmc_c.c entropy\entropy_tpmc_mx.c entropy\entropy_ww_c.c entropy\entropy_ww_mx.c entropy\variance_boot_c.c entropy\variance_boot_mx.c entropy\variance_jack_c.c shared\hist_c.c shared\hist_mx.c gsl-2.6\vector\init_source.c
Building with 'Microsoft Visual C++ 2019'.
Error using mex
init_source.c
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(20): error C2143: syntax error: missing '{' before '*'
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(22): error C2091: function returns function
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(23): warning C4013: 'TYPE' undefined; assuming extern returning int
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(23): error C2065: 'gsl_block': undeclared identifier
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(23): error C2065: 'block': undeclared identifier
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(23): warning C4552: '*': result of expression not used
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(24): error C2065: 'v': undeclared identifier
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(24): warning C4552: '*': result of expression not used
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(26): error C2065: 'v': undeclared identifier
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(26): error C2059: syntax error: ')'
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(28): error C2065: 'v': undeclared identifier
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(30): warning C4013: 'GSL_ERROR_VAL' undefined; assuming extern returning int
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(31): error C2065: 'GSL_ENOMEM': undeclared identifier
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(34): error C2065: 'block': undeclared identifier
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(34): error C2065: 'gsl_block': undeclared identifier
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(34): error C2065: 'n': undeclared identifier
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(34): warning C4047: '=': 'int' differs in levels of indirection from 'int *'
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(36): error C2065: 'block': undeclared identifier
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(38): warning C4013: 'free' undefined; assuming extern returning int
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(38): error C2065: 'v': undeclared identifier
G:\DATA_WS\Fabian\STAToolkit\spike\gsl-2.6\vector\init_source.c(41): error C2065: 'GSL_ENOMEM': undeclared identifier
and many, many more such errors
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|