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