clapack.h(3592) : error C2144: syntax error : 'char ' should be preceded by ') '
来源:互联网 发布:精易模块取json true 编辑:程序博客网 时间:2024/05/21 18:49
转自:http://blog.sciencenet.cn/home.php?mod=space&uid=3199&do=blog&id=39165
我从http://www.netlib.org/lapack/faq.html下载 lapack-pc-wfc.zip并且成功用watcom fortran编译出lapack.lib.
但是,当我试图将该库直接引用到我的C++工程的时候,用了相应的头文件lapack.h,我的程序立刻出现如下诸多错误。
......\clapack.h(3592) : error C2144: syntax error : 'char ' should be preceded by ') '
......\clapack.h(3592) : error C2144: syntax error : 'char ' should be preceded by '; '
......\clapack.h(3592) : error C2143: syntax error : missing '; ' before ', '
......\clapack.h(3592) : error C2059: syntax error : ', '
......\clapack.h(3592) : error C2059: syntax error : ') '
于是,我查头文件lapack.h(一行一行注释查哪里出错),发现以下两行注释掉之后,整个工程可以编译过,剩下只是链接问题。
/* Subroutine */ int dlabad_(doublereal *small, doublereal *large);
and
/* Subroutine */ int slabad_(real *small, real *large);
但是,注释掉这两行来让我的代码编过总感觉不爽。
后来发现,原来是因为:在NpcNdr.h中有#define small char,只要将small换个变量名就可以了。
如:int slabad_(real *small_cfl, real *large);
0 0
- clapack.h(3592) : error C2144: syntax error : 'char ' should be preceded by ') '
- clapack.h(3592) : error C2144: syntax error : 'char ' should be preceded by ') '
- error C2144: syntax error: 'int' should be preceded by ';'
- stdio.h(189) : error C2144: syntax error : 'int' should be preceded by ';'---解决办法
- 关于奇怪的错误error C2144: syntax error : '__w64 unsigned int' should be preceded by ';'
- 编译QT项目出现错误:error C2144: syntax error : 'void' should be preceded by ';'
- 【C/C++】【FAQ】令人费解的编译错误:error C2144: syntax error : 'double' should be preceded by ';' 和 error C3646:
- Clapack.h small error C2144: 语法错误:“char”的前面应有“;”
- error: Apostrophe not preceded by \ (
- Error: Apostrophe not preceded by \ (
- error: Apostrophe not preceded by \
- error: Apostrophe not preceded by \
- error: Apostrophe not preceded by \
- Error:Apostrophe not preceded by \ (
- android error: Apostrophe not preceded by \
- android error: Apostrophe not preceded by \
- error: Apostrophe not preceded by \ (in ...)
- Error:(710) Apostrophe not preceded by \ (in )
- EveryNote资料迁移
- 教你Excel数据通过plsql导入到Oracle
- Asp.net 构建可扩展的的Comet Web 应用(一)
- linux 用户管理
- ANDROID application详解与用法
- clapack.h(3592) : error C2144: syntax error : 'char ' should be preceded by ') '
- Oracle 11g完全卸载(Windows)
- 对评论模块数据提取的一点心得
- TP ajax备份数据库
- 第一个oc程序
- 最简单的截屏程序
- Sys和system用户、sysdba 和sysoper系统权限、dba角色的区别
- xcode5 中Provisioning Profiles列表清理方法
- C51单片机学习