[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Problems to load a C++ tux module
- From: Marcus Gruendler <runner tamalin de>
- To: TUX Development Mailing List <tux-list redhat com>
- Subject: Problems to load a C++ tux module
- Date: Sun, 25 Mar 2001 13:49:22 +0200
Hi,
As mentioned in the subject, I have problems loading a tux module which is
compiled using g++. Since my application code is written in C++ I have no
choice but to use g++ as the compiler.
I compiled everything with -fpic and the event handling code for tux looks
like this:
extern "C" {
#include <tuxmodule.h>
}
...
extern "C" int TUXAPI_handle_events (user_req_t *req)
{
...
}
extern "C" void TUXAPI_init (void)
{
...
}
Whenever I start tux (service tux start) I get the following message
opening shared library /var/www/tux-modules/tuxdemo.tux.so
handle: (nil)
Success: dlopen() handle missing
I don't know what's wrong, though I have to admit I am no expert in using
dlopen() especially concering interoperability of C/C++. I know there could
be a problem with name mangling but this should be solved by using extern "C"
shouldn't it?
I have copied all libraries in /lib and other needed libraries to
/var/www/html/lib (since /var/www/html is my DOCROOT) so there shouldn't be a
problem with chroot().
Could anybody help me on this issue?
Bye, Marcus
--
Marcus Gruendler
eMail: runner@tamalin.de
WWW: http://www.tamalin.de/runner/index_en.html
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]