madcompnerd
05-30-2004, 05:49 PM
Hello, little compile issue with a program I'm working on. I'm moderately stumped so I'm posting a request for any info you have on this.
The program includes gcrypt.h:
#include <gcrypt.h> //this is c++ if you haven't realized, and I also tried it with a small c program, same issue, and I have also tried two different computers with different distros (Arch, Debian Unstable)
I can compile fine with gcrypt included, and I can use types defined in that .h file. However, when I attempt to use any functions provided it comes up with an "undefined" function error. The kind one typically receives when he has a template but never defined the function with a body.
libgcrypt does come with some documentation about things to do at compile time, but none of them help. In fact, it's method doesn't seem to work at all for me.
gcc -o foo.o foo.c 'gcrypt-config --cflags --libs'
That gives me an error about not finding gcrypt-config. But when I run gcrypt-config straight from the cli it comes up with output about proper options (so the script is in my path).
My estimate is that g++/gcc is finding /usr/include/gcrypt.h but not finding /usr/lib/libgcrypt.so.* .
Any thoughts or ideas please. Maybe someone has experience with this library.
Thank you.
The program includes gcrypt.h:
#include <gcrypt.h> //this is c++ if you haven't realized, and I also tried it with a small c program, same issue, and I have also tried two different computers with different distros (Arch, Debian Unstable)
I can compile fine with gcrypt included, and I can use types defined in that .h file. However, when I attempt to use any functions provided it comes up with an "undefined" function error. The kind one typically receives when he has a template but never defined the function with a body.
libgcrypt does come with some documentation about things to do at compile time, but none of them help. In fact, it's method doesn't seem to work at all for me.
gcc -o foo.o foo.c 'gcrypt-config --cflags --libs'
That gives me an error about not finding gcrypt-config. But when I run gcrypt-config straight from the cli it comes up with output about proper options (so the script is in my path).
My estimate is that g++/gcc is finding /usr/include/gcrypt.h but not finding /usr/lib/libgcrypt.so.* .
Any thoughts or ideas please. Maybe someone has experience with this library.
Thank you.