24小时热门版块排行榜    

查看: 3164  |  回复: 4
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

gelitao1234

金虫 (正式写手)

[求助] 出现 fatal error LNK1248 ,如何处理?

运行程序出现,fatal error LNK1248: image size (990C8000) exceeds maximum allowable size (80000000)
请问该如何处理?
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gelitao1234

金虫 (正式写手)

引用回帖:
4楼: Originally posted by libralibra at 2012-07-17 21:23:04
Using large arrays in Fortran 77 could be problematic, as they are not allocated dynamically but put on the stack. You could resort to allocatable arrays of Fortran 90, but then you have to use gfor ...

非常感谢,这正是我需要的
5楼2012-07-18 16:53:55
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 5 个回答

libralibra

至尊木虫 (著名写手)

骠骑将军

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
gelitao1234: 金币+10, ★★★很有帮助 2012-07-17 20:04:54
你程序的代码和静态数据总和超过了2G.
不清楚你的程序处理多大的数据能用这么多内存.好好优化或者找其他路
关于这个错误的更多解释
http://software.intel.com/en-us/ ... plications-windows/
matlab/VB/python/c++/Java写程序请发QQ邮件:790404545@qq.com
2楼2012-07-17 00:07:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gelitao1234

金虫 (正式写手)

引用回帖:
2楼: Originally posted by libralibra at 2012-07-17 00:07:20
你程序的代码和静态数据总和超过了2G.
不清楚你的程序处理多大的数据能用这么多内存.好好优化或者找其他路
关于这个错误的更多解释
http://software.intel.com/en-us/articles/memory-limits-applications-windo ...

非常感谢您的帮助,我的程序中出现了一个大的数组,我用的fortran77,没能用动态数组功能,不知道该怎么办。
3楼2012-07-17 20:06:12
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

libralibra

至尊木虫 (著名写手)

骠骑将军

【答案】应助回帖

引用回帖:
3楼: Originally posted by gelitao1234 at 2012-07-17 20:06:12
非常感谢您的帮助,我的程序中出现了一个大的数组,我用的fortran77,没能用动态数组功能,不知道该怎么办。...

Using large arrays in Fortran 77 could be problematic, as they are not allocated dynamically but put on the stack. You could resort to allocatable arrays of Fortran 90, but then you have to use gfortran instead of g77.

If you need to stick to strict fortran 77, you can use the ma package which can be obtained as part of the global arrays toolkit (http://www.emsl.pnl.gov/docs/global/).

Another useful webpage might be:
2-16 DYNAMIC MEMORY ALLOCATION AND POINTERS (& Procedure Pointers)
http://www.ibiblio.org/pub/languages/fortran/ch2-16.html
matlab/VB/python/c++/Java写程序请发QQ邮件:790404545@qq.com
4楼2012-07-17 21:23:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
信息提示
请填处理意见