Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

not able to call my header file

 
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
Bartender
Posts: 6589
86
  • 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


 
Water! People swim in water! Even tiny ads swim in water:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!