G
grahamo
Hi,
I have a set of routines that are declared thus (and implemented) in a
3rd party library;
extern "C"
{
void boo(type1 arg1, type2 arg2);
void hoo(type1 arg1, type2 arg2);
};
Now I want to wrap those functions in a wrapper class and use them
myself. Am I correct in assuming that all I need to do in the .cxx
implementation file that uses them is to declare them similarly;
i.e.
// my_source_file.cc
extern "C" void boo(type1 arg1, type2 arg2);
extern "C" void hoo(type1 arg1, type2 arg2);
and use them thus;
myClass:myMethod()
{
::boo(arg1, arg2);
}
and then to link against the third party library?
I can get the source to compile and link properly but at startup (on
Solaris), I am getting a "no mapping at fault address" -> core dump,
during initialisation of some completely unrelated static constructor
(i.e. a ctor in another distinct library).
Any help appreciated. I have a core file but it's solaris specific and
so doesn't really belong on this group.
thanks much and have a nice day
G.
I have a set of routines that are declared thus (and implemented) in a
3rd party library;
extern "C"
{
void boo(type1 arg1, type2 arg2);
void hoo(type1 arg1, type2 arg2);
};
Now I want to wrap those functions in a wrapper class and use them
myself. Am I correct in assuming that all I need to do in the .cxx
implementation file that uses them is to declare them similarly;
i.e.
// my_source_file.cc
extern "C" void boo(type1 arg1, type2 arg2);
extern "C" void hoo(type1 arg1, type2 arg2);
and use them thus;
myClass:myMethod()
{
::boo(arg1, arg2);
}
and then to link against the third party library?
I can get the source to compile and link properly but at startup (on
Solaris), I am getting a "no mapping at fault address" -> core dump,
during initialisation of some completely unrelated static constructor
(i.e. a ctor in another distinct library).
Any help appreciated. I have a core file but it's solaris specific and
so doesn't really belong on this group.
thanks much and have a nice day
G.