C
Christopher Parent
I have perused through the groups and a couple C++ manuals and haven't
been able to figure this one out. Maybe I'm staring at it too much.
Here's the setup, I have 2 files. One is a library and one is the
program source:
MyLibrary.C
-----------
int InstallSigHandler( void (*sigHandler) (int) )
{
// ....
return ...
}
MyMain.C
--------
#include MyLibrary.h
void *MySigHandler(int);
main()
{
InstallSigHandler(MySigHandler); <== Error Line
}
void *MySigHandler(int x)
{
// ...
}
Error: Could not find a match for InstallSigHandler( void*(int)).
--------------------
The library, MyLibrary, compiles without warnings or errors and is
successfully included when I compile MyMain.C. However, I receive the
error above when compiling MyMain.C.
I feel like there should be parentheses around the void* in the error
message. Not sure. But if anyone out there could lend some advice,
thanks.
Chris
been able to figure this one out. Maybe I'm staring at it too much.
Here's the setup, I have 2 files. One is a library and one is the
program source:
MyLibrary.C
-----------
int InstallSigHandler( void (*sigHandler) (int) )
{
// ....
return ...
}
MyMain.C
--------
#include MyLibrary.h
void *MySigHandler(int);
main()
{
InstallSigHandler(MySigHandler); <== Error Line
}
void *MySigHandler(int x)
{
// ...
}
Error: Could not find a match for InstallSigHandler( void*(int)).
--------------------
The library, MyLibrary, compiles without warnings or errors and is
successfully included when I compile MyMain.C. However, I receive the
error above when compiling MyMain.C.
I feel like there should be parentheses around the void* in the error
message. Not sure. But if anyone out there could lend some advice,
thanks.
Chris