LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-19-2005, 11:43 PM   #1
bianchi
Member
 
Registered: Nov 2005
Location: Italy
Posts: 36

Rep: Reputation: 15
Lightbulb Dll main in *.so


Hello ,

When porting a dll from windows - mfc into linux wxwidgets ,
still there is a function APIENTRY DllMain .
Do I have something similar in linux ?
 
Old 11-20-2005, 01:05 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

No, Linux .so shared object libraries don't have an equivalent to "Dllmain()".

I would argue that's a good thing: *nix .so's are simply libraries - they're not trying to be executables, too.

As you probably know, DllMain is usually just an empty stub (Microsoft discourages you from doing any more work than absolutely necessary in DllMain), so perhaps your best bet is to wrap your DllMain in an "#if defined(WIN32)".

These links might help:

http://www.woodtennis.com/win2unix.html

http://en.wikipedia.org/wiki/Library_(computer_science)

Your .. PSM

Last edited by paulsm4; 11-20-2005 at 12:34 PM.
 
Old 11-20-2005, 02:54 AM   #3
bianchi
Member
 
Registered: Nov 2005
Location: Italy
Posts: 36

Original Poster
Rep: Reputation: 15
10X

10X
 
  


Reply



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
DLL and BFD blinux1 Programming 1 03-02-2005 11:28 AM
DLL Hell? rkwhited Linux - General 3 10-07-2004 11:11 AM
Steam.dll... unsmart Linux - Games 3 05-08-2004 09:13 AM
Error: "A required .DLL file, CYGPCRE -0.DLL, was not found" when using man dipperdan Linux - Newbie 2 04-28-2004 03:55 PM
hal.dll XPediTioN Slackware 3 09-16-2003 12:05 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:54 AM.

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