[BUG] BCryptGenRandom reference in function, error in building #743

Closed
opened 2026-01-29 16:52:34 +00:00 by claunia · 2 comments
Owner

Originally created by @Snimm on GitHub (Mar 7, 2023).

Please prefix your issue with one of the following: [BUG], [PROPOSAL], [QUESTION].

To get the version of CCExtractor, you can use --version.

Please check all that apply and remove the ones that do not.

CCExtractor version: 0,94

Necessary information

  • Is this a regression (i.e. did it work before)? {YES/NO}
  • What platform did you use? {Window}

Additional information

I used the method given in the compilation guide for windows to build the project with visual studio.
I got the following error:

1>ccx_rust.lib(std-c9a71bd02014cc03.std.7378dd35-cgu.0.rcgu.o) : error LNK2019: unresolved external symbol __imp_BCryptGenRandom referenced in function _ZN3std6thread5local4fast12Key$LT$T$GT$14try_initialize17h880969def9aa54ebE
1>ccx_rust.lib(std-c9a71bd02014cc03.std.7378dd35-cgu.0.rcgu.o) : error LNK2019: unresolved external symbol __imp_BCryptOpenAlgorithmProvider referenced in function _ZN3std3sys7windows4rand12fallback_rng17h3d523479d385cd68E
1>ccx_rust.lib(std-c9a71bd02014cc03.std.7378dd35-cgu.0.rcgu.o) : error LNK2019: unresolved external symbol __imp_BCryptCloseAlgorithmProvider referenced in function _ZN3std3sys7windows4rand12fallback_rng17h3d523479d385cd68E
1>G:\ccex-github\ccextractor-master\ccextractor-master\windows\x64\Debug\ccextractorwin.exe : fatal error LNK1120: 3 unresolved externals
1>Done building project "ccextractor.vcxproj" -- FAILED.```

I know that the windows build is failing but this is a different error than the one I found in CI. 
Originally created by @Snimm on GitHub (Mar 7, 2023). Please prefix your issue with one of the following: [BUG], [PROPOSAL], [QUESTION]. To get the version of CCExtractor, you can use `--version`. Please check all that apply and **remove the ones that do not**. CCExtractor version: 0,94 # Necessary information - Is this a regression (i.e. did it work before)? {YES/NO} - What platform did you use? {Window} # Additional information I used the method given in the compilation guide for windows to build the project with visual studio. I got the following error: ``` 1>ccx_rust.lib(std-c9a71bd02014cc03.std.7378dd35-cgu.0.rcgu.o) : error LNK2019: unresolved external symbol __imp_BCryptGenRandom referenced in function _ZN3std6thread5local4fast12Key$LT$T$GT$14try_initialize17h880969def9aa54ebE 1>ccx_rust.lib(std-c9a71bd02014cc03.std.7378dd35-cgu.0.rcgu.o) : error LNK2019: unresolved external symbol __imp_BCryptOpenAlgorithmProvider referenced in function _ZN3std3sys7windows4rand12fallback_rng17h3d523479d385cd68E 1>ccx_rust.lib(std-c9a71bd02014cc03.std.7378dd35-cgu.0.rcgu.o) : error LNK2019: unresolved external symbol __imp_BCryptCloseAlgorithmProvider referenced in function _ZN3std3sys7windows4rand12fallback_rng17h3d523479d385cd68E 1>G:\ccex-github\ccextractor-master\ccextractor-master\windows\x64\Debug\ccextractorwin.exe : fatal error LNK1120: 3 unresolved externals 1>Done building project "ccextractor.vcxproj" -- FAILED.``` I know that the windows build is failing but this is a different error than the one I found in CI.
Author
Owner

@PunitLodha commented on GitHub (Mar 14, 2023):

This should've been fixed by #1480. Please check again, and let us know if the issue persists

@PunitLodha commented on GitHub (Mar 14, 2023): This should've been fixed by #1480. Please check again, and let us know if the issue persists
Author
Owner

@cfsmp3 commented on GitHub (Mar 17, 2023):

Closing since we think it's fixed. @Snimm feel free to reopen if needed.

@cfsmp3 commented on GitHub (Mar 17, 2023): Closing since we think it's fixed. @Snimm feel free to reopen if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#743