Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-09-2009, 01:44 AM   #1
LQ Newbie
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Problem with loading Shared Library

When I include this function in the file, I am able to create a DLL but not load it (dlopen)

struct A : public mem_manager_t<A>{
tlm_module *handle;

static void default_function(void *ctx){

A *evt = (A *)ctx;
delete evt; ----------------------------------- (1)

If I comment out the line (1) [delete evt], then I can load the DLL.

Any reason why the 'delete' in the global static function is causing a problem in loading DLL?

The files are compiled using -fPIC option.

Do I need to add more compiler options?
Old 10-21-2009, 07:20 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Moved: This thread is more suitable in <Programming> and has been moved accordingly to help your thread/question get the exposure it deserves.

Since you appear to be taling about Windows programming, you may be better off in a different forum.....


library, load, shared, static

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while loading shared library : dhanilshah Linux - Software 5 08-18-2011 07:38 AM
RHEL 5 - Booting problem - error loading shared library c00kie88 Linux - Enterprise 1 06-04-2009 09:46 PM
error while loading shared library lucky6969b Programming 2 02-08-2006 12:41 AM
error while loading shared library bonniehandi Linux - Newbie 2 11-18-2005 11:43 PM
MAndrake 10 library problem : error while loading shared libraries falojah Linux - Software 13 09-22-2005 06:18 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration