Click here to Skip to main content
15,880,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, i'm working with ubuntu 20.04. After run build.sh i try compile certutil.c via gcc by command but get reference error
gcc -I "../../../dist/private/nss" -I "../../../dist/public/nss" -I "../../../dist/Release/include/nspr" -L "../../../dist/Release/lib" certutil.c -lnssutil3 -lplds4 -lplc4 -lnspr4

But get errors like
<pre>

...
/usr/bin/ld: certutil.c:(...): undefined reference to `PORT_Realloc`
/usr/bin/ld: certutil.c:(...): undefined reference to `NSS_Shutdown`
...

etc...
This reference from nspr4. How add this reference? i add lib -lnspr4

What I have tried:

gcc -I "../../../dist/private/nss" -I "../../../dist/public/nss" -I "../../../dist/Release/include/nspr" -L "../../../dist/Release/lib" certutil.c -lnssutil3 -lplds4 -lplc4 -lnspr4
Posted
Comments
VladimirSid 20-Jun-21 15:57pm    
Can I build this for windows?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900