Can some one help me with this error:
=========================================error================================
In file included from /usr/include/sys/signal.h:34,
from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/pthread.h:22,
from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/sparc-sun-solaris2.6/bits/gthr-default.h:37,
from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/sparc-sun-solaris2.6/bits/gthr.h:98,
from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/sparc-sun-solaris2.6/bits/c++io.h:37,
from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/bits/fpos.h:44,
from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/iosfwd:46,
from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/ios:44,
from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/ostream:45,
from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/iostream:45,
from main.cpp:1:
/usr/include/sys/siginfo.h:259: 'ctid_t' is used as a type, but is not defined
as a type.
/usr/include/sys/siginfo.h:260: 'zoneid_t' is used as a type, but is not
defined as a type.
/usr/include/sys/siginfo.h:390: 'ctid_t' is used as a type, but is not defined
as a type.
/usr/include/sys/siginfo.h:391: 'zoneid_t' is used as a type, but is not
defined as a type.
=========================================error================================
my code works when i do everything in int main(). all i did was created a function someFunction():void and forward declarded it coz i didnt have a .h file and called it in my int main() function;