View Single Post
  #7 (permalink)  
Old October 8th, 2005, 11:46 AM
inkognito inkognito is offline
Registered User
 
Join Date: Oct 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

After a bit of 'try and fail', I got it to work.
I compiled the Employee.cpp file first without linking it:
Code:
g++ -c Employee.cpp
Then I compiled the EmployeeTest.cpp and included the Employee.o file for the linker:
Code:
g++ EmployeeTest.cpp Employee.o -o test
Worked like a charm.