Call truecrypt function independently?

643 Views Asked by At

I want to achieve a basic functionality of an "in-file" encrypted file system, for that I am trying to use open-source truecrypt's files, I want to be able to instantiate the VolumeCreate class and call its functios, using just one algorithm, nothing sophisticated, I want to do this for educational purposes. I get the following errors:

> /tmp/cc92sV4t.o: In function `main':
a.cpp:(.text+0x31): undefined reference to `TrueCrypt::VolumeCreator::VolumeCreator()'
/tmp/cc92sV4t.o: In function `TrueCrypt::SharedVal<unsigned long>::Decrement()':
a.cpp:    (.text._ZN9TrueCrypt9SharedValImE9DecrementEv[TrueCrypt::SharedVal<unsigned                     long>::Decrement()]+0x18): undefined reference to `TrueCrypt::Mutex::Lock()'
a.cpp:(.text._ZN9TrueCrypt9SharedValImE9DecrementEv[TrueCrypt::SharedVal<unsigned         long>::Decrement()]+0x48): undefined reference to `TrueCrypt::Mutex::Unlock()'

collect2: ld returned 1 exit status

for the following code:

#include "Core/VolumeCreator.h"

using namespace TrueCrypt;
int main(int argc, char **argv)
{
    VolumeCreator *vct = new VolumeCreator();
    struct VolumeCreationOptions opt;
    return 0;
}
0

There are 0 best solutions below