Feb 22, 2001 #1 RSTR Programmer Mar 25, 2000 27 US Could someone please tell me what this means?: error C2040: 'Status' : 'int (void)' differs in levels of indirection from 'int' Thankyou -RSTR benthecat@hotmail.com
Could someone please tell me what this means?: error C2040: 'Status' : 'int (void)' differs in levels of indirection from 'int' Thankyou -RSTR benthecat@hotmail.com
Feb 22, 2001 #2 Valius Programmer Oct 20, 2000 174 US Are you trying to use the extern keyword? If so this probably means that one of your declarations is a pointer and the other one isn't. somefile.h int *number; anotherfile.cpp extern int number; //wrong extern int *number; //right This may also apply to a function. I just had this exact same error a few minutes ago and that's what fixed it. Upvote 0 Downvote
Are you trying to use the extern keyword? If so this probably means that one of your declarations is a pointer and the other one isn't. somefile.h int *number; anotherfile.cpp extern int number; //wrong extern int *number; //right This may also apply to a function. I just had this exact same error a few minutes ago and that's what fixed it.
Feb 22, 2001 Thread starter #3 RSTR Programmer Mar 25, 2000 27 US that's the thing, though, I'm not using any pointers at all. just variables. I have a class set up in a header file, and all I did was include it in a cpp file, and it didn't. benthecat@hotmail.com Upvote 0 Downvote
that's the thing, though, I'm not using any pointers at all. just variables. I have a class set up in a header file, and all I did was include it in a cpp file, and it didn't. benthecat@hotmail.com