Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: rkr on February 01, 2016, 08:31:56 pm

Title: fortran on codeblocks
Post by: rkr 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
Title: Re: fortran on codeblocks
Post by: MortenMacFly 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.
Title: Re: fortran on codeblocks
Post by: rkr 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.
Title: Re: fortran on codeblocks
Post by: BlueHazzard on February 01, 2016, 09:12:07 pm
read this: https://en.wikipedia.org/wiki/Dynamic-link_library