Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

not able to call my header file  RSS feed

 
Punit Jain
Ranch Hand
Posts: 1028
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
Saloon Keeper
Posts: 6969
109
  • 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: 1028
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
Boost this thread!