문제

I've tried: "source files > add > existing item" and selected the .cpp/.h files but I get still a linker error (possibly because my .cpp files didn't get passed into compiler):

error LNK2001: unresolved external symbol "struct Mem mem" (?mem@@3UMem@@A)

How do I fix it?

도움이 되었습니까?

해결책

I found the solution. I have extern struct Foo in header file which I forget to give an actual definition in some .cpp file.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top