Hi NG,

I'm making my first steps with mozilla programming. My program should only
call a function, but I got parse errors. Please, help me.

My program:

#include <iostream>
#include <certdb.h>
#include <cdbhdl.h>
#include <cert.h>
#include <certt.h>

using namespace std;

int main(int argc, char** argv)
{
nssCertificateStore *store;
NSSCertificate *cert;
PRStatus nssrv;

nssrv = add_certificate_entry(store, cert);
return 0;
}

I tried to compile this with: 
g++ -o testmoz test.cpp -I/usr/local/repos/mozilla/security/nss/lib/certdb
-L/opt/mozilla/lib -lnss3 -I/opt/mozilla/include/nss

In file included from test.cpp:2:
/usr/local/repos/mozilla/security/nss/lib/certdb/certdb.h:53: syntax error
   before `*' token
/usr/local/repos/mozilla/security/nss/lib/certdb/certdb.h:56: syntax error
   before `*' token
/usr/local/repos/mozilla/security/nss/lib/certdb/certdb.h:59: syntax error
   before `*' token
/usr/local/repos/mozilla/security/nss/lib/certdb/certdb.h:63: parse error
   before `*' token
/usr/local/repos/mozilla/security/nss/lib/certdb/certdb.h:65: syntax error
   before `*' token
/usr/local/repos/mozilla/security/nss/lib/certdb/certdb.h:69:
 `CERTSignedCrl'

Reply via email to