C-Algorithms package

Hello Everyone i just downloaded and installed the c-algorithms package from here https://aur.archlinux.org/packages/c-algorithms/ but i dont rely know how i can use it when compiling with gccbecause when i use for example the <arraylist.h> header file and i compile with

gcc -o main `pkg-config --cflags --libs libcalg1.0` main.c

I get the error message

Package libcalg1.0 was not found in the pkg-config search path.Perhaps you should add the directory containing `libcalg1.0.pc'to the PKG_CONFIG_PATH environment variableNo package 'libcalg1.0' foundmain.c:2:22: fatal error: arraylist.h: No such file or directory #include<arraylist.h> ^compilation terminated.

Re: C-Algorithms package

Moving to AUR issues.

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael FaradayYou assume people are rational and influenced by evidence. You must not work with the public much. -- Trilby----How to Ask Questions the Smart Way

Re: C-Algorithms package

it looks like that should be libcalg-1.0 as that is the name of the pc file in the package.

When i compile using

gcc -o c `pkg-config --cflags --libs libcalg-1.0` main.c

I still get the error message

Package libcalg-1.0 was not found in the pkg-config search path.Perhaps you should add the directory containing `libcalg-1.0.pc'to the PKG_CONFIG_PATH environment variableNo package 'libcalg-1.0' foundmain.c:2:22: fatal error: arraylist.h: No such file or directory#include<arraylist.h>^compilation terminated.

Re: C-Algorithms package

Ah, well, the PKGBUILD is 'broken'. I tried installing it, makepkg appropriately gives a warning that there is no package function. I followed through anyways, and as suspected, it didn't install anything. It is an empty package.

Fix the PKGBUILD, and I suspect you'll fix your problem ... then be sure the let the maintainer know. (edit: I have emailed bins)

EDIT: 'bins' has 36 AUR packages, and all that I checked have the same problem - all of them will create empty packages. The expectation that there be a package function has been around for quite a long time, however, I believe that only recently (w/ pacman 4.1?) did it lead to actual empty packages like these.

Re: C-Algorithms package

Re: C-Algorithms package

I mean that anyone installing this from the package isn't going to have that problem. You've clearly chosen 'make install' as your undocumented solution here, which is entirely not the point of the thread (to fix the PKGBUILD).