作者shaopj (天空蓝^_^)
看板C_and_CPP
标题[问题]无法编译(undefined reference to `lsame_'....)
时间Sat Apr 4 22:34:51 2009
http://rafb.net/p/UewqoU78.html
这是一个写好的程式,用来对矩阵做高斯消去法的.
想直接拿来用,但无法编译.不知道问题出在哪.
[Linker error] undefined reference to `lsame_'
more undefined references to `lsame_' follow
[Linker error] undefined reference to `slamch_'
[Linker error] undefined reference to `xerbla_'
.
.
.
我是超级初学者...麻烦善心人士帮忙一下...感恩!!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.224.146.77
1F:推 SHBK:这几个functions找不到定义压 有额外用到lib 记得加 04/05 01:54
2F:→ SHBK:-l -L 告诉compiler(以gcc来说的话) 04/05 01:54
3F:→ firedcf:VC++ 6.0 的compiler 说... 04/05 09:39
4F:→ firedcf:f2c.h 档案不存在.... 所以他就不过了.XD 04/05 09:40
5F:→ firedcf:在网路上搜寻下载了f2c.h然後compiler说找不到blaswrap.h 04/05 09:53
6F:→ firedcf:在网路上搜寻下载了blaswrap.h继续compiler 04/05 09:54
7F:→ firedcf:结果是0 error(s), 12 warning(s) ... 04/05 09:54
8F:→ firedcf:conversion from double to float, possible loss of data 04/05 09:55
9F:→ firedcf:十二个都一样,就是可以跑了嘛..XD 04/05 09:55
10F:→ shaopj:请问要怎麽加-l -L啊? 我是超级初学者...我的编译器纪录: 04/05 10:38
11F:→ shaopj:编译器: Default compiler 执行档案 '' gcc.exe...'' 04/05 10:39
12F:→ shaopj:gcc.exe "C:\Documents and Settings\User\桌面\Q2.14\sges 04/05 10:40
13F:→ shaopj:svx.c" -o "C:\Documents and Settings\User\桌面\Q2.14\sg 04/05 10:40
14F:→ shaopj:esvx.exe" -I"E:\C\Dev-Cpp\include" -L"E:\C\Dev-Cpp 04/05 10:40
15F:→ shaopj:\include" -L"E:\C\Dev-Cpp\lib" 麻烦解救一下 04/05 10:41
16F:→ firedcf:dev c++ ....努力安装中XD等等在给测试报告XD 04/05 11:51
17F:→ shaopj:嗯嗯 多谢f大的帮忙 04/05 14:13
18F:→ firedcf:我安装了Dev-C++ 5.0 beta 9.2 (4.9.9.2) 04/05 14:25
19F:→ firedcf:compiler 找不到 f2c.h , blaswrap.h . 04/05 14:25
20F:→ firedcf:如果你手上没有这两个呢...就去下载吧. 04/05 14:25
21F:→ firedcf:下载後可以 和sgessvx.c 放在一起. 04/05 14:25
22F:→ firedcf:compiler就不会说找不到那两个档案了. 04/05 14:26
23F:→ firedcf:我放弃加注了..好累...我用回文XD 04/05 14:28