LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Linking c++ to libpam

[ILUG] Linking c++ to libpam

John_White at dell.com John_White at dell.com
Thu Jan 20 17:15:17 GMT 2000


Has anybody managed to get some c++ code using the pam functions in
<security/pam_appl.h> to link with libpam ?

some of the things I've tried . . . .
using -lpam	
using -lpam -lpam_misc
"extern"ing the pam functions in my own code	(this is already done in
<security/pam_appl.h>)
"extern"ing the pam functions as "C"  		(collides with those in
<security/pam_appl.h>)

regardless of what I try it can't find the functions at link time . . .

There's no problem linking them to a c program, but linking to a c++ program
is causing quite a bit of difficulty.
I know I'm missing something really obvious but I can't see (remember ?)
what it is.

Any help appreciated.
Thanks,
John.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell