Hello people, I'm using VC++ 6.0 with SP5 and the processor pack 5 installed. My operating system is Windows XP with SP2.
I have downloaded NSS-3.11.4 with NSRP 4.6.4 I have installed mozilla build package 1.1 and have also generated all the necessary files. I'm just trying to use the NSS. I wanted to get a handle for the certificate in the certificate database. I have properly setup the VC++ environment. I could compile the code but have errors when trying to link the same. The following is the error I'm getting: Sample.obj : error LNK2001: unresolved external symbol "char * __cdecl SECU_ConfigDirectory(char const *)" (? SECU_ConfigDirectory@@[EMAIL PROTECTED]) Debug/sample.exe : fatal error LNK1120: 1 unresolved externals What files do I need to link to get this error cleared? I have included the code below: #include "nss.h" #include "cert.h" #include "certdb.h" #include "secutil.h" int main(int argc, char **argv) { SECStatus rv; CERTCertDBHandle *certHandle; CERTCertificate *cert; rv = NSS_Init(SECU_ConfigDirectory(NULL)); certHandle = CERT_GetDefaultCertDB(); cert = CERT_FindCertByNickname(certHandle, "User1"); return 0; } Thanks in advance, Arun _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto