Author Topic: fortran on codeblocks  (Read 2582 times)

Offline rkr

  • Single posting newcomer
  • *
  • Posts: 2
fortran on codeblocks
« on: February 01, 2016, 08:31:56 pm »
hi, i am using CB for writing programs in fortran 95 - being a novice, i find some issues when i make the .exe file. when i try to run the .exe file in the directory, it is giving error message that few .dll files are missing. i copied these files from the installation directory to the directory where i had my .exe file, and then the prpblem was solved. but i have the same problem again if i move the .exe file to another directory/or to another PC. kindly assist. thanks, RKR

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9508
Re: fortran on codeblocks
« Reply #1 on: February 01, 2016, 08:39:11 pm »
kindly assist. thanks, RKR
Well if you cause dependencies due too linking against 3rd party libs then you'll always have to fulfil the dependencies. So you'll always have to ship your app with required libraries. What these are and how they need to be registered we can't tell as we don't know them. You'll have to as for support at the libraries company / homepage.

BTW: That's why installers exists: You can write yourself an installer that takes care about to always install everything that is needed. On Windows / Linux often it is not only enough to copy the DLL into the target folder but also to register it into the system. Again, what you need we can't tell.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline rkr

  • Single posting newcomer
  • *
  • Posts: 2
Re: fortran on codeblocks
« Reply #2 on: February 01, 2016, 08:44:45 pm »
sorry, i am not pretty clear.. my doubt is that after making an .exe file from a program, why is it not working alone - why does it ask for .dll files in the same directory? will it be of any help if i mention what dlls they are asking for.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2566
Re: fortran on codeblocks
« Reply #3 on: February 01, 2016, 09:12:07 pm »