Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Does CB read .inp files?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Does CB read .inp files? (Read 3764 times)
Denis9899
Guest
Does CB read .inp files?
«
on:
July 10, 2019, 12:44:48 pm »
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?
Logged
Miguel Gimenez
Developer
Lives here!
Posts: 1729
Re: Does CB read .inp files?
«
Reply #1 on:
July 10, 2019, 02:12:17 pm »
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
Logged
oBFusCATed
Developer
Lives here!
Posts: 13406
Re: Does CB read .inp files?
«
Reply #2 on:
July 11, 2019, 12:03:19 am »
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).
Logged
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Does CB read .inp files?