Meaningless Drivel is fun!
The moose likes C / C++ and the fly likes not able to call my header file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Languages » C / C++
Bookmark "not able to call my header file" Watch "not able to call my header file" New topic
Author

not able to call my header file

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1012
    
    2
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

Joined: Sep 20, 2010
Posts: 4094
    
  18

Well, you have nothing called 'Cstack' declared in your header file.


The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1012
    
    2
ahhh okay..
thanks..
and i m still getting one error:

[Linker error] undefined reference to `CStack::~CStack()'
Anand Hariharan
Rancher

Joined: Aug 22, 2006
Posts: 272

Your class declares a destructor but does not define it.

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



"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- Antoine de Saint-Exupery
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not able to call my header file
 
jQuery in Action, 3rd edition