[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
link error when using getcon
- From: "Clarkson, Mike R \(US SSA\)" <mike clarkson baesystems com>
- To: <fedora-selinux-list redhat com>
- Subject: link error when using getcon
- Date: Tue, 15 May 2007 13:51:06 -0700
Can anyone help me out with this link error?
% g++ -L/usr/lib64 -lselinux -o SimulatedImport SimulatedImport.cc
/tmp/cc2AWYzw.o(.text+0x1ab): In function `main':
: undefined reference to `getcon(char**)'
collect2: ld returned 1 exit status
I thought that all I needed to link in was libselinux.a, located at
/usr/lib64/libselinux.a
I have the following lines in SimulatedImport.cc:
security_context_t *context = 0;
int gcrtn = getcon(context);
Thanks,
Mike
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]