Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LNK2019/1120 errors, C4068 warning #13

Open
audittothevox opened this issue Jun 8, 2020 · 1 comment
Open

LNK2019/1120 errors, C4068 warning #13

audittothevox opened this issue Jun 8, 2020 · 1 comment

Comments

@audittothevox
Copy link

audittothevox commented Jun 8, 2020

Quite inexperienced when it comes to CUDA/C++, but it threw LNK2019/1120 errors when trying to compile as such:
main.cu
main.cu(1): warning C4068: unknown pragma
main.cu(2): warning C4068: unknown pragma

Creating library a.lib and object a.exp
tmpxft_00002b78_00000000-18_main.obj : error LNK2019: unresolved external symbol "public: static void __cdecl random_math::JavaRand::init(void)" (?init@JavaRand@random_math@@SAXXZ) referenced in function main
tmpxft_00002b78_00000000-18_main.obj : error LNK2019: unresolved external symbol "public: static void __cdecl generator::ChunkGenerator::init(void)" (?init@ChunkGenerator@generator@@SAXXZ) referenced in function main
tmpxft_00002b78_00000000-18_main.obj : error LNK2019: unresolved external symbol "public: static bool __cdecl generator::ChunkGenerator::populate(__int64,int)" (?populate@ChunkGenerator@generator@@SA_N_JH@Z) referenced in function main
a.exe : fatal error LNK1120: 3 unresolved externals

From a quick google on my end, it looks like it could be a library/linker error? Most likely on my end.

@hube12
Copy link
Member

hube12 commented Jun 9, 2020

update to latest nvcc compiler that support c++ latest feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants