Author Topic: Create a portable executable  (Read 4923 times)

Offline Lory88

  • Single posting newcomer
  • *
  • Posts: 3
Create a portable executable
« on: March 24, 2013, 11:16:06 pm »
Hi guys. I need to get a portable executable from a Fortran working program on Windows 7s. In particular, I need something like an icon such that if I double click in it the program stars even if C::B is not open or not installed on the computer. If I double click on the executable produced by C::B a window error appears on the screen saying that a .dll file is missing (libgcc_s_sjlj-1.dll). From what I've read on the Internet the problem is due to the fact that I'm building the project in Debug mode and I should change it to Release mode. But if I do in that way I obtain an error even when running the program in C::B. In particular I get:
" Fortran runtime error: Integer overflow when calculating the amount of memory to allocate "
Any idea for solving this problem? Is it right that I need to build the file in Realese mode?

Thank you!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Create a portable executable
« Reply #1 on: March 25, 2013, 07:09:38 am »
Is it right that I need to build the file in Realese mode?
No. But you are in the wrong forum. This forum is dedicated to answer questions related to Code::Blocks, not general programming. You agreed to that when registering here.

In addition only a very few people here use forum - you should definitely try a Fortran related forum.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Create a portable executable
« Reply #2 on: March 25, 2013, 07:31:30 am »
In addition only a very few people here use forum fortran - you should definitely try a Fortran related forum.