Hi all, I was trying to build and run my project containing three .c and three .h files.
The imread() function reads a BMP image in the current directory, and it runs OK with command-line:
> gcc -Wall -o project matrix.c util.c image.c
But after I tryed C::B by putting sources, project file, debug output dir. all in one directory,
say /Users/user/code, with no extra bin/ and obj/, the execution becomes:
imread(): File open error.
Clearly this is the message I wrote when the BMP is not found.
But it works OK again if I use TERMINAL to cd to ~/code, where the BMP resides, then run ./project myself.
I wonder if it's the problem of my own configurations, or something is wrong with the C::B build message:
Executing: osascript -e 'tell app "Terminal" to do script "/Users/user/code/project "' (in /Users/user/code)
It seems to be runnung my project directly from my home directory (terminal default), even if I changed the
"Execution working dir." to absolute path: /Users/user/code in "project properties".
In this case, it sure cannot see the BMP file.
Of course, it works again when I copy the BMP to home, but this is unnatural and is still not correct for my purpose.
I know the Mac version is still new, and so am I to C::B, so hope someone can tell who is wrong.
Thanks in advance.
Ryan.