linking error for not being able to link header file to cpp file correctly

后端 未结 2 1562
北荒
北荒 2021-01-26 03:35

I have two projects in one solution. When I try to access a function of one project\'s from another one I get error LNK2001: unresolved external symbol. But the lin

2条回答
  •  攒了一身酷
    2021-01-26 03:59

    It is the role of the linker to resolve unknown symbols.

    Thus if projet A uses methods from projet B defined in the cpp file, you need to link A against B.

    As stated, it would be fine to have more information about both projects, IDE (visual???)...

提交回复
热议问题