Using link library with gcc

Hi,
I am trying to convert one of our existing 'C' applications to .swc file.
The 'C' code is huge library with ~ 891 '.c' files and 274 '.h' files.
Are we allowed to use shared library while running the gcc command.
Because when I used the following command in cygwin:
$ gcc -I. jaz.c ./jazxfbrs.dll -O3 -Wall -swc -o jaz.swc;
It gave me the the following message:- "llvm-gcc: ./jazxfbrs.dll: linker input file unused because linking not done"
Does that mean we are not allowed to use linked library for compilation, or is there any workaround.
Thanks for any suggestion on this,
-Yogen

That warning is negligible -- it is just because the gcc wrapper passes your arguments to both the compiling and linking subprocesses.
However, your application will fail at runtime if you try to access functionality from a platform dynamic library (such as a dll).  Alchemy runs inside an actionscript virtual machine and has no way to access local dynamic libraries.  You should link your code statically.

Similar Messages

  • Using Document Library with Baseline

    Hi there,
    I have a specific need with Sharepoint. I have a document library and I want to be able to mark with a tag or generate a baseline for my folders.
    I've already searched on the web, and there is someone doing it just coping and pasting every single file. Is that the better way to get this?
    Thanks,
    Tiago

    Hi Tiago,
    What did you mean "Using Document Library with Baseline" and "generate a baseline for my folders"?
    Did you mean that navigate the document library folders in treeview?
    Did you mean that search or filter multiple folders documents with the same tag (managed metadata column)?
    You may be able to use the "Navigation Hierarchies and Key Filters" for that specified SharePoint 2010 library, here is an article about metadata navigation settings you can check below,
    http://www.sharepointboost.com/blog/understand-and-configure-metadata-avigation-and-filtering/
    Thanks
    Daniel Yang
    TechNet Community Support

  • Using Aperture library with different accounts

    I needed to use my library with two different accounts that are on the same MBP. I read where you might be able to put the library on an external disk and check ignore ownership on the info of the HDD. I had recently installed a 320GB HDD to avoid having to drag around an external so I thought maybe if I partitioned the drive it would "see" the second partition as an external. I partitioned off 50GB and checked the "ignore ownership" in the bottom left corner of the info window. I option+opened Aperture and created a new library in the second HDD. After opening Aperture, I imported a few pics into the library and made dup's. I modified them in my account, closed out of Aperture and logged off. I then logged in under my wife's account and was able to open Aperture by option+opening Aperture and choosing the new library location. The pics that I had imported under my log-in were there as well as the the modified versions. I re-modified the versions to see if it work the other way. I closed out of Aperture and logged out of my wife's account and logged in under mine. I clicked on the Aperture icon in my dock and it came right up w/out any problems. I was able to view the versions that I re-modified under my wife's log-in.
    I know you shouldn't share the library across users just in case two account users are trying to access the same library at the same time; but in my case it is one laptop with two accounts so we wouldn't physically be able to access it at the same time.
    So if you have a big enough HDD and you don't want to drag around an external, partition it however big you think you'll need it, check the "ignore ownership" box in the HDD info window, add read & write permissions for the different accounts, move/copy your current library to the new partition and option+open Aperture to choose the new location.

    Thanks! Just the answer that I was looking for! I had tried just moving the library into the shared directory, but, as we now know, this does not work.
    Now only if I had a partition on my local HD (with "ignore ownership" set)...

  • Problem using a library with an EAR file (ServletNotFoundException)

    Hello
    I'm trying to use a library (J2EE library project) an associated it to an Enterprise Application Project.
    The application was built using the Spring MVC framework.
    When I did deploy I got the following warning:
    Apr 25, 2006 9:44:17 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] INFO:
    [004]Finished Deployment
    And when I try to run the application  I got the following error:
    404 Not Found
    The request cannot be processed.
    Details:   com.sap.engine.services.servlets_jsp.server.exceptions.ServletNotFoundException: Cannot load the requested servlet [data-entryLib/servlet/data-entry].  The ID of this error is
    Exception id: [00306E5DA8D2004E00000068000052550004124234F31271].
    The application run properly when I use the jars file in the WEB-INF/lib folder.
    I have been reading some recomendations in this forum, but nobody tell me how to solve this problem
    Thanks
    Adriana.

    Hi Rajesh
    Thanks for your answer.
    Yes, I deployed the .sda file, add the jars file in the archive server/provider.xml and I checked this: (Problem with EAR referencing a library DC)
    The type of reference that I gave in the EAR file was in the archive application-j2EE-engine.xml:
    <reference
        reference-type="hard">
        <reference-target
          provider-name="sap.com"
        target-type="library">LibreriaDataEntry</reference-target>
    </reference>
    <provider-name>sap.com</provider-name>
       <fail-over-enable
       mode="disable"/>
    Thanks
    Adriana

  • Using "long double" with gcc

    I want to use long doubles (quad, 128-bit floating point variables) in C. I thought the following program would do it:
    #include <stdio.h>
    int main()
    long double a, b, c;
    b = 1./7.;
    c = 7.;
    a = 1./c;
    printf("%.30e \n", a);
    printf("%.30e \n", b);
    printf("%.30e \n", c);
    return 0;
    But the program returns garbage when compiled and run with:
    %gcc top2.c -o test
    %./test
    -1.391130315222827826529386765980e-220
    -1.391130315222712834096824073018e-220
    -2.681561585988519419914804999641e+154
    (XCode 3.1, gcc 4.0.1 or 4.2.1, Intel Xeon, 10.5.4)
    The program works for double, however.
    So what am I doing wrong?
    Matthias

    I can't really help you much there. Maybe you should think about what you are doing and what you really need. I doubt you really need 128 bits. In Apple's Documentation it says:
    -m96bit-long-double
    -m128bit-long-double
    These switches control the size of long double type. The i386 application binary interface specifies the size to be 96 bits, so -m96bit-long-double is the default in 32 bit mode. Modern architectures (Pentium and newer) would prefer long double to be aligned to an 8 or 16 byte boundary. In arrays or structures conforming to the ABI, this would not be possible. So specifying a -m128bit-long-double will align long double to a 16 byte boundary by padding the long double with an additional 32 bit zero.
    In the x86-64 compiler, -m128bit-long-double is the default choice as its ABI specifies that long double is to be aligned on 16 byte boundary.
    Notice that neither of these options enable any extra precision over the x87 standard of 80 bits for a long double.
    Warning: if you override the default value for your target ABI, the structures and arrays containing long double variables will change their size as well as function calling convention for function taking long double will be modified. Hence they will not be binary compatible with arrays or structures in code compiled without that switch.
    Message was edited by: etresoft - gave up trying to format it fancy

  • Using fragment library with SAP MIME repository?

    Hi,
    I am new here so I hope I'm posting this in the right place.
    We use Adobe LiveCycle Designer as part of the SAP Interactive Forms product. We want to use the fragment library but I am unclear how that will work unless we can connect to the SAP MIME Repository.
    Does anyone here have any experience with making this work?
    Also ... is there any online resource (other than SAP's SDN) with specific help documentation for using LiveCycle Designer ES with SAP?
    We are on SAP Netweaver 7.01 and LiveCycle Designer 8.1.
    Thanks!
    MAH

    Hi Chintan,
    Thank you for the prompt. I was going to get to it ...
    Actually I did not find a way to use the fragment library with referenced objects. By 'referenced" we would mean to be able to change the object in the library and all referencing items would be updated. We did NOT find how to do that.
    What we did find, that is still useful to us, and probably anyone working in a development team, is that we could create the library in a shared location and store common fragments there. To use the fragments, go to the library, drag the fragment from the library to your form layout, then 'convert to embedded object' (I think this is on the right click menu, Fragments> convert to embedded object).
    This way you still get the benefit of consistency amongst forms using the same element, and only having to develop each element once.
    I hope you find this helpful!
    Margaret

  • Problems with JSP - using tag library with Weblogic 8.1

    I am getting the following error when I try to run a web application called "regain":
    /searchinput.jsp(2): Error in using tag library uri='regain-search.tld' prefix='search': cannot find tag class: 'net.sf.regain.ui.server.taglib.MsgTag'
    probably occurred due to an error in /searchinput.jsp line 2:
    <%@taglib uri="regain-search.tld" prefix="search" %>
    The classes that the .tld file points to are in the web applications WEB-INF/classes directory and I have put this path into my classpath environment variable (running Windows 2000 Server).
    This application runs fine on Tomcat.
    I can't not figure out whether is error is masking another error or what. I've tried using JDK and Jrockit for my web app - no luck.
    Please help! Thanks!

    anyone? :/

  • Problem while using cewolf library with jsf jboss.

    Hi Guys,
    I am trying to use cewolf library to generate graphs in my web application based on jsf. But I am getting the following exception.
    I have pointed down that cewolf. jar file is causing the problem.
    javax.servlet.ServletException: #{LoginBean.validateUser}: javax.faces.el.EvaluationException: javax.ejb.NoSuchObjectLocalException: Object Not Found ; CausedByException is:
         Receive timed out
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    root cause
    javax.faces.FacesException: #{LoginBean.validateUser}: javax.faces.el.EvaluationException: javax.ejb.NoSuchObjectLocalException: Object Not Found ; CausedByException is:
         Receive timed out
         com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
         javax.faces.component.UICommand.broadcast(UICommand.java:312)
         javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    And this login pages does not at all uses the cewolf library.

    Hello, Reena
    Your process flow seems to be correct in term of getting/freeing memory.
    Following error
    The problem occurs after executing the procedure for 5000 records and I get the error
    ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
    heap","library cache")may be caused by memory leaks in xdk or memory fragmentation(due to get/free memory cycle)
    To find out if this is an memory leak issue you could try to monitor V$SGASTAT from one session while running your batch process in another session.
    To prevent (or lower its impact) fragmentation issues try to PIN objects, and adjust java_pool_size and shared_pool_reserved_size.
    Anyway, counsult your Oracle DBA.
    Oracle version 8.1.7.0.0I think, you should apply database patch first of all. The latest one (8.1.7.4.x) could be accured from Metalink.

  • Linking library with flash builder project?

    I have a flash builder project going and I have found I need to make various movie clips and sprites in in Flash Pro. Is there a simple way to just link my library from the .fla project to my builder project so I can access the assets made in the .fla?
    I'm using the latest version of both software packages.
    Thanks!
    -SGW

    Open your .actionScriptProperties file and set useFlashSDK to false.  This will allow you to use your older SDKs.  They are managed in the same way as Flash Builder 4.6 when this option is changed.

  • Using a library with faceted navigation

    Hello,
    I have been tasked to implement cross site publishing using a document library on the authoring site.  The publishing site must be able to use faceted navigation derived from columns from the authoring site.  Eventually, the publishing site will
    be used as an extranet partner site and must be able to be cloned for more partners.
    Has anyone done this type of thing?  I am not able to get the faceted navigation to work and I have followed the following blog to guide me through this.  The blog is meant for a list, but I have been trying to adapt it to work with a library.
    blogs.technet.com/b/tothesharepoint/archive/2013/02/14/how-to-set-up-a-product-centric-web-site-in-sharepoint-2013.aspx
    Thank you.

    I haven't been able to use my custom library columns for faceted navigation.  I am able to see the docs on the publishing site and use the "built in" fields for fac. nav. such as Author, modified, and doc type.

  • Using iPhoto Library with Windows XP

    Hello folks,
    I have searched many forums far and wide, but have yet to encounter anyone suffering from my particular problem. I have found many out there who want to use iPhoto on their PC, but they are all offered solutions that don't really work for me. I would really appreciate any and all suggestions.
    Here's the history:  roughly 6 months ago, my MacBook Pro died (after a truly noble effort) and I rescued the hard disk by transferring it to an external enclosure. Since then I have connected it to my fiancee's windows laptop using freeware to read and interpret the HFS+ format.
    And now the problem: I spent months cataloging my photos using iPhoto and I would really like to access these photos again in all their glory, complete with tags, location data, etc. Is there any way I can open the iPhoto library in Windows XP and play around with the photos in a similar way to iPhoto?
    Thanks for taking the time to read, and I hope, reply to my post.
    Al

    You can't.  The iPhoto library is designed to be used with iPhoto only and, as you know, iPhoto only works on a Mac. 
    You'll need to get a new Mac if you want to access the library in full again.
    OT

  • Re-Linking Library with moved music folder

    I'm having trouble re-linking my library when I moved my mp3's to my shared folder. I know I can do it manuly one by one but I have over 5,000 files. Does any one know an easy way to re-link these files so I retain my playcounts and ratings?

    Hello again guys, any luck? I'm about ready to give up, I can't believe there isn't anything that can be done about this. It seems like 1 out of 3 questions on this site come down to getting rid of the , I just can't believe there isn't a way to fix this.
    I'm not sure if you guys caught the following msg I posted on Friday. I had several people recommend running this script, but everytime I try to run it I only get coding errors. Maybe this makes sense to you.
    Hi folks,
    I'm new to the group and posted a question in a couple of open threads without realizing it's encouraged to start a new thread. I've searched and searched and searched the archives in an attempt to find a solution, but it appears I have a common problem that doesn't have an easy solution.
    I transfered my music from notebook to external HD and la la la la ...... I now have ! ! ! in front of all my files. I'm a bit anal when it comes to playcounts, ratings, etc and I don't want to lose all that info. Of the solutions I've so far discovered, using Otto's updating script http://ottodestruct.com/itunes/update.txt appears to be the best solution.
    Below is the script and subsequent error I receive.
    var iTunesApp = WScript.CreateObject("iTunes.Application");
    var tracks = iTunesApp.LibraryPlaylist.Tracks;
    var numTracks = tracks.Count;
    var i;
    for (i = 1; i <= numTracks; i++)
    var currTrack = tracks.Item(i);
    currTrack.UpdateInfoFromFile();
    the variable between brackets {} are both indented once (couldn't get to do in text)
    Line: 8
    Char: 1
    Error: object doesn't support this property or method.
    I know little to none about scripting and programming in general. Has anyone else used this script (or knows how to script!) and could help troubleshoot the problem? I posted yesterday on Otto's page as well, but I'm not sure when he will find my particular comment.
    Your help would be greatly appreciated,
    Lacey

  • Using iTunes Library with a read-only account...

    Hi! I use my HD connected to my AEBS and to create some accounts in which people can use information on the shared folder that is created when the account preference is chosen. I later copied my iTunes library in the same folder so that everybody had access to it. Most of the users I created have restricted access (meaning read-only access). The ones that have full acces had no problem but the ones that have read-only access, when they try to choose the iTunes library, recieve a message saying "The folder "iTunes" is in a locked disk or you do not have write permissions for this folder.". I clearly understand what the problem is and why it is not letting those users acces it but does anybody has an idea on how I can make the iTunes library accessible to the "read-only users"? Thanks!

    Hi! I use my HD connected to my AEBS and to create
    some accounts in which people can use information on
    the shared folder that is created when the account
    preference is chosen. I later copied my iTunes
    library in the same folder so that everybody had
    access to it. Most of the users I created have
    restricted access (meaning read-only access). The
    ones that have full acces had no problem but the ones
    that have read-only access, when they try to choose
    the iTunes library, recieve a message saying "The
    folder "iTunes" is in a locked disk or you do not
    have write permissions for this folder.". I clearly
    understand what the problem is and why it is not
    letting those users acces it but does anybody has an
    idea on how I can make the iTunes library accessible
    to the "read-only users"? Thanks!
    iTunes was NOT built for multi-user "write" access. Allowing write access to more than one user of iTunes "concurrently" is a recipe for disaster: sooner or later your iTunes database will get corrupted. You have been warned.

  • User created SQL Agent Job that uses linked server with Windows authentication

    OK, here's what I want to do, but not sure exactly what I need to accomplish it.
    Environment
    Windows 2008 Enterprise
    SQL 2012 Enterprise
    SQL Server & SQL Agent running under AD account (which has local Windows Administrative privileges...yes, I know..bad!)
    Linked server to Teradata utilizing AD account mappings (the linked server works successfully and each windows login is mapped to a Teradata LDAP login)
    Requirement
    Allow non sysadmins to create SQL Agent jobs which execute TSQL statements which use OPENQUERY(LDAPLinkedServer, '....) syntax
    I've already given the non sysadmins the necessary permissions to create and run SQL Agent jobs, and I understand that the jobs run under their login context, but I suspect that I'm missing something when it comes to the linked server.
    Each windows user could have access to different databases/tables on the Teradata system that even I (the SQL Server sysadmin) don't have access to.
    How can I facilitate this functionality?  Any ideas?

    I think I may have been over complicating the Teradata piece.  The authentication methodology in Teradata is LDAP, which just means that it authenticates against AD, but you still have to submit your Windows login & password.  It doesn't automatically
    authenticate you just because you're logged into Windows.  
    The linked server has the mapping for the individual windows logins like:
    Local Login = <domain>.<windows id>
    Remote User = <windows id>
    Remote Password = <windows password>
    This setup requires the user to have to change the passwords in the linked server whenever they change their passwords according to domain policy (every xx days)...but we've created a utility proc that they can use to do this.
    So, I'm thinking that Teradata isn't really part of this equation.

  • How to use old library with new computer?

    Hello,
    I keep all my music on an external HD. Recently, my main computer died, so I had to start using another iMac. It's running Tiger and iTunes 6, but I have never used the iTunes before. How do I get this computer to "see" my old iTunes library (on the external)?

    You are welcome. One thing that comes to mind is that I believe when you use an external drive to hold your library, it is important that the external is on and mounted when ever you start up iTunes. My understanding is if you start iTunes and the external drive is not available, then iTunes reverts back to the default location on your internal. You then have to reset it back to the external, but I think you also have to re-add everything all over again.
    So be sure you always have the external up and ready whenever you open iTunes.
    Patrick

Maybe you are looking for