Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: RFC: Setting up a minGW compiling envronment for Perl 5.10 (updated)

by BrowserUk (Patriarch)
on Mar 15, 2008 at 15:16 UTC ( [id://674361]=note: print w/replies, xml ) Need Help??


in reply to Re^4: RFC: Setting up a minGW compiling envronment for Perl 5.10
in thread RFC: Setting up a minGW compiling envronment for Perl 5.10

It was after our discussion about ld linking directly against .dlls thatI went and browsed a few pages that google threw up, and I remember reading something about the export-all-symbols flag. It said something about it being enabled by default but disabled under certain conditions.

When I saw your post and managed to locate a reference to the flag, to check the spelling, but not the page a read about the disabling of the default or the conditions, something to do with .def files. I don't have/use MinGW to try it out.

I'll do another google and try to locate the discussion I saw before.

Update: I found this page which discusses the stuff about that switch. I'm not sure if it is the same page I read before, but it rings bells. I'm also not able to determine in the abstract if it will have any affect on your example problem?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^6: RFC: Setting up a minGW compiling envronment for Perl 5.10 (updated)
by syphilis (Archbishop) on Mar 16, 2008 at 00:59 UTC
    I'm also not able to determine in the abstract if it will have any affect on your example problem?

    I don't think it does. It seems to me to be explaining how to get your dll's to export symbols. You can:
    1) Use -export-all-symbols which is apparently the default, and will export all symbols;
    2) Use a def file - which turns off -export-all-symbols and exports only those symbols specified in the def file;
    3)Mark the symbols to be exported with __declspec(dllexport) - which turns off -export-all-symbols and exports only those symbols marked as __declspec(dllexport).

    I'm already using the second method to successfully export all symbols. I can't see that there would be anything to be achieved by using the first method instead. The symbols are already being exported - the problem (though I regard it more as a *puzzle* than a problem) seems to be something else.

    Thanks for the link - it's a rather straghtforward and informative explanation.

    Cheers,
    Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://674361]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-19 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found