On Mon, Apr 3, 2017 at 5:53 PM, clashion <[email protected]> wrote:
>
> I tried to compile the code from https://github.com/ebfe/scard .
>
> Error during compilation.
>
>
> Environment: go1.8 , linux
>
>
> Error Message:
>
>
> cgo-gcc-prolog:198:2: warning: passing argument 3 of ‘SCardGetStatusChange’
> from incompatible pointer type [enabled by default]
>
>
> /usr/include/PCSC/winscard.h:64:16: note: expected ‘LPSCARD_READERSTATE’ but
> argument is of type ‘struct *’
> PCSC_API LONG SCardGetStatusChange(SCARDCONTEXT hContext,
>
>
>
> Need advice how to solve this. Thanks.

You are using cgo code.  This error comes from the C compiler.  You
need to use the correct type in your C code.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to