A
An Ony
Hi,
I'm just learning c++ with the book from Bjarne Stroustrup and I just type
what is in his book into Visual Studio .NET. Is that a good compiler for
that or not? I'm beginning to have my doubts... and it needs to be ANSI C++
without the .NET framework. Now that I think about it, is "visual c++"
something else than the ANSI c++?
anyway, what's wrong with this:
=====================>
class Employee {
short dept;
public:
Employee();
};
void main(){
Employee e = Employee();
}
<=================
I just put this in 1 file and build, VS complains:
error LNK2001: unresolved external symbol "public: __thiscall
Employee::Employee(void)" (??0Employee@@$$FQAE@XZ)
fatal error LNK1120: 1 unresolved externals
TIA
I'm just learning c++ with the book from Bjarne Stroustrup and I just type
what is in his book into Visual Studio .NET. Is that a good compiler for
that or not? I'm beginning to have my doubts... and it needs to be ANSI C++
without the .NET framework. Now that I think about it, is "visual c++"
something else than the ANSI c++?
anyway, what's wrong with this:
=====================>
class Employee {
short dept;
public:
Employee();
};
void main(){
Employee e = Employee();
}
<=================
I just put this in 1 file and build, VS complains:
error LNK2001: unresolved external symbol "public: __thiscall
Employee::Employee(void)" (??0Employee@@$$FQAE@XZ)
fatal error LNK1120: 1 unresolved externals
TIA