graphitemaster / incbin

Include binary files in C/C++
The Unlicense
966 stars 90 forks source link

Can not open file for read - although the file exists. #19

Closed IngwiePhoenix closed 8 years ago

IngwiePhoenix commented 8 years ago

So all I did was:

$ gcc incbin/incbin.c -o incbin
$ ./incbin -o scripts.cpp src/scripts.rc

and got an error:

Ingwie@Ingwies-Macbook-Pro.local ~/W/IceTea $ file src/scripts.rc 
src/scripts.rc: ASCII c program text
Ingwie@Ingwies-Macbook-Pro.local ~/W/IceTea $ ./out/incbin -o scripts.cpp ./src/scripts.rc 
failed to open `./src/scripts.rc' for reading

What exactly could be the issue for this?

IngwiePhoenix commented 8 years ago

In fact, this is the whole script: https://github.com/IngwiePhoenix/IceTea/blob/master/build.sh (will be commenting out the line that calls incbin soon, its actually not even required on UNIX :). But its analogous to the windows variant.)

graphitemaster commented 8 years ago

Fixed in 76a0059