RE: Compilation error.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: RE: Compilation error.

make sure u include the pam.h as " extern 'C'{ #include "pam_client.h" } "

HTH

ajay

-----Original Message-----
From: Shah, Neelay [mailto:NShah@india.bindview.com]
Sent: Thursday, November 07, 2002 5:27 AM
To: pam-list@redhat.com
Subject: Compilation error.


Hi,

I get the following Compilation error when I try to compile a simple program
that uses PAM.
Also, it works perfectly when I rename the file to .c and use "cc" to
compile.


[root@orange testpam]# c++ -o test_pam test_pam.cpp -lpam
In file included from /usr/include/security/pam_misc.h:7,
                 from test_pam.cpp:16:
/usr/include/security/pam_client.h:55: non-local function `int
pamc_converse (pamc_handle_s *, {anonymous struct} **)' uses anonymous
type


Line 55 of /usr/include/security/pam_client.h has the following code:
int pamc_converse(pamc_handle_t pch, pamc_bp_t *prompt_p);

Line 27 of /usr/include/security/pam_client.h has the following code:
typedef struct { __u32 length; __u8 control; } *pamc_bp_t;

Any ideas why ?

Thanks,
        Neelay S Shah



_______________________________________________

Pam-list@redhat.com
https://listman.redhat.com/mailman/listinfo/pam-list


[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux