Dependencies of a referenced DLL not copied to assembly folder

Hi all,
I am developing an addin for excel with VSTO, but I have a problem with a referenced library and its dependecies.
I use the Webkit.NET library, which works fine in any Windows Forms Application.
The problem is, that the referenced DLL has a lot of dependencies. But copying those into the BIN folder does not work, as the library is dynamically loaded, when using the class in the addin at runtime. The location of the WebkitBrowser.DLL is at some temporary
assembly location, where it sits completely isolated, and does not find its dependencies:
C:\Users\JFX\AppData\Local\assembly\dl3\AYCKH6VV.6KL\40RJQYK1.QJN\47c69582\0005881f_f946cb01
How do I get Visual Studio to copy all needed dependencies (dll.manifest among others..) into that location
OR keep it from copying that DLL into that location, but instead load it from the BIN folder?
Simply setting the "LocalCopy"-flag to "True" doesn't help. It still gets loaded from that location.
Any help is much appreciated!
Regards, Jonas
[DD] Link to Jonas’ preceding thread concerning .dll references from the VSTO section:
Include indirect dependencies of a dependency

Hi,
Your issue is not related to VS IDE, it is out of
support range of VS General Question forum which mainly discusses the usage of Visual Studio IDE such as
WPF & SL designer, Visual Studio Guidance Automation Toolkit,
Developer Documentation and Help System and
Visual Studio Editor.
Based on your another case about the same issue:
https://social.msdn.microsoft.com/Forums/de-DE/22f27fd9-548c-411d-986f-e5d6a80cfacb/include-indirect-dependencies-of-a-dependency?forum=vstode, you find the cause of this issue with Eugene Astafiev’s help:
shadow copying cannot be disabled for VSTO addins, which confirmed your issue is more related to VSTO instead of Visual Studio itself. And Eugene Astafiev gave some explanation for the cause and provide some suggestions for your scenario.
I recommend discussing your issue with VSTO experts on that thread.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Message with a large attachment will not copy to SENT folder...what can I do to correct?

    After sending a message with a large attachment, I receive an error message that the message did not copy over into the SENT file. It allows me to retry, which does not correct the problem. Ultimately, I have to 'X" out of the message without knowing for sure if the message was sent.

    Well that really leaves one thing.
    Create an exception in your Anti virus program to exclude the Thunderbird profile folder from on access scanning.
    Locate your profile folder by going to the Thunderbird help menu and opening the troubleshooting entry and clicking on the show folder button. Windows explorer will open in your profile folder.
    There have been issues with slowness and scripts timing out recently caused by scanning, I am sort of hopeful this is another manifestation.
    Basically it takes an Anti virus program some minutes to scan a 1Gb file and I think what is happening is Thunderbird tried to update the file, the AV starts scanning because the file has been opened and after that Thunderbird just gives up.

  • FIle scenario error - file not copied to destination folder

    Hi,
    I am workin on sample file to file scenario.I am using transport protocol as FTP. I had made one system as ftp and placed 2 folders in it, sender and receiver ,wat i am tryin to do is,pick xi_inputfile.xml from sender folder and place it in destination folder.
    after completing the settings in IR and ID, whn i am looking in RWB message monitoring, its showing msg status as successful but in the interface it is showing exception.and file is nt copied into receiver folder
    I want to know how can I see what is that exception.
    Other thing is when I am going in detail of msg , in message content tab it is showing
    com.sap.aii.af.ra.ms.api.DeliveryException=Message failed by admin.
    Thanks.

    Reactivate the channel from ID.
    Refresh Adapter Engine cache (mode=full) then test by sending new message.
    For full CPACache refresh
    http://<hostname>:<port>/CPACache/refresh?mode=full
    hostname = where xi is installed
    port = 5<instance no.>00
    Check IR mapping is correct and Ur is having authorization with Basis Team. Unless , resend the message by basis id.

  • DW CS6 and jQuery Mobile 1.2.0 - does not copy icons folder

    Using the trial version of DW CS6
    Attempting to create a JQuery Mobile Web site using DW and JQM 1.2.0
    This is what I have done.
    1. Created a new folder in C:\Program Files\Adobe\Adobe Dreamweaver CS6\configuration\Third Party Source Code\jquery-mobile2
    and copied the following files:
    jquery-1.8.2.js
    jquery.mobile-1.2.0.js
    jquery.mobile.structure-1.2.0.css
    jquery.mobile.theme-1.2.0.css
    \images - all files copied from the JQuery Mobile download for v1.2.0
    2. Edited the following files in C:\Program Files\Adobe\Adobe Dreamweaver CS6\configuration\BuiltIn\Mobile Starters:
    jQueryMobileLocalMultiPage.htm
    jQueryMobileLocalSplitMultiPage.htm
    and pointed them to the new jquery-mobile2 folder by changing each path from
    ../../Third Party Source Code/jquery-mobile/
    to
    ../../Third Party Source Code/jquery-mobile2/
    3. In DW, File New and selected the "Page from Sample > Mobile Starters > jQuery Mobile with Theme(local) and DW created a file with paths pointing to the local copies of jquery-mobile2 folder.
    4. File > Save As and point to a folder and hit save and DW opens a dialog box asking me if I want to copy the 2 CSS and 2 JS files mentioned above.
    So I hit "Copy" and it saves the HTML file and also copies the 2 CSS and 2 JS files. But when I open the HTML file created, in my browser, there are no images displayed. I checked the folder and although DW has copied the other files it has NOT copied the images folder. I have to manually copy the folder across and only then will the images display corrctly in the page.
    This appears to be a bug in DW CS8 and its handling of the JQMobile template.
    Is there a proper solution other than remembering to manually copy the images folder or can this be noted as a bug and corrected as I want to use the latest version of JQMobile.

    Fixed it myself. I realized that I needed to leave <link href="jquery-mobile/jquery.mobile.theme-1.0.min.css" rel="stylesheet" type="text/css"/> in index.html and to add a new line <link href="jquery-mobile/y_theme.css" rel="stylesheet" type="text/css"/>

  • Could not copy the file "C:\Microsoft.WITDataStore.dll" because it was not found.

    Hi All,
    I need to use "Microsoft.TeamFoundation.WorkItemTracking.Common, Version=11.0.0.0" dll in my code.
    But when I try to build my application I get the below error.
    "Could not copy the file "C:\Microsoft.WITDataStore.dll" because it was not found."
    And when I try to include version 12 of the same dll , code gets build successfully. And when I try to consume the code(which uses the dll) I get
    'Could not load file or assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader,
    Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
    The system cannot find the file specified."
    how do I go ahead with this..??
    Thanks
    Uma.K

    Hi Uma,
    You might check whether the version 11 of the assembly is referenced or added into soruce control. When use the referenced files, please use the relative path for building. If the version 11 of the assembly is not added, please add it to source control and
    make sure it's referenced correctly.
    It would be better to let us know the TFS version that you're using. And you can also use version 12 if the assembly works fine. If you have any other concerns, elaborate your scenario with more details.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to copy referenced photos from dodgy external drive to new drive when whole file will not copy due to error 36.

    My external WD portable passport drive must be dodgy because I can't back it up or clone it or copy 3 of my 22 photo files to a new portable drive. I get error 36 as I attempt all 3 processes. I have copied my iPhoto library, iMovie events and most of my aperture referenced photos to the new drive. But cannot copy 3 files that contain the corrupted files showing just a grey triangle. I cannot delete or move to trash the corrupted raw photos.
    How can I copy to the new drive any photos that aren't corrupted (grey triangle instead of photo or a photo that's just coloured horizontal broken lines) so I can then reconnect the referenced photos after copying them?
    I am on late 2008 MacBook Pro with lion,
    Many thanks
    Bw

    I've worked out how to copy and reconnect individual photos.
    But can see that what's happening is that heavily edited raw photos are taking ages to load. Or not loading at all. And if opened go to the spinning wheel for 5-10 minutes. I am wondering whether to compress these or take them back to the originals or any other ideas would be very welcome.
    Thank you
    BW

  • Deleting photos from external drive when referenced (not copied) to iPhoto

    Hi, I've seen similar posts, but none of them really answers my question.
    I have an external NAS drive with RAID, where I keep ALL my data, because I use number of ways to access them. I also have my photos there. I recently bouht MAC MINI and I want to use it to organise my photos. Because I have only 80G drive on MAC, I choose to import the photos from the external drive to iPhoto, NOT copying them to it's own library but rather referencing them only.
    Now the question I have - When I delete a photo in iPhoto by putting it to Trash and then empty the trash, the file still stays on the external drive, although it disapperas from iPhoto library. This is uselesss to me, because I WANT the file to be deleted from the external drive (orginizaing the files, right?).
    The only way I found I can do this is clicking on the file in iPhoto, selecting "find file on disk" then deleting the file from disk, then deleting from iPhoto, one by one. That is no way to do it, I would rather use Picasa instead, although I like iPhoto more, I think it is superior in almost everything else.
    One more question: is there a way to see a list of directories imported to iPhoto?
    thanks,
    J.

    J.
    What I need is to delete the file when I "look" at it,
    Use a File Organiser. That’s what they are for, organising files. Other than that, if you’re using a database application such as iPhoto then you have to use the application to manipulate the data.
    You ask a question:
    But I am still wondering why isn't there any setup option to actually allow iPhoto to delete referenced files.
    and the answer
    I know it may cause some problems for some user,
    iPhoto is firmly focussed on the home user with a point and shoot camera. It’s very effective at what to does, but it does very simple things. Any setting that could lead to inadvertent data loss is avoided. (There are occasional posts on the forum from folks who uncheck that ‘Copy Files to Library on Import‘ setting but who then don’t actually move the files from the camera. They wonder why iPhoto has “lost their photos“.)
    You mention that you’re using the NAS so that access your photos in a number of ways. IF you can tell us what ways you use, perhaps we can help.
    I just need to know which directories I imported to iPhoto.
    How are these directories organised? Named?
    Regards
    TD

  • Oracle.DataAccess.dll not loading in 64 - bit OS

    Hi All
    I have a console application that needs to be scheduled in task manager. My system is 32-bit operating system and I’m using Oracle.DataAccess.dll in my application to establish connection to the oracle db. The version is 2.112.1.0 and the processor architecture of this dll in C:\Windows\Assembly is x86. In my local m/c this dll works fine with all 3 build and target platforms – x64, x86 or AnyCPU. But when I copy the files to my staging server which is a 64-bit OS I’m getting the following exception. (Note: I’m also having Oracle.DataAccess version 10.2.0.100 which is also x86 available in C:\Windows\Assembly)
    System.BadImageFormatException: Could not load file or assembly 'Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    File name: 'Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' at
    Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable D:\ProjectFolder\MyExecutable.exe
    Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable D:\ ProjectFolder\MyExecutable.exe
    --- A detailed error log follows.
    === Pre-bind state information ===
    LOG: User = UserId
    LOG: DisplayName = Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342
    (Fully-specified)
    LOG: Appbase = file:///D:/ ProjectFolder/
    LOG: Initial PrivatePath = NULL
    Calling assembly : MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: D:\ ProjectFolder\MyExecutable.exe.Config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342
    LOG: Attempting download of new URL file:///D:/ ProjectFolder/ Oracle.DataAccess.DLL.
    ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
    I have tried to build the application to target AnyCPU / x64 / x86. It fails in all 3 scenarios.
    There are other applications in the staging server where Oracle connection can be established. So ODP.Net should be registered in the server. So looks like problem with my console app. Does anyone have any idea what could be the problem?
    Thanks & Regards,
    Sree

    If I'm reading your post correctly, your application is built using ODP.net 2.112.1.0 (an 11gR2 client) and your other system has 10.2.0.100 (a 10g client).
    That's your problem. When .net tries to load the assembly, it looks for 2.112.1.0. Policy files that get installed when you install the client would allow it to use a newer version instead (like 2.112.3.0), but not to use an older version. So .net doesn't think you have a compatible Oracle client installed.
    You could manually add assembly binding redirects to force it to load 10.2.0.100, but I really don't recommend that given some differences between 10g and 11g (I tried that once and had some weird problems). You could also build the application using 10.2.0.100 instead.
    The best fix for this is to install 2.112.1.0 on the other system, or try out the managed client when it's out of beta (which doesn't need to be installed at all).

  • Images I move from one folder into another are disappearing, at first it was occurring immediately if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location.

    Images I move from one folder into another are disappearing, at first it was occurring immediately and only if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location. A few of these images had copies in another folder that remained and the ones I couldn't find may or may not have ever had copies. I had backed up my system with time machine recently as well, so I went into the backup to retreive the lost images. When I searched and found the backup copies I got the error "the file alias cannot be opened because the original cannot be located". The crazy thing is that the images that remained on my computer did not give me the same error and opened like they should.
    In short images that I am creating, saving, and using are disapearing so epically that even time machine versions are affected when retrieval is attempted. Any suggestions as to what I could be doing wrong without realizing it? Or perhaps other people have had similar bugs that are software related and have a solution?

    Hi Kevin,
    I understand what you tried to do but it doesn't work that way. Swapping drive names will just mess things up.
    You should be able to reconnect the files though: in the Locate Referenced Files dialog make sure you click the Show Reconnect Options button — this will give you access to all the connected drives. Locate one of the files and hit Reconnect All. Should do the trick.
    Best

  • TS1717 Getting two error messages when trying to access I Tunes on my Windows 7 Computer:  Windows Error 126 and MSVCR80.dll not found

    Having difficulty accessing I Tunes on my Windows 7 Vista.
    Error messages are two fold:
    1. MSVCR80.dll not found.  Reinstall may help correct prob.
    2. Windows Error 126. 

    Uninstall your existing copy of iTunes. Delete any copies of the iTunesSetup.exe (or iTunes64Setup.exe) installer files from your downloads areas for your web browsers and download a fresh copy of the iTunes installer from the Apple website:
    http://www.apple.com/itunes/download/
    (The current build of the 11.1.4.62 installer was changed a few days ago, which fixed the bulk of the reports of MSVCR80.dll/R6034/APSDaemon.exe/Error-7/AMDS-could-not-start trouble ... but the build number on the installer was not changed. So we're trying to make sure you do the reinstall using a "new good" 11.1.4.62 installer instead of an "old bad".)
    Does the install with the new copy of the installer go through properly? If so, does that clear up the error message?
    If you still have the same error messages cropping up, then try the procedures from the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • IPod won't sync - "Itunes could not copy (name of song) to the ipod (name of ipod) Because an unknown error occurred (-53)"

    I recently bought a used iPod Classic (my previous one was stolen). I still had my iTunes library on my computer so I was just going to hook it up and sync my library over, replacing what was on there from the previous user. When I first hooked it up to my computer (Windows 7 64-bit) there was a message saying the drivers were not installed properly. I un-plugged it, and plugged it back in to the same result. I tried 1 more time and didn't get the error message. I then opened iTunes and clicked on the iPod. I checked for updates, then clicked "Restore this iPod". Next, I set it up to sync music, and the sync began. It seemed to work for a while, the "Syncing iPod" message was displayed at the top, and it said it was copying songs over. It did this for about 10 minutes before I finally got the following message:
    "Itunes could not copy (name of song) to the ipod (name of ipod) Because an unknown error occurred (-53)"
    After that happens, everything seems to freeze up. iTunes says it's still syncing, but nothing ever seems to happen. If I click the eject button, nothing happens either. I eventually have to just disconnect the iPod. The iPod seems frozen for a while, then it seems to reboot itself (the gray apple window displays), then the interface displays and I can get to the songs on there. But, only a very small portion of my library makes it to the iPod. I've tried several times now and it always seems to be the same songs that DO make it onto the iPod. However, it's a different song listed in the error message each time, so it doesn't seem to be just 1 song causing the problem. Also, once I hook the iPod back to the computer, Windows displays a message prompting me to scan the drive and fix errors. I did it once and it said it found some errors and fixed them.
    I saw this thread: https://discussions.apple.com/thread/3924425
    and some people were suggesting removing everything from your library then re-adding it, in case the paths were messed up. I tried that and still got the same results. I also updated iTunes to the latest version, and I've tried different USB ports and 2 different USB cables.
    I also found instructions for a batch file you can run that, I believe, updates the iTuens DLLs, I did that as well but it did not help: http://support.apple.com/kb/TS1539
    What else can I try to fix this?

    bump (if that's allowed)

  • How do I get iPhoto to not copy photos into its own folder, read originals?

    I was wondering how you could get iPhoto 6 to 'read' photos from it's original file.
    I normally keep my photos in their own folder, separate from the iPhoto file. Now I kind of want to have them all organized nicely in the iPhoto file so I don't have duplicates floating around. I wiped the iPhoto Library (they were duplicates) and as I import them, they copy right back into an 'iPhoto Library' file. I want them to stay in my own folder 'My Photos'.
    Is this possible? =S

    Simply go to iPhoto Menu -> Preferences -> Advanced and uncheck 'Copy Files to the iPhoto Library on Import'.
    Now iPhoto will not copy the files, but rather simply reference them on your HD. To do this it will create an alias in the Originals Folder that points to your file. It will still create a thumbnail and, if you modify the pics, a Modified version within the iPhoto Library Folder.
    *However, you need to be aware of a number of potential pitfalls using this system.*
    1. Import and deleting pics are more complex procedures
    2. You cannot move or rename the files on your system or iPhoto will lose track of them on systems prior to 10.5 and iPhoto 08. Even with the later versions issues can still arise if you move the referenced files to new volumes or between volumes.
    3. Most importantly, migrating to a new disk or computer can be much more complex.
    Always allowing for personal preference, *I've yet to see a good reason to run iPhoto in referenced mode unless you're using two photo organisers.*
    If disk space is an issue, you can run an entire iPhoto Library from an external disk:
    1. Quit iPhoto
    2. Copy the iPhoto Library as an entity from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    If you're concerned about accessing the files, there are many, many ways to access your files in iPhoto:
    For 10.5 users: You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Apple-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. If you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    Or, if you want to access the files with iPhoto not running, then create a Media Browser using Automator (takes about 10 seconds) or use THIS
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    Your choice, obviously, but best to be aware of all the ramifications. By all means post back if you require more info.
    Regards
    TD

  • ITunes could not copy "" to the iPhone "" because an unknown error occorred (-50).

    This is a very annoying problem. I've followed everything by the books and cannot figure it out.
    I'm getting the warning     iTunes could not copy "[Song Name]" to the iPhone "[Phone Name]" because an unknown error occorred (-50)   and don't know what to do. I've followed Apple's guildline - http://support.apple.com/kb/ts1539 - of uninstalling, reinstalling, reregistering .dll files, restoring the phone, updating the phone, making sure the "Convert higher bit rate songs to 128 kbps AAC" option was not checked, etc. Does any body have any idea what the issue is here? I just did all of this after updating iTunes to 10.4 and my iPhone 4 to 4.3.4 and am running Windows XP. I've had the issue for about 3 weeks - it occured both after reformatting my PC's hard drive and installing iTunes 10.3 (I know others had issues with 10.3). ANY help would be amazing. Thank you!

    Hey Edward,
    This is most likely a USB speed or connection issue. Make sure the iPhone is directly connected to a USB 2.0 port.
    To find out if your computer has USB 2.0, enter your computers serial number on this web page: http://support.apple.com/specs/
    This article has more connection tips:
    http://docs.info.apple.com/article.html?artnum=307091
    Jason
    Message was edited by: Jason L

  • Ld.so.1 problem - fatal: relocation error - "referenced symbol not found"

    Hi, I've been trying to compile and run my application non Solaris using CC (detils below) but haven't got luck with running the application because of a linker error :
    ld.so.1: java: fatal: relocation error: file ./libtest.so: symbol __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___J__nullref_: referenced symbol not found
    Here's what I'm trying to do :
    I'm compieing one library to include another shared library whcih uses the "string" class (STL). The compilation of both the libraries proceeds perfectly fine. However, when i preload this library with LD_PRELOAD and run a JAVA application (which will have calls to some function in the preloaded library), the get the above linker error.
    Here's what all I have tries to get thsi wroking : ( I understand that this error is due to a missing library that CC has not linked to and i've no idea what the library is!!!)
    1.> # LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
    # export LD_LIBRARY_PATH - NO LUCK :-(
    2.> linked to /opt/SUNWspro/lib/libCrun.so (found this from another forum on the net), but NO LUCK :-(
    3.> export LD_DEBUG=bindings
    export LD_DEBUG_OUTPUT=/home/log.txt (so that all sysmbols refered are logged!!!)
    i did a grep on the log for the symbol but NO LUCK!!! :-(
    Please can you help me with this? What is the library that is to be linked too, or is there something else?
    Details About my system, compiler and compilation options :
    1.> uname -a output : SunOS sh1sol9 5.9 Generic_117171-12 sun4u sparc SUNW,Sun-Fire-280R Solaris
    2.> CC version : Sun WorkShop 6 update 2 C++ 5.3
    3.> Compilation flags i've used to build the library :
    FIRST LIBRARY : CC -G -xcode=pic32 -I../common/ -ldl ../common/logger.cpp helper_functions.cpp BCPEntries.cpp BCP_class.cpp -o libBCP.so
    SECOND LIBRARY : CC -G -xcode=pic32 -I../common/ test_BCP_construct.cpp -lBCP -L. -o libtest.so
    Please help me out of this,
    Any and every help (or even a hint to it) will be appreciated!!!
    Thanks in advance,
    Madhur Kumar Tanwani

    Refer to the C++ Users Guide that comes with the compiler, the chapter on Building Libraries, which explains these points in more detail.
    When you build a C++ shared library, you must explicitly list all the libraries that it depends on. Unlike building an executable, the CC -G command does not by default create dependencies on system libraries. Although not explained well in the Guide, you should be sure you get the shared (.so) versions of all libraries, not the static (.a) versions.
    All C++ programs require at least libCrun and libc. Programs that use the C++ Standard library (using anything in the std namespace, like std::string) also need to link to the appropriate version of the library.
    The default library is libCstd. If you compile using the optional STLport library, you need the libstlport instead. You cannot use both libCstd and libstlport in the same program.
    In your case, the build command would look something like this, assuming you are using the default libCstd:
    CC -G -o mylib.so ..... -library=Cstd,Crun -lc
    Be sure that any preceeding -Bstaic option is followed by -Bdynamic before listing these system libraries.
    To verify you have picked up the dynamic libraries, run the command
    ldd mylib.so
    to see a list of dependencies. If you don't see the following in the list
    /usr/lib/libCstd
    /usr/lib/libCrun
    /usr/lib/libc (or /lib/libc)
    something is wrong.
    A note about LD_LIBRARY_PATH: don't use it.
    Ideally, the environment variable should never be set. If you must set it to reach vendor-supplied libraries, never put the system directories /lib or /usr/lib on the path, and never put the compiler installation directory, like /opt/SUNWspro/... on the path. You can wind up forcing the runtime loader to seach directories in the wrong order and pick up inappropriate versions of libraries.
    For more on LD_LIBRARY_PATH, read this note in Rod Evans' blog. He's the Sun linker expert. The material here is available in the manuals, but his blog has a nice summary.
    http://blogs.sun.com/roller/page/rie/?anchor=tt_ld_library_path_tt

  • Calendar Server installation gets error "libnmspr20.dll not found"

    Calendar Server installation gets error "libnmspr20.dll not found"
    <P>
    When installing Calendar Server 3.5 on NT near the end an error
    occurs: "libnmspr20.dll not found " and then it will exit the setup
    without completion.
    This is a bug because it is looking for the libnmspr20.dll in the
    system path but the Calendar Server installation has left it in a
    temp directory. This does not occur if the Netscape Messaging Server
    has been previously installed on the same host. A workaround is, when
    the error message displays, you DON'T press ok, but search your
    computer for the missing file (usually found in temp-directory).
    You then copy the file to a directory in your system path. Now you
    can press the OK button and the installation will fail. Re-install
    the calendar server, this time the installation won't fail.

    Installing Latest JRE on NT4 sp6a produces the same error:
    InstallShield DLL Custom Action:
    File 'C:\TEMP\RegUtils.dll' can not be found. Make sure the file is on the target system or installed already.
    I searched www.installshield.com since the error is an installer error and the installer is InstallShield. NO results found there either.
    Seems like the installer team needs to brush up on the NT4 platform.

Maybe you are looking for

  • I want to connect a DataBase(oracle) through Tomcat5.

    i want to connect a DataBase(oracle) through Tomcat5. pls tell me the steps how can i do this .or pls give me any link thanks previously

  • About sql statement in AM

    Using jdev11.1.1..5.0 select 1 from dual where DUMMY = :pdummy ;@ run time if i give :pdummy as String X means i get an value 1 so same try to do in AM.     public void dummy(String pdummy)             CallableStatement cs = null;             try{   

  • Error when send date format to R3

    All, i want to send date to BAPI , field type sy-datum, i'm using java.sql.Date as reference (yyyy-MM-dd), but error occurs , does anyone know why?

  • App Icon

    Does anyone know how to create an App Icon for a website that would saved on an iPhone?

  • ["solved"] [fluxbox] xcompmgr applies shadow effect to wbar

    I'm using fluxbox, xcompmgr and wbar. When I run wbar and xcompmanager together the shadow is also applied in wbar which is undesireable. I've tried various combinations to initialize xcompmgr and wbar and nothing works including changind load order.