Grep
- 298
- 3
Helping matumich26 in another thread, I'm running into something puzzling and hoped someone might know what's going on. I must be missing something...
Though 'crypt' is probably a bad name for the class, and the problem is easily avoided by capitalizing the first latter, I still don't know where this crypt function is coming from.
I get this when he tries to instantiate his 'crypt' class:
crypt.cpp:109: warning: statement is a reference, not call, to function ‘crypt’
Now, I've removed the #include <stdlib.h> just in case it's being pulled in from there. Nope, still complains. No C headers included at all.
I took out the 'using namespace std;' and used 'using std::string;' and so on so I don't have the whole std namespace pulled in. Nope, it's not in the std namespace, I guess. Nor can I find a reference to one in documentation.
So I have no C header files included, nor the std namespace. Why the heck is 'crypt' still declared? From the man page for crypt(3) - if that's the culprit - I should need to include unistd.h. It's not.
Anyone know where the heck it's coming from (on a Linux system, BTW)? It's kind of bothering me.
Though 'crypt' is probably a bad name for the class, and the problem is easily avoided by capitalizing the first latter, I still don't know where this crypt function is coming from.
I get this when he tries to instantiate his 'crypt' class:
crypt.cpp:109: warning: statement is a reference, not call, to function ‘crypt’
Now, I've removed the #include <stdlib.h> just in case it's being pulled in from there. Nope, still complains. No C headers included at all.
I took out the 'using namespace std;' and used 'using std::string;' and so on so I don't have the whole std namespace pulled in. Nope, it's not in the std namespace, I guess. Nor can I find a reference to one in documentation.
So I have no C header files included, nor the std namespace. Why the heck is 'crypt' still declared? From the man page for crypt(3) - if that's the culprit - I should need to include unistd.h. It's not.
Anyone know where the heck it's coming from (on a Linux system, BTW)? It's kind of bothering me.
