How to create .init. & .fini. sections in shared libraries?

I want to put .init. & .fini. - kind of constructor & destructor in my shared library, to be called when the shared library is getting loaded.
Is it possible to

Off the top of my head, like this:
/* watch out for C++ mangling...*/
extern "C" void init_func( void );
#pragma init ( init_func )
void init_func( void )
   return;
}

Similar Messages

  • How to create a briefing book in Shared Folders

    Hello,
    Firstly, can the subject of this thread be achieved?
    I am able to create a briefing book (within My Briefing Books) and use delivers to deliver it to myself. However, I receive the access denied error message when trying to send the same BB to a user.
    I have created a folder within the shared folder area and copied my BB to the folder. I have added this user to the presentation server administrators group and tried using delivers to deliver the BB from the shared folder, but alas it deosnt work which suggests the BB in essence doesnt exist in the shared folder.
    Anyway, can anyone let me know if it can be done, if so, how is it done?
    Many thanks,
    Rhys

    hi,
    Yes we it is possible.i didnt worked it ouT.By refering to the BIGuide i got this.you can also go through this link..http://download.oracle.com/docs/cd/E12096_01/books/AnyUser/briefingbook.html
    > >
    >I have added this user to the presentation server administrators group and tried using delivers to deliver the BB from the shared folder, but alas it deosnt work which suggests the BB in essence doesnt exist in the shared folder.
    What was the error is there any secuirty issue or the report is not delivering ....Please see the Log file(OracleBI\server\Log\iBots)
    thanks,
    saichand.v

  • How to merge portlet.xml file from shared libraries into an EAR application

    Hi all
    I need some help
    I have some applications as shared-libs referenced by weblogic.xml into a EAR application.
    To see all portlets from that shared-libs, I'm creating a portlet.xml into the EAR application with all portlets from all shared libs. But is terrible for me. I would like to have it merged automatically without having to create it in the EAR application. Is that possible?
    Regards
    Bruno

    In the documentation, I saw this text:
    Overriding Shared J2EE Library Settings in the web.xml File
    At runtime, the web.xml files in all the shared J2EE libraries are merged, along with the web.xml
    file in your portal web project. The content of your WEB-INF/web.xml file overrides anything in
    the shared J2EE libraries, so if you want to change particular settings, you can do it there.
    There are many other files for which file contents are merged; these can be overridden in the same
    way. These files include not only WEB-INF/web.xml but also WEB-INF/weblogic.xml and any
    files mentioned in weblogic-extension.xml from either the users' application or the shared
    libraries.
    It seems to be possible to customize the weblogic-extension.xml. But I haven't seen how to do that
    What do you think about it?
    Regards
    Bruno

  • How to Create Bulk Users in Hpyerion Shared Services Console

    Hi All,
    I need to create bulk users in Shared Services Console. Since i have huge number of users so i don't want to use Front End. Instead i prefer to upload some CSV sort of stuff.
    For this i export Shared Services console and open its Users.csv file.
    Now my plan is to add all my users here and then will Import that Shared Services Console backup.
    The only point where i am confused is that how should i specify Encrypted Passwords in Users.csv file and also what should i write in "internal_id" column

    If you are using LCM and these are native users then you should be able to enter an uncrypted password and when it is imported it should be encrypted.
    Leave the internal id column blank for new users, test by creating one new user.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to create 2-Axis chart all sharing x values?

    Hello,
    I'm trying to create a 2-Axis chart while preserving x-value sharing, i.e. my four paired data sets should be plotted in Scatter mode, I think. To be more clear, I wish to "combine these two charts below into one", with the second Y-axis on the right for the second chart (whose numbers are obviously higher):
    When I attempt to create a 2-Axis chart via the Insert menu, it changes the x-axis data (mAs) into its own data set, treating it as if it were a dependent variable:
    mAs is the independent variable, upon which the others depend ... I can't figure out how to get Numbers to realize this. Sorry for my rambling tone -- I think I should call it a night, but I wish to get this done. Is my problem clear? I want to create a 2-Axis chart, effectively "combining" those first two scatter charts into one 2-Axis scatter chart. Please help!
    Thank you for your time and assistance.

    ER,
    There is no option for a two-axis Scatter Chart. You can simulate it by scaling your data in such a way that it fits the chart and aligns with a second axis that you manually paste into the Sheet and combine with the chart so that it appears to belong there.
    Only the Scatter Chart plots values vs. values. All the other charts plot values against category names (text).
    Regards,
    Jerry

  • How to create a coment section that flows line to line?

    I am on the last leg of this form design, and have stumbled into a dead end with my comment section.  What I need to have happen in this comment section, is to have 4-5 lines (on first page "shown"), that will bleed over into the second page, line by line.  Each line needs to have a bottom border so the text is not hanging out in the cold.  I have tried the subform and text field, but not panning out too well for me.  Any takers?  Thanks!

    Thank you very much - it works.
    When I execute the command
    "lsnrctl start"
    I get the error message
    "Failed to open service <OracleOraDb10g_home1TNSListener>, error 1060."
    but the service is created and is running.
    So the error message can be ignored.

  • How do you copy songs between two shared libraries?

    I have a mac book, hubby has a pc. We have set up home sharing and can see and listen to each others songs. However he has spent the time taking adding music from our CD's to his library. I would like to copy songs from his library and place them in mine but am having no luck. I have tried looking for answers on the forums but have not been successful finding any answers. I have tried copy paste and import. I am sure I am doing something wrong but have no idea what it is. Can someone out there please help?

    iTunes has two kinds of sharing!
    *Regular sharing* allows viewing and listening, but not copying.
    *Home sharing* is the one you want; it allows copying as well. Here is the link to the support article for Home Sharing: http://support.apple.com/kb/HT3819

  • Create a new Section in Pages Beta

    I've uploaded my Pages document in which I create new sections to modify the Header I use.
    Can't see how to create a new section in iCloud Pages Beta.

    Good morning graywright,
    It sounds as if what you are wanting to do in the Pages application is to insert a Page Break. Follow the steps in this article -
    Pages '09: Inserting a Page Break
    In a word processing document, click where you want the break to occur, and then choose Insert > Page Break. 
    To remove a page break, click at the beginning of the line that follows the break and press the Delete key.
    In a page layout document, to insert a new page in your document, click Pages in the toolbar and choose from the template page options available.
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How to Removing Shared Libraries

    recently an unscrupulous tech downloaded my library. In so doing, he downloaded to my iTunes quite a few shared libraries for (I assume)others he does work for. How do I get rid of these shared libraries?????? some require passwords and I can not find a "delete" in my file bar area. Thanks BUDDf

    You cannot "get rid of them" because they belong to another user. Just disable sharing. Go to your iTunes preferences > Sharing > Uncheck everything. Yay!

  • Dynamic runtime shared libraries in Flash

    Runtime shared libraries in Flash only seem to work if there
    is a direct import link into the file that wishes to use the shared
    library item. Why can't the main swf dynamically load a shared.swf
    containing the shared library items into itself and therefore allow
    all child swf's that are loaded after that event to access the
    items? Or why can't you load the shared.swf containing the shared
    library items into the requesting file on the fly and grant access
    to the items from the requesting file that way? Creating direct
    import links to shared libraries in all child flash documents is
    very annoying in larger applications!
    Ideally it should work like this...
    All cross domain security issues have been dealt with.
    I have a main container.swf.
    The main container loads a remote shared library swf that
    contains the shared library items.
    After the load, the main container loads swf files that will
    need to access shared library items.
    One of the loaded child swf's contains a TextField with a style
    sheet attached. We need to have access to a shared font from the
    shared.swf library to enable us to set embedFonts to true and to
    have the TextField render correctly. Unless the import link to the
    shared library was created manually within the child swf containing
    the TextField, the TextField will not render the text with the
    embedFonts set to true.
    This also seems to be the case when dynamically attaching
    shared move clips with linkage id's to the stage. Unless a direct
    import link to the shared library was created within the requesting
    file or should I say the file that is running the script, the
    script fails. It seems that libraries are kept isolated from one
    another, probably to stop linkage id confliction etc. the same way
    as the _global scope isn't shared between swf's originating from
    different domains.
    Using something like, libraryName.linkageID could combat
    this, but I need to know if I'm wasting my time...
    I hope this makes sense. There wasn't a solution last time I
    checked, but it's been awhile and I was hoping someone out there
    has come up with a solution at this stage or even knows the
    official word on the subject.
    Is this possible Adobe?
    Cheers,
    Derek.

    I found the answer. So long as I keep the folder structure in
    my shared library exactly as I have it in my referencing projects,
    I don't need to change anything in the mxml code itself. After
    synchronizing the folder structure, I no longer receive the "1046:
    Type was not found or was not a compile-time constant" error that I
    was getting yesterday.
    France

  • How can I create a new page in pages, without creating a new section?

    how can I create a new page in pages, without creating a new section?

    Good morning graywright,
    It sounds as if what you are wanting to do in the Pages application is to insert a Page Break. Follow the steps in this article -
    Pages '09: Inserting a Page Break
    In a word processing document, click where you want the break to occur, and then choose Insert > Page Break. 
    To remove a page break, click at the beginning of the line that follows the break and press the Delete key.
    In a page layout document, to insert a new page in your document, click Pages in the toolbar and choose from the template page options available.
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How to create a c++ shared library (.so) for linux real time (for myRio) with Eclipse to use in LabView?

    I tried already these Tutorials and Advices but I didn't find a solution:
    - http://www.ni.com/tutorial/14625/en/
    - http://www.ni.com/tutorial/14690/en/
    - http://forums.ni.com/t5/LabVIEW/Shared-Library-on-myrio-Linux-Real-time-system/m-p/2842540/
    - http://forums.ni.com/t5/LabVIEW/How-to-create-shared-library-for-linux-real-time-target-in/m-p/28218...
    - and some more
    I want use c++ codes on linux real time. For testing reasons I want to have a function that adds 2 values and gives the result.
    I've done these steps:
    1. writing a c++ file in Eclipse (see screensot 2)
    2. building a shared library (.so) from my c++ project in Eclipse (with Cross GCC)
    3. putting this file on myRio (path: /usr/local/lib/)
    4. creating a VI that calls this library from Labview with a "Call Library Function Node" (see screenshot3)
    5. Setting the properties for the "Call Library Function Node" (see screenshots 4-7)
    After I run this VI i get this error message: LabVIEW:  (Hex 0x627) The function name for the ... node cannot be found in the library. To correct this error, right-click the Call Library Function Node and select Configure from the shortcut menu. Then choose the correct function name. (see screenshot1)
    I've tried a lot things to solve this problem but I couldn't find a solution. Would be very happy if anyone can help me. I guess that I have to edit my c++ code to export my function (symbol). But I have no idea how to make it. I also tried it with a dll file in the same folder but it didn't help.
    Perhaps someone can send an example which works on myRIO.
    Thanks!
    screenshot1
    screenshot2
    screenshot3
    screenshot4
    screenshot5
    screenshot6
    screenshot7

     can see it in the screenshot8 there is a function called "_Z8AddierenddPd" instead of "Addieren". I copied this name to Labview (see screenshot9) and it worked.
    I'm sure that there is a way to compile the shared folder with gcc without decorations (mangling). But I don't know how. If someone has a recommendation I would be very glad!
    Prepend each function declaration that you want to be available without name decoration with
    extern "C" <your function declaration>
    Or if you have multiple functions you want to export you can in the header file where you declare your functions simply use:
    #ifdef __cplusplus
    extern "C" {
    #endif
    <all your function declarations>
    #ifdef __cplusplus
    #endif
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to Create Shared Storage using VM-Server 2.1 Red Hat Enterprise Linux 5

    Thanks in advance.
    Describe in sequence how to create shared storage for a two guest/node Red Hat Linux Enterprise using Oracle 2.1 VM Server on Red Hat Linux Enterprise 5 using command line or appropriate interface.
    How to create Shared Storage using Oracle 2.1 VM Server?
    How to configure Network for two node cluster (oracle clusterware)?

    Hi Suresh Kumar,
    Oracle Application Server 10g Release 2, Patch Set 3 (10.1.2.3) is required to be fully certified on OEL 5.x or RHEL 5.x.
    Oracle Application Server 10g Release 2 10.1.2.0.0 or 10.1.2.0.1 versions are not supported with Oracle Enterprise Linux (OEL) 5.0 or Red Hat Enterprise Linux (RHEL) 5.0. It is recommended that version 10.1.2.0.2 be obtained and installed.
    Which implies Oracle AS 10.1.2.x is some what certified on RHEL 5.x
    I think it would be better if you get in touch with Oracle Support regarding this .
    Sorry , I am not aware of any document on migration from Sun Solaris to RH Linux 5.2 .
    Thanks,
    Sutirtha

  • How to create an email "leave a reply" section

    I need to know how to create somthing like the "leave a reply" section from this link.
    http://www.magpress.com/blog/introducing-adobe-edge-web-fonts-alternat ive-to-google-web-fonts

    I need to know how to create somthing like the "leave a reply" section from this link.
    http://www.magpress.com/blog/introducing-adobe-edge-web-fonts-alternat ive-to-google-web-fonts

  • How to create Shared RAW disk on solaris 10?

    Hi,
    I have built two solaris machine using VMware. I am going to configuare RAC. how to create shared RAW disk for ocr,votedisk and asm?
    OS version = 5.10 32 bit
    Thanks

    use openfiler ( software based SAN) if do not have shared disk storage system, this is an appliance kinda software can behave as SAN storage, it can be installed on VM as a guest machine and rest configuration remain same as storage and your RAC deployment.
    http://www.openfiler.com/community/download
    alternativly you can follow below method
    http://startoracle.com/2007/09/30/so-you-want-to-play-with-oracle-11gs-rac-heres-how/

Maybe you are looking for