can't link with libecryptfs-dev
I am trying to write own wrapper function with ecryptfs lib, so i installed the libecryptfs-dev, but some how when I try to link with the lib, it is always getting
main.cpp:
main.cpp:
the main function is simply copy one of the test program now;
#include <errno.h>
#include <stdio.h>
#include <ecryptfs.h>
int main(int argc, char *argv[])
{
char auth_tok_
char salt[ECRYPTFS_
int rc;
if (argc != 3) {
fprintf(stderr, "%s PASSPHRASE SALT_HEX\n", argv[0]);
return EINVAL;
}
from_hex(salt, argv[2], ECRYPTFS_
rc = ecryptfs_
salt);
/* If the key is already added to the keyring, 1 is returned */
if (rc == 1)
rc = 0;
if (!rc)
printf("%s\n", auth_tok_sig_hex);
return rc;
}
cj@cjudev-
/tmp/cc9Lq2Ii.o: In function `main':
main.cpp:
main.cpp:
collect2: error: ld returned 1 exit status
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: