genesismining / sgminer-gm

A multi-algo GPU miner
GNU General Public License v3.0
339 stars 144 forks source link

Windows Visual Studio Link errors #57

Open melvinwch opened 7 years ago

melvinwch commented 7 years ago

I am unable to resolve VS2017 C++ linker issue with ADL and Algorithms. Please advise.

1>adl.obj : error LNK2001: unresolved external symbol "bool opt_reorder" (?opt_reorder@@3_NA) 1>adl.obj : error LNK2001: unresolved external symbol "int opt_hysteresis" (?opt_hysteresis@@3HA) 1>adl.obj : error LNK2001: unresolved external symbol "int opt_overheattemp" (?opt_overheattemp@@3HA) 1>adl.obj : error LNK2001: unresolved external symbol "int opt_targettemp" (?opt_targettemp@@3HA) 1>algorithm.obj : error LNK2001: unresolved external symbol "void cdecl equihash_calc_mid_hash(unsigned int64 const,unsigned char )" (?equihash_calc_mid_hash@@YAXQEA_KPEAE@Z) 1>algorithm.obj : error LNK2001: unresolved external symbol "void cdecl yescrypt_regenhash(struct work )" (?yescrypt_regenhash@@YAXPEAUwork@@@Z) 1>algorithm.obj : error LNK2001: unresolved external symbol "void __cdecl cryptonight_regenhash(struct work )" (?cryptonight_regenhash@@YAXPEAUwork@@@Z) 1>algorithm.obj : error LNK2001: unresolved external symbol "void cdecl precalc_hash_blakecoin(struct _dev_blk_ctx ,unsigned int ,unsigned int *)" (?precalc_hash_blakecoin@@YAXPEAU_dev_blk_ctx@@PEAI1@Z) 1>algorithm.obj : error LNK2001: unresolved external symbol "void cdecl equihash_regenhash(struct work )" (?equihash_regenhash@@YAXPEAUwork@@@Z) 1>algorithm.obj : error LNK2001: unresolved external symbol "void __cdecl blake256_regenhash(struct work )" (?blake256_regenhash@@YAXPEAUwork@@@Z) 1>algorithm.obj : error LNK2001: unresolved external symbol "void cdecl blakecoin_regenhash(struct work *)" (?blakecoin_regenhash@@YAXPEAUwork@@@Z) 1>algorithm.obj : error LNK2001: unresolved external symbol "void cdecl ethash_regenhash(struct work )" (?ethash_regenhash@@YAXPEAUwork@@@Z) 1>algorithm.obj : error LNK2001: unresolved external symbol "void __cdecl precalc_hash_blake256(struct _dev_blk_ctx ,unsigned int ,unsigned int )" (?precalc_hash_blake256@@YAXPEAU_dev_blk_ctx@@PEAI1@Z) 1>driver-opencl.obj : error LNK2001: unresolved external symbol "unsigned int cdecl equihash_verify_sol(struct work ,struct sols_s ,int)" (?equihash_verify_sol@@YAIPEAUwork@@PEAUsols_s@@H@Z) 1>driver-opencl.obj : error LNK2001: unresolved external symbol "bool cdecl init_sysfs_hwcontrols(int)" (?init_sysfs_hwcontrols@@YA_NH@Z) 1>sgminer.obj : error LNK2001: unresolved external symbol "void cdecl eth_gen_cache(struct pool )" (?eth_gen_cache@@YAXPEAUpool@@@Z) 1>sgminer.obj : error LNK2001: unresolved external symbol "int __cdecl add_var_int(unsigned char ,unsigned int64)" (?add_var_int@@YAHPEAE_K@Z) 1>sgminer.obj : error LNK2001: unresolved external symbol "bool __cdecl set_coinbasetxn(struct pool *,unsigned int,unsigned int64,unsigned __int64,char const )" (?set_coinbasetxn@@YA_NPEAUpool@@I_K1PEBD@Z) 1>sgminer.obj : error LNK2001: unresolved external symbol "unsigned int __cdecl EthCalcEpochNumber(unsigned char )" (?EthCalcEpochNumber@@YAIPEAE@Z) 1>sgminer.obj : error LNK2001: unresolved external symbol "void __cdecl sysfs_cleanup(int)" (?sysfs_cleanup@@YAXH@Z) 1>util.obj : error LNK2001: unresolved external symbol "double eth2pow256" (?eth2pow256@@3NA)

Zetanova commented 7 years ago

Could you resolve the issue?

Ethorsen commented 6 years ago

Found any solution to this? Even with Windows 7 + VS 2013 express I get the same exact errors.

Plus ADL_SDK 6 is nowhere to be found. Tried with SKD 7.0 and also tried the header files from this repo: https://github.com/magnumripper/od6fan

I'm not a c++ dev and I don't understand the errors and whats involved.