in reply to Building Net:SSLeay fails with latest openssl 1.0.2h

No such problem for me on Windows with Net-SLeay-1.77 and openssl 1.0.2h.

Are you using a Microsoft Compiler ?
Line 6060 is:
int first = OCSP_resp_find(bsr, certid, -1);
I've struck scoping issues like this with MS compilers before.

Try changing line 6060 to:
first = OCSP_resp_find(bsr, certid, -1);
and then change line 6030 to:
int i,want_array, first;
Cheers,
Rob