编译代码并将其链接到 Scilab

发布于 2024-12-29 09:11:39 字数 2448 浏览 1 评论 0原文

我正在为 Scilab xcos 块开发 C 计算函数。当尝试使用 ilib_for_link('DO13','do13.c',[],"c") 编译代码并将其链接到 Scilab 时,我得到:

Generate a loader file
Generate a Makefile
Running the Makefile
Compilation of do13.c
Building shared library (be patient)

!------------- Compile file do13.c --------------             !
!                                                             !
!   IF NOT EXIST  Release mkdir Release                         !
!                                                             !
!   cl -D__MSC__ -DFORDLL -D_WIN64 -c -DSTRICT -D_CRT_SECURE_NO_!
!     DEPRECATE -D__MAKEFILEVC__ -nologo -I"C:/PROGRA~1/SCILAB!
!     ~1.3/libs/MALLOC/includes"  -I"C:/PROGRA~1/SCILAB~1.3/mo!
!     dules/core/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules/!
!     api_scilab/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules/!
!     call_scilab/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules!
!     /output_stream/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modu!
!     les/jvm/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules/loc!
!     alization/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules/d!
!     ynamic_link/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules!
!     /mexlib/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules/tim!
!     e/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules/windows_t!
!     ools/includes"  -I"C:/PROGRA~1/SCILAB~1.3/libs/f2c"  -I"!
!     C:/PROGRA~1/SCILAB~1.3/libs/hashtable"  -I"C:/PROGRA~1/S!
!     CILAB~1.3/libs/intl" -W3 -Gd -Z7 -O2 -MT /Fo"Release/" /!
!     Fd"Release/" -DFORDLL do13.c                            !
!                                                             !
!do13.c                                                       !
!                                                             !
!


do13.c(1) : fatal error C1083: Cannot open include file: 'sci!
!     cos/scicos_block4.h': No such file or directory         !
!                                                             !
!NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft!
!      Visual Studio 10.0\VC\BIN\amd64\cl.EXE"' : return code !
!     '0x2'                                                   !
!                                                             !
!Stop.                                                        !
 !--error 10000 
ilib_compile: Error while executing Makelib.mak.
at line      76 of function ilib_compile called by :  
at line      90 of function ilib_for_link called by :  

我不是编程专家。这些消息意味着什么?

I am working on C computational function for Scilab xcos block. When trying to compile and link the code to Scilab using ilib_for_link('DO13','do13.c',[],"c"), I get:

Generate a loader file
Generate a Makefile
Running the Makefile
Compilation of do13.c
Building shared library (be patient)

!------------- Compile file do13.c --------------             !
!                                                             !
!   IF NOT EXIST  Release mkdir Release                         !
!                                                             !
!   cl -D__MSC__ -DFORDLL -D_WIN64 -c -DSTRICT -D_CRT_SECURE_NO_!
!     DEPRECATE -D__MAKEFILEVC__ -nologo -I"C:/PROGRA~1/SCILAB!
!     ~1.3/libs/MALLOC/includes"  -I"C:/PROGRA~1/SCILAB~1.3/mo!
!     dules/core/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules/!
!     api_scilab/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules/!
!     call_scilab/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules!
!     /output_stream/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modu!
!     les/jvm/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules/loc!
!     alization/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules/d!
!     ynamic_link/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules!
!     /mexlib/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules/tim!
!     e/includes"  -I"C:/PROGRA~1/SCILAB~1.3/modules/windows_t!
!     ools/includes"  -I"C:/PROGRA~1/SCILAB~1.3/libs/f2c"  -I"!
!     C:/PROGRA~1/SCILAB~1.3/libs/hashtable"  -I"C:/PROGRA~1/S!
!     CILAB~1.3/libs/intl" -W3 -Gd -Z7 -O2 -MT /Fo"Release/" /!
!     Fd"Release/" -DFORDLL do13.c                            !
!                                                             !
!do13.c                                                       !
!                                                             !
!


do13.c(1) : fatal error C1083: Cannot open include file: 'sci!
!     cos/scicos_block4.h': No such file or directory         !
!                                                             !
!NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft!
!      Visual Studio 10.0\VC\BIN\amd64\cl.EXE"' : return code !
!     '0x2'                                                   !
!                                                             !
!Stop.                                                        !
 !--error 10000 
ilib_compile: Error while executing Makelib.mak.
at line      76 of function ilib_compile called by :  
at line      90 of function ilib_for_link called by :  

I am not expert in programming. What could these messages mean?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最终幸福 2025-01-05 09:11:39

只需包含 scicos_block4.h 而不是 scicos/scicos_block4.h 即可解决该问题。

Just include scicos_block4.h instead of scicos/scicos_block4.h will fix the issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文