Reputation: 23
I realize this is kind of an incomplete question, but I'm a student not thoroughly versed in debugging yet. When I try to compile I get the following output:
------ Build started: Project: p05Inheritance, Configuration: Debug Win32 ------
employee.cpp
employee.obj : error LNK2001: unresolved external symbol "private: static class CE::Company CE::Employee::company" (?company@Employee@CE@@0VCompany@2@A)
c:\documents and settings\km\my documents\visual studio 2010\Projects\p05Inheritance\Debug\p05Inheritance.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Does anyone know how I can go about resolving this? Thanks in advance, and let me know if you need any more information.
Upvotes: 0
Views: 187
Reputation: 1334
It appears that CE::Employee::company is not defined anywhere for the linker to find. I suggest you give a little more info in your snippet ie the class in question for us to help you more precisely.
Upvotes: 1