C

all about C programming

C How to check if a file exists

When create a program related with IO, we want to check if a file exists or not. C/C++ have a function needed to check if a file exists or not. We can use some of function in stat.h to check if a file exists. This is a simple C How to check if a file [...]

configure: error: cannot find install-sh, install.sh

configure: error: cannot find install-sh, install.sh When try to configure an open source code, I get error like this : configure: error: cannot find install-sh, install.sh, or shtool in “.” “./..” “./../..” Add command : autoreconf -f -i -Wall,no-obsolete before you call configure command to remove configure: error: cannot find install-sh, install.sh, or shtool in [...]

Error : possibly undefined macro: AM_INIT_AUTOMAKE

I am download a open source code from the internet. This code dont have “configure” file, so we must create “configure” file before try to compile this code. This code have “configure.ac” file. So, we can use “autoconf” command to create “configure” file. When I call “autoconf” command, I get the error message like this [...]