Skip to content

Linking error when applying on Windows #1

@hungmiu

Description

@hungmiu

Hi,

I am trying to use CMake to create a project on windows 10, visual studio 2014 64 bit, but I got an linking error. The error is shown as follows

Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "void __cdecl ICP::initSimulation(class std::vector<struct glm::tvec4<float,0>,class std::allocator<struct glm::tvec4<float,0> > >,class std::vector<struct glm::tvec4<float,0>,class std::allocator<struct glm::tvec4<float,0> > >)" (?initSimulation@ICP@@yaxv?$vector@U?$tvec4@M$0A@@glm@@v?$allocator@U?$tvec4@M$0A@@glm@@@std@@@std@@0@Z) referenced in function "bool __cdecl init(int,char * *)" (?init@@YA_NHPEAPEAD@Z) cis565_ICP

Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "void __cdecl ICP::endSimulation(void)" (?endSimulation@ICP@@yaxxz) referenced in function main cis565_ICP

Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "void __cdecl ICP::stepGPU(void)" (?stepGPU@ICP@@yaxxz) referenced in function "void __cdecl runCUDA(void)" (?runCUDA@@yaxxz) cis565_ICP

Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "void __cdecl ICP::copyPointsToVBO(float *,float *)" (?copyPointsToVBO@ICP@@YAXPEAM0@Z) referenced in function "void __cdecl runCUDA(void)" (?runCUDA@@yaxxz) cis565_ICP

Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "void __cdecl ICP::unitTest(void)" (?unitTest@ICP@@yaxxz) referenced in function "bool __cdecl init(int,char * *)" (?init@@YA_NHPEAPEAD@Z)

Are there any solution for this error. I am not familiar to GPU coding, so i do not know how to fix error. Any body can help me solve it.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions