我想执行名为“dual_ec_drbg”的C程序,生成随机数。该程序使用fips库。我在文件夹中有fips库,我已经安装了fips版本。但我仍然无法弄清楚如何在visual studio中添加所需的头文件并获得输出。一旦我尝试执行它,我就会遇到以下错误:
Warning 1 warning C4627: '#include <stdlib.h>': skipped when looking for precompiled header use c:\users\umar\desktop\th dev\drbgproj_2\drbgproj_2\drbgproj_2.cpp 56 1 DRBGProj_2
Warning 2 warning C4627: '#include <string.h>': skipped when looking for precompiled header use c:\users\umar\desktop\th dev\drbgproj_2\drbgproj_2\drbgproj_2.cpp 57 1 DRBGProj_2
Warning 3 warning C4627: '#include <openssl/crypto.h>': skipped when looking for precompiled header use c:\users\umar\desktop\th dev\drbgproj_2\drbgproj_2\drbgproj_2.cpp 58 1 DRBGProj_2
Warning 4 warning C4627: '#include <openssl/fips.h>': skipped when looking for precompiled header use c:\users\umar\desktop\th dev\drbgproj_2\drbgproj_2\drbgproj_2.cpp 59 1 DRBGProj_2
Warning 5 warning C4627: '#include <openssl/fips_rand.h>': skipped when looking for precompiled header use c:\users\umar\desktop\th dev\drbgproj_2\drbgproj_2\drbgproj_2.cpp 60 1 DRBGProj_2
Warning 6 warning C4627: '#include <openssl/bn.h>': skipped when looking for precompiled header use c:\users\umar\desktop\th dev\drbgproj_2\drbgproj_2\drbgproj_2.cpp 61 1 DRBGProj_2
Warning 7 warning C4627: '#include "fips_rand_lcl.h"': skipped when looking for precompiled header use c:\users\umar\desktop\th dev\drbgproj_2\drbgproj_2\drbgproj_2.cpp 62 1 DRBGProj_2
Error 8 error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source? c:\users\umar\desktop\th dev\drbgproj_2\drbgproj_2\drbgproj_2.cpp 543 1 DRBGProj_2
如果有人使用任何fip / nist drbg,请指导我。