Skip to content

LNK2019/1120 errors, C4068 warning #13

@audittothevox

Description

@audittothevox

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions