Code::Blocks

User forums => Using Code::Blocks => Topic started by: omlk on July 09, 2018, 09:39:11 pm

Title: Fix compile .rc Error: can't open file `prompt' No such file or directory
Post by: omlk on July 09, 2018, 09:39:11 pm
OS: Windows 7 64bit
IDE:
(http://i67.tinypic.com/2lw9jxt.jpg)

The compiler says it is compiling the rc file, but it does nothing. After cancling i get:

Code: [Select]
can't open file `prompt': No such file or directory
preprocessing failed.
=== Build finished: 2 errors, 0 warnings ===

(http://i67.tinypic.com/b9j7fo.jpg)
(http://i63.tinypic.com/9ibxow.jpg)

I fix this problem using windres.exe with options param --use-temp-file

Code: [Select]
$rescomp $res_includes $res_options --use-temp-file -J rc -O coff -i $file -o $resource_output
(http://i66.tinypic.com/jv10kw.png)
Title: Re: Fix compile .rc Error: can't open file `prompt' No such file or directory
Post by: BlueHazzard on July 10, 2018, 01:30:18 am
A rebuild log is also needed, not only the error message, but the whole command line from the log