It worked perfectly!!!!

Thank you very much for your assistance.

Alan Jorge Markus
CISSP, CISA, CRISC, LPIC-I

Por favor considerar impacto ambiental antes de imprimir.

*Nota de Confidencialidade:* Esta mensagem e seus eventuais anexos podem
conter dados confidenciais. Se você a recebeu por engano ou não é um dos
destinatários aos quais ela foi endereçada, por favor, apague-a
imediatamente, juntamente com todos os seus eventuais anexos e cópias, uma
vez que é proibida a retenção, distribuição, divulgação ou utilização de
quaisquer informações aqui contidas. Por favor, informe-nos em caso de
recebimento indevido desta mensagem, retornando-a para o autor. Agradecemos
a gentileza de sua cooperação.

This email and any files transmitted with it are confidential, may be
legally privileged and are intended solely for the use of the individual or
entity to whom they are addressed. If you are not the intended recipient,
you are hereby notified that any use, distribution, or reproduction of the
contents of this email is strictly prohibited and may be unlawful. If you
are not the intended recipient, please notify the sender by return email
and destroy all copies of the original message including any attachments
thereto. Thank you.


2013/5/27 Ilkka Virta <[email protected]>

> On 27.5.2013 1:19, Alan Markus wrote:
>
>> Hi,
>>
>> I am trying to use the oath-toolkit lib to test totp but i am having a
>> problem when i try to compile my "test" program with the liboath
>> library. Sorry for asking this here but i am sutcked for the last 2 days.
>>
>> here is the information:
>> Library is installed from oath-toolkit source, compilation and
>> installation without problems.
>> aj@aj-LINUX:~/totp$ sudo ldconfig -v | grep liboath
>> liboath.so.0 -> liboath.so.0.1.3
>>
>> My main.cpp "test" program:
>> #include <liboath/oath.h>
>>
>
>  aj@aj-LINUX:~/totp$ g++ main.cpp -loath -o teste
>> /tmp/ccXbve8u.o: In function `main':
>> main.cpp:(.text+0x45): undefined reference to `oath_init()'
>>
>
> Since that's a C program (instead of C++), you should use gcc to compile
> it instead of g++.
>
> If you change to C++ at some point, and use a C library (like -loath), you
> have wrap the C declarations (or the header file) in extern "C" {}.
> This should work:
>
> extern "C" {
> #include <liboath/oath.h>
> }
>
> You should find more information on this online (way more than I know...,
> see for example:
> http://stackoverflow.com/**questions/1041866/in-c-source-**
> what-is-the-effect-of-extern-c<http://stackoverflow.com/questions/1041866/in-c-source-what-is-the-effect-of-extern-c>
>
>
> --
> Ilkka Virta / itvirta at iki.fi
>

Reply via email to