User forums > Using Code::Blocks

Does CB read .inp files?

(1/1)

Denis9899:
I tried to use CB to compile this project https://github.com/davidhoover/DNAWorks
It has a DNAWORKS.inp file. CB builds project without errors, but when I run the app it writes "Where is the inputfile DNAWORKS.inp?" How to manage this problem?

Miguel Gimenez:
The best option is copying the .inp file where the .exe is and changing project setup (Project -> Properties -> Build targets) so "Execution working dir" is the same specified in "Output filename" with the executable name removed

oBFusCATed:
It will work fine if you set the working dir to be matching where the app is expecting its input files. There is no need to move inputfiles anywhere (if it works from a terminal of course).

Navigation

[0] Message Index

Go to full version