fix windows compile

- fix build documentation
- fix plugin load methods
- fix symbol export for plugins
This commit is contained in:
psychocrypt
2017-09-30 23:46:08 +02:00
parent 87357352c9
commit ef551cc032
7 changed files with 25 additions and 15 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ public:
#endif
if( cuda_get_deviceinfo(&ctx) != 1 )
{
printer::inst()->print_msg(L0, "Setup failed for GPU %d. Exitting.\n", cfg.id);
printer::inst()->print_msg(L0, "Setup failed for GPU %d. Exitting.\n", i);
std::exit(0);
}
nvidCtxVec.push_back(ctx);
+7 -1
View File
@@ -105,10 +105,16 @@ bool minethd::self_test()
}
extern "C" std::vector<IBackend*>* xmrstak_start_backend(uint32_t threadOffset, miner_work& pWork)
extern "C"
{
#ifdef WIN32
__declspec(dllexport)
#endif
std::vector<IBackend*>* xmrstak_start_backend(uint32_t threadOffset, miner_work& pWork)
{
return nvidia::minethd::thread_starter(threadOffset, pWork);
}
} // extern "C"
std::vector<IBackend*>* minethd::thread_starter(uint32_t threadOffset, miner_work& pWork)
{