Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not able to call my header file

 
Punit Jain
Ranch Hand
Posts: 1012
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hii i m not able to call my header file MYSTACK.H
here is my code:

mystack.h



Here i m calling it...



Both of my files are in same directory..

i m getting error:

'Cstack' undeclared (first use this function)..
and few more..
 
Stephan van Hulst
Bartender
Posts: 5329
48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you have nothing called 'Cstack' declared in your header file.
 
Punit Jain
Ranch Hand
Posts: 1012
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ahhh okay..
thanks..
and i m still getting one error:

[Linker error] undefined reference to `CStack::~CStack()'
 
Anand Hariharan
Rancher
Posts: 272
C++ Debian VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your class declares a destructor but does not define it.

Remove or comment line 22 in your header file. Or replace it with


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic