Compiling C/C++ code using Alchemy

Hi all,
I wish to compile the c/c++ code using Alchemy without converting the c code as given in the Alchemy API. Is there any way to compile the normal c/c++ code using Alchemy without any conversion?
Is it possible to do something like this?
Lib.h
#ifndef _LIB_H
#define _LIB_H
#include <stdio.h>
void function( const char * );
#endif
Stringecho.cc
#include <stdlib.h>
#include <stdio.h>
#include "lib.h" – STATEMENT WHERE I INCLUDE C HEADER FILE
//Header file for AS3 interop APIs
//this is linked in by the compiler (when using flaccon)
#include "AS3.h"
//Method exposed to ActionScript
//Takes a String and echos it
static AS3_Val echo(void* self, AS3_Val args)
      //initialize string to null
      char* val = NULL;
      function("foo"); - IS IT POSSIBLE TO CALL LIKE THIS???
      //parse the arguments. Expect 1.
      //pass in val to hold the first argument, which
      //should be a string
      AS3_ArrayValue( args, "StrType", &val );
      //if no argument is specified
      if(val == NULL)
            char* nullString = "null";
            //return the string "null"
            return AS3_String(nullString);
      //otherwise, return the string that was passed in
      return AS3_String(val);
Thanks in advance for your help
Message was edited by: KARTHIK_RAJENDRAN

If I understand you correctly, you're asking if you can call native C-functions (in other libraries) from your AS3-Calls.
Short answer is yes. If you take a look into the libraries provided here (http://labs.adobe.com/wiki/index.php/Alchemy:Libraries) you'll see, that they're doing exactly that.
The whole thing wouldn't be much use, if you couldn't.
Of course you have to compile all the libraries you include with the alchemy compiler, which sometimes works, and sometimes not. Most of the times it does, though.

Similar Messages

  • Can I use gcc to compile sample driver code?

    Hi:
    I am trying to compile the sample driver code using gcc.
    I got lots of error messages while parsing header files under the sys/ directory.
    Have I missed something?
    Or does it mean that I have to use the cc compiler from Sun?
    By the way, need I any tools other than the compiler if I want to develope Solaris driver?
    Any replies would be appreciated.
    B.Regards
    Steven

    Thanks for your help.
    I just found out this might be due to the conflicts between different OSs.
    Becuase I usually work under the MicroSoft Windows enviroment, so I first downloaded and unzipped the sample code in Windows.
    (I might have opened the file using Visual Studio, too.)
    Then I copied the files to the Solaris environment and compiled them there.
    In that case, lots of errors are found by the make utility and gcc.
    But if I do all the jobs under Solaris, everying is going well.
    Now I find myself in trouble becuase I have used Visual Studio to edit my own driver source file.
    Could anyone please tell me how to transform my source code so that it can be compiled under Solaris?

  • Cannot dynamically load dylib library using Alchemy?

    hello,
    I'm on Mac osx Leopard , i have build a dylib from C code who
    basically invert a string ("hello" becomes "olleh")
    I want to compile and create with Alchemy a .swc file who
    call my dylib file.
    Finally i want to import my .swc file in flex builder and
    being able to use my invert function who is in my dylib library
    Is it technally possible ?
    Thanks everyone for your help.

    Every line of C/C++ code you want to use in Alchemy must be
    compiled using Alchemy. You cannot link in naively compiled code.
    So if you have the source for each library, you can compile them
    using the alchemy toolset and then link those static libs into a
    swc with a glugen or raw alchemy interface.

  • [b]Tutorial:[/b] Simplify Developing OLE Automation Code Using VBA

    INTRODUCTION
    Automating Office applications from Oracle Forms can be a tedious, frustrating, and time-consuming process. Because the OLE2 and CLIENT_OLE2 built-ins do not validate the automation commands that they relay, code that compiles without errors often dies at runtime with a not-so-helpful error code. This tutorial will demonstrate how to simplify the development of automation code using a tool that ships with all Microsoft Office editions -- the Visual Basic for Applications (VBA) IDE.
    The VBA IDE, a core Office component, is a full-fledged development environment featuring code completion, basic syntax highlighting, context-driven help and a runtime debugger. Its Object Browser provides a convenient means of browsing the Word object model, as well as searching by keyword.
    For those who may not interested in following this tutorial in detail, I would like to stress the usefulness of the Object Browser as a tool for inspecting the functions supported by OLE server applications and, perhaps more importantly, valid values for function arguments. Whether/not anyone buys the assertion that starting with VBA prototypes is far more productive than pounding out OLE2 code from the very start, they will find the Object Browser invaluable as a reference -- I rely on it exclusively for this sort of documentation.
    A BRIEF INTRODUCTION TO THE VBA IDE & THE OBJECT BROWSER UTILITY
    Try this:
    1. Open Word
    2. Launch the VBA IDE by pressing <Alt><F11>
    3. Open the Object Browser by pressing <F2>
    The Object Browser allows you to visually navigate Word's class hierarchy. Its user interface is a bit crowded, so controls are unlabeled. Hovering the mouse cursor above a control will display a tooltip explaining that control's purpose. The browser's scope can be narrowed by using the Project/Library combo. Typing a keyword or substring in the Search Text combo and clicking on the Search button will cause all classes/members whose name contains the specified search text to be listed in the Search Results pane. Selecting an item from this list will update the two panes below it, showing the selected class, and its members. Beneath the Classes and Members panes is an untitled pane, gray in color, which displays details for the selected class/member, including hyperlinks to relevant information such as arguments, their types and allowable values. If Visual Basic Help is installed, pressing <F1> will display help on a selected class/member. (This feature can be installed from your Office install CD, if necessary.)
    NOTE: While it is possible to cut-and-paste the code examples that follow, I highly recommend that they be typed in by hand. Doing so will provide a better understanding of how the IDE's code completion behaves. Use code completion most efficiently by not using the mouse or <Enter> key when selecting from completion lists. Instead, just type enough letters to select the desired list element, then continue along as if you had typed the entire element, typing the next operator in your statement. It really is slick!
    HELLO WORLD - VBA-STYLE
    1. Open Word
    2. Launch the VBA IDE by pressing <Alt><F11>
    3. Select Module from the Insert menu.
    4. In the blank area that appears, enter the following code:
      Public Sub HelloWorld()
          Documents.Add
          Selection.TypeText ("Hello, world!")
      End Sub5. Press <F5> to run the code.
    If you switch back to Word by pressing <Alt><F11>, there should appear a newly-created document containing the text Hello, world!.
    A MORE AMBITIOUS EXAMPLE
    In this example, we will launch Word, type some text, and alter its formatting. For the purposes of this tutorial, consider it the process we wish to automate from within Forms.
    1. If Word is running, close it.
    2. Open any Office application except Word, such as Excel, Outlook or PowerPoint
    3. Launch the VBA IDE by pressing <Alt><F11>.
    4. Select References from the Tools menu -- a dialog should pop up.
    5. From within this dialog, locate and select Microsoft Word <version> Object Library, then click OK.
    6. Select Module from the Insert menu.
    7. In the blank area that appears, enter the following code:
    Public Sub LaunchWord()
        Dim app As Word.Application
        Set app = CreateObject("Word.Application")
        app.Visible = True                          '!!! IMPORTANT !!!
        app.Documents.Add
        With app.Selection
            .TypeText "This is paragraph 1."
            .TypeParagraph
            .TypeText "This is paragraph 2."
            .TypeParagraph
            .TypeText "This is paragraph 3."
        End With
        With ActiveDocument
            .Paragraphs(1).Range.Words(3).Bold = True
            .Paragraphs(2).Range.Words(3).Italic = True
            .Paragraphs(3).Range.Words(3).Underline = True
        End With
    End Sub8. Press <F5> to run the code.
    A new Word session should have been launched. Switch to it, to view the results of our handiwork!
    TAILORING VBA CODE INTENDED FOR OLE2 CONVERSION
    Now, things get a bit uglier. The code listed above gives a good idea of how concise VBA code can be, but With blocks and chained object references do not translate readily into OLE2 code. Here's the same process, rewritten in a more OLE2-friendly style. Note the numerous intermediate object references that have been declared.
    Public Sub LaunchWord()
        Dim app As Word.Application
        Dim doc As Word.Document
        Dim docs As Word.Documents
        Dim pars As Word.Paragraphs
        Dim par As Word.Paragraph
        Dim wrds As Word.Words
        Dim sel As Word.Selection
        Dim rng As Word.Range
        Set app = CreateObject("Word.Application")
        app.Visible = True                          '!!! IMPORTANT !!!
        Set doc = app.Documents.Add
        Set sel = app.Selection
        sel.TypeText "This is paragraph 1."
        sel.TypeParagraph
        sel.TypeText "This is paragraph 2."
        sel.TypeParagraph
        sel.TypeText "This is paragraph 3."
        Set pars = doc.Paragraphs
        'select third word of first paragraph and make it bold
        Set par = pars.Item(1)
        Set rng = par.Range
        Set wrds = rng.Words
        Set rng = wrds.Item(3)
        rng.Bold = True
        'select third word of second paragraph and italicize it
        Set par = pars.Item(2)
        Set rng = par.Range
        Set wrds = rng.Words
        Set rng = wrds.Item(3)
        rng.Italic = True
        'select third word of second paragraph and underline it
        Set par = pars.Item(3)
        Set rng = par.Range
        Set wrds = rng.Words
        Set rng = wrds.Item(3)
        rng.Underline = True
    End Sub
    TRANSFORMATION: CONVERTING VBA CODE INTO PL/SQL
    Here is the PL/SQL counterpart to our previous VBA routine. Compare printouts of the two and note their similarities. Notice the need for argument lists -- this causes the code to fluff up quite a bit, and really interferes with readability.
    PROCEDURE LAUNCH_WORD IS
      v_app OLE2.OBJ_TYPE;     -- Application
      v_doc OLE2.OBJ_TYPE;     -- Document
      v_docs OLE2.OBJ_TYPE;    -- Documents collection
      v_pars OLE2.OBJ_TYPE;    -- Paragraphs collection
      v_par OLE2.OBJ_TYPE;     -- Paragraph
      v_wrds OLE2.OBJ_TYPE;    -- Words collection
      v_sel OLE2.OBJ_TYPE;     -- Selection
      v_rng OLE2.OBJ_TYPE;     -- Range
      v_args OLE2.LIST_TYPE;   -- OLE2 argument list
    BEGIN
      /* launch Word and MAKE IT VISIBLE!!! */ 
        v_app := OLE2.CREATE_OBJ('Word.Application');
        OLE2.SET_PROPERTY(v_app, 'Visible', TRUE);
      /* initialize key object references */ 
        v_docs := OLE2.GET_OBJ_PROPERTY(v_app, 'Documents');
        v_doc := OLE2.INVOKE_OBJ(v_docs, 'Add');
        v_sel := OLE2.GET_OBJ_PROPERTY(v_app, 'Selection');
      /* type first paragraph */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 'This is paragraph 1.');
        OLE2.INVOKE(v_sel, 'TypeText', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        OLE2.INVOKE(v_sel, 'TypeParagraph');
      /* type second paragraph */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 'This is paragraph 2.');
        OLE2.INVOKE(v_sel, 'TypeText', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        OLE2.INVOKE(v_sel, 'TypeParagraph');
      /* type third paragraph */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 'This is paragraph 3.');
        OLE2.INVOKE(v_sel, 'TypeText', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
      /* set reference to Paragraphs collection */
        v_pars := OLE2.GET_OBJ_PROPERTY(v_doc, 'Paragraphs');
      /* select third word of first paragraph and make it bold */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 1);
        v_par := OLE2.INVOKE_OBJ(v_pars, 'Item', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        v_rng := OLE2.GET_OBJ_PROPERTY(v_par, 'Range');
        v_wrds := OLE2.GET_OBJ_PROPERTY(v_rng, 'Words');
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 3);
        v_rng := OLE2.INVOKE_OBJ(v_wrds, 'Item', v_args);
        OLE2.SET_PROPERTY(v_rng, 'Bold', TRUE);
      /* select third word of second paragraph and italicize it */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 2);
        v_par := OLE2.INVOKE_OBJ(v_pars, 'Item', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        v_rng := OLE2.GET_OBJ_PROPERTY(v_par, 'Range');
        v_wrds := OLE2.GET_OBJ_PROPERTY(v_rng, 'Words');
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 3);
        v_rng := OLE2.INVOKE_OBJ(v_wrds, 'Item', v_args);
        OLE2.SET_PROPERTY(v_rng, 'Italic', TRUE);
      /* select third word of second paragraph and underline it */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 3);
        v_par := OLE2.INVOKE_OBJ(v_pars, 'Item', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        v_rng := OLE2.GET_OBJ_PROPERTY(v_par, 'Range');
        v_wrds := OLE2.GET_OBJ_PROPERTY(v_rng, 'Words');
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 3);
        v_rng := OLE2.INVOKE_OBJ(v_wrds, 'Item', v_args);
        OLE2.SET_PROPERTY(v_rng, 'Underline', TRUE);
    END;
    REFACTORING FOR REUSABILITY AND READABILITY
    While the previous procedure runs without errors, it suffers from poor readability which, in turn, makes it difficult to maintain. Here, we address those issues by moving repetetive low-level operations into separate procedures.
      PROCEDURE LAUNCH_WORD IS
        v_app OLE2.OBJ_TYPE;    -- Application
        v_doc OLE2.OBJ_TYPE;    -- Document
        v_docs OLE2.OBJ_TYPE;   -- Documents collection
        v_sel OLE2.OBJ_TYPE;    -- Selection
        v_args OLE2.LIST_TYPE;  -- OLE2 argument list
      BEGIN
        /* launch Word and MAKE IT VISIBLE!!! */ 
          v_app := OLE2.CREATE_OBJ('Word.Application');
          OLE2.SET_PROPERTY(v_app, 'Visible', TRUE);
        /* create a new Word document */ 
          v_docs := OLE2.GET_OBJ_PROPERTY(v_app, 'Documents');
          v_doc := OLE2.INVOKE_OBJ(v_docs, 'Add');
          v_sel := OLE2.GET_OBJ_PROPERTY(v_app, 'Selection');
        /* add a few paragraphs */
          PRINT_PARAGRAPH(v_sel, 'This is paragraph 1.');
          PRINT_PARAGRAPH(v_sel, 'This is paragraph 2.');
          PRINT_PARAGRAPH(v_sel, 'This is paragraph 3.');
        /* apply formatting */
          APPLY_FORMATTING(v_doc, 1, 3, 'Bold', TRUE);
          APPLY_FORMATTING(v_doc, 2, 3, 'Italic', TRUE);
          APPLY_FORMATTING(v_doc, 3, 3, 'Underline', TRUE);
      END;
      PROCEDURE APPLY_FORMATTING(
        v_doc OLE2.OBJ_TYPE,
        v_paragraph_num NUMBER,
        v_word_num NUMBER,
        v_attribute VARCHAR2,
        v_value BOOLEAN) IS
        v_pars OLE2.OBJ_TYPE;   -- Paragraphs collection
        v_par OLE2.OBJ_TYPE;    -- Paragraph
        v_wrds OLE2.OBJ_TYPE;   -- Words collection
        v_rng OLE2.OBJ_TYPE;    -- Range
        v_args OLE2.LIST_TYPE;  -- OLE2 argument list
      BEGIN
        /* set reference to Paragraphs collection */
          v_pars := OLE2.GET_OBJ_PROPERTY(v_doc, 'Paragraphs');
        /* get specified paragraph */   
          v_args := OLE2.CREATE_ARGLIST;
          OLE2.ADD_ARG(v_args, v_paragraph_num);
          v_par := OLE2.INVOKE_OBJ(v_pars, 'Item', v_args);
          OLE2.DESTROY_ARGLIST(v_args);
        /* get words for specified paragraph */
          v_rng := OLE2.GET_OBJ_PROPERTY(v_par, 'Range');
          v_wrds := OLE2.GET_OBJ_PROPERTY(v_rng, 'Words');
        /* apply formatting to word found at specified index */
          v_args := OLE2.CREATE_ARGLIST;
          OLE2.ADD_ARG(v_args, v_word_num);
          v_rng := OLE2.INVOKE_OBJ(v_wrds, 'Item', v_args);
          OLE2.SET_PROPERTY(v_rng, v_attribute, v_value);
      END;
      PROCEDURE PRINT_PARAGRAPH(v_sel OLE2.OBJ_TYPE, v_text VARCHAR2) IS
        v_args OLE2.LIST_TYPE;
      BEGIN
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, v_text);
        OLE2.INVOKE(v_sel, 'TypeText', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        OLE2.INVOKE(v_sel, 'TypeParagraph');
      END;
    CONCLUSION
    It is my hope that this tutorial, despite it's introductory nature, has demonstrated the value of the VBA IDE, the ease with which automation processes can be prototyped using VBA, the noticeable similarity between VBA automation routines and their Forms PL/SQL counterparts, and the advantages of testing automation processes within the VBA IDE. Please feel free to follow up with any specific questions or concerns you may have.
    Thanks,
    Eric Adamson
    Lansing, Michigan
    FINAL NOTE: These examples use the OLE2 built-in, and will operate correctly when called from forms running in the Form Builder OC4J. Deploying them to an Oracle Application Server will launch Word on the server itself (if available), which is usually not the developer's intent! Automating Word client-side via web forms requires adding WebUtil support. Adapting the code for WebUtil is trivial -- just replace all instances of OLE2 with CLIENT_OLE2. Adapting forms for WebUtil and configuring OLE support into your Oracle Application Server, however, are beyond the scope of this tutorial.
    REVISION HISTORY
    This promises to be something of a 'living document'. I've snuck changes through without comment in the past, but in the future, I'll try to document significant changes here.
    2006-08-21
      * Prefaced boring subject line with text: 'Tutorial:' to clarify purpose
      * Added emphasis on value of Object Browser as a reference

    Thanks James, for your kind words. I do hope this information will help folks out. I honestly believe that tinkering around in the VBA IDE will prove highly gratifying for automation developers. It can be assured that learning to make Word jump through hoops is much more straight-forward in this environment. I'm not one for mottos, but if I were pressed for a cheesy motto, I would say: First, make it work. Then, make it work in Oracle!
    Once the idea has sunk in, that Visual Basic routines for automating Word are exact analogs to their OLE2 counterparts, we can remove keywords like Oracle and PL/SQL from our Google searches on Word automation which, at least in this context, are the proverbial kiss of death. Suddenly we find ourselves liberated by the possibility of steal-, ahem... borrowing ideas from the Visual Basic* community!
    As for links, my link of choice is invariably http://groups.google.com -- if you don't already use it at least ten times a day, you must try it. This is the venerable USENET archive, including the holdings of now-extinct DejaNews. Another possible site of interest is http://word.mvps.org/FAQs/MacrosVBA, which may serve as a good starting point for those who wish to learn how to do fancy tricks with Word using VBA.
    If these links don't prove immediately helpful, please feel free to give specifics on the sort of operations you are interested in automating, and I'll see if I can post an example that addresses it.
    Regards,
    Eric Adamson
    Lansing, Michigan
    PS: I do hope, as people read my posts, with every other acronym being VBA, that they are not mistakenly hearing a call to learn Visual Basic. I say this, not because I believe learning VB would be a Bad Thing, but because I assume that few of us feel we have the time to learn a new programming language. Despite having come to the Oracle camp already knowing VB/VBA, and having acquired a fair bit of experience with automating Office applications as an Access developer, I remain confident that what I am suggesting people attempt does not rise to the level of learning a language. What I am suggesting is that they learn enough of the language to get by.
    *VB vs. VBA
    Just a quick word on this, as readers may wonder why I seem to use these terms interchangeably. Visual Basic (VB) can refer to either a development platform or a programming language. Visual Basic for Applications (VBA) is a language -- more precisely, it is a subset of the Visual Basic language. One purchases VB, usually quite intentionally. VBA is included with Microsoft Office, as is VBA's development environment, the VBA IDE. The key distinction between VB and VBA is that VBA cannot be used to create self-contained executables. Rather, VBA relies on VBA-enabled applications, such as Microsoft Office applications, to serve as a container for VBA code, and to provide a runtime environment for that code. For the purposes of discussing OLE Automation, VB and VBA are quite interchangeable.

  • Error in linking C++ STL code  using CC 5.0 on Solaris 2.6

    Hi All,
    When building a shared dynamic library from C/C++ code using
    STL features, I get an a link error, referring to the STL objects in
    use.
    I use CC WorkShop C++ Compiler 5.0 running on Solaris 2.6.
    For example:
    using a vector<int> we get :
    Undefined Symbol
    __1cDstdGvector4Cin0AJallocator4Ci___M__insert_aux6Mpirki_v_
    In File aaa.o
    using a multimap<int,int> we get :
    Undefined Symbol
    __1cH__rwstdJ__rb_tree4CinDstdEpair4CkiCi__n0AL__select1st4n0C_Ci__n0BEless4Ci__n0BJallocator4n0C____U__deallocate_buffers6M_v_
    In File aaa.o
    etc.
    Switching (for testing) from shared lib to an exe does not seem
    to solve this issue.
    Same goes for toggling libCstd & libCrun's link mode (dyn/stat).
    Any suggestions would be appreciated!
    Thank you,
    Gilad

    Hi Gilad,
    I have a suggestion concerning the std::vector::__insert_aux error:
    http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5069680
    Some recommended link options are provided in:
    http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5104725
    Hope this is useful.
    Bye.

  • Error while compiling pro*c code in oracle 11gR2 on AIX6.1 (64bit)..

    Hi ,
    We are migrating from oracle 10gR2 on AIX 5.3 to oracle 11gR2 on AIX 6.1 (64bit Kernal) . As pat of this , we need to migrate all the pro*c codes and for that we are trying to complie those files on the new server . But while compiling , we are getting error as :
    *1586-119 (U) The 32-bit file "/lib/crt0_64.o" is being linked in 64-bit mode, or vice versa.*
    We have only one library in $ORACLE_HOME which is lib..Lib32 is not present .
    Could you please help me in resolving this error ?
    The details , that I feel will be helpful ,is provided below :
    COMP_PROC ]>echo $ORACLE_HOME
    */data/oracle/product/11.2.0.2*
    */COMP_PROC ]>echo $LD_LIBRARY_PATH*
    */data/oracle/product/11.2.0.2/lib*
    COMP_PROC ]>echo $LIBPATH
    */data/oracle/product/11.2.0.2/lib*
    COMP_PROC ]>echo $PATH
    */data/oracle/product/11.2.0.2:/data/oracle/product/11.2.0.2/bin:/applications/tf3/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/bin:.::/dbjobs/utils/adsm:.:/applications/tf3/bin:/applications/tf3/bin/ctm/source:/usr/vac/bin:/applications/tf3/bin:/usr/lib:/tshome/tfapp:/tshome/tfapp/app/genio::/tshome/tfapp/app/genio/odbc:/tshome/tfapp/app/genio/odbc/lib:/data/oracle/product/11.2.0.2/lib:/data/oracle/product/11.2.0.2/bin:/tshome/tf01/:/usr/bin:/etc:/usr/sbin:/usr/ucb:/tshome/tfapp/bin:/usr/bin/X11:/sbin*
    Compiler version :
    COMP_PROC ]>cc -v
    exec: /usr/bin/pg(/usr/bin/pg,/usr/vac/exe/default_msg/vac.help,NULL)
    C for AIX Compiler, Version 6
    os version :
    COMP_PROC ]>uname -a
    AIX 1 6 00F6249E4C00
    Make file :
    # File : makeheader.h #
    # Description : #
    # The target 'build' puts together an executable $(EXE) from the .o files
    # in $(OBJS) and the libraries in $(PROLDLIBS). It is used to build the
    # c sample programs. The rules to make .o files from .c and .pc files are
    # later in this file.
    # ($(PROLDLIBS) includes the client shared library, and $(STATICPROLDLIBS) does
    # not.)
    # Here are some rules for converting .pc -> .c -> .o and for .typ -> .h.
    # If proc needs to find .h files, it should find the same .h files that the
    # c compiler finds. We use a macro named INCLUDE to hadle that. The general
    # format of the INCLUDE macro is
    # INCLUDE= $(I_SYM)dir1 $(I_SYM)dir2 ...
    # Normally, I_SYM=-I, for the c compiler. However, we have a special target,
    # pc1, which calls $(PROC) with various arguments, include $(INCLUDE). It
    # is used like this:
    # $(MAKE) -f $(MAKEFILE) <more args to make> I_SYM=include= pc1
    # This is used for some of $(SAMPLES) and for $(OBJECT_SAMPLE).
    USERID=xxxxx/yyyyy@zzzzzzz
    SHELL=/bin/ksh
    MQMLIBS=/usr/lpp/mqm/lib/libmqm.a
    MQMCLIENTLIBS=/usr/lpp/mqm/lib/libmqic.a
    #MQMLIBS=/pvcs/compile/proc/libmqm.a
    CONVLIBS=/usr/lib/libiconv.a
    NETWORKHOME=$(ORACLE_HOME)/network/
    PLSQLHOME=$(ORACLE_HOME)/plsql/
    #INCLUDE=$(I_SYM). $(I_SYM)$(PRECOMPHOME)public $(I_SYM)$(RDBMSHOME)public $(I_SYM)$(RDBMSHOME)demo $(I_SYM)$(PLSQLHOME)public $(I_SYM)$(NETWORKHOME)public
    I_SYM=-I
    AS_EXT=s
    LIB_EXT=a
    OBJ_EXT=o
    PLB_EXT=plb
    SO_EXT=so
    LOCK_EXT=lk
    SQL_EXT=sql
    SYM_EXT=sym
    LIB_PREFIX=lib
    LDLIBFLAG=-l
    LDPATHFLAG=-L
    AS=as
    AWK=awk
    CAT=cat
    CC=/usr/vac/bin/cc
    CD=cd
    CHMOD=chmod
    CP=cp
    CPP=cpp
    DATE=date
    ECHO=echo
    ECHON=echo -n
    EXEC=exec
    FIND=find
    FOLLOW=-follow
    NOLEAF=-noleaf
    GREP=grep
    KILL=kill
    SLEEP=sleep
    LD=ld
    LMAKE=make
    LN=ln
    LNS=ln -s
    MKDIR=mkdir
    MKDIRP=mkdir -p
    MV=mv
    NM=nm
    PERL=perl
    RM=rm
    RMF=rm -f
    RMRF=rm -rf
    SED=sed
    SORT=sort
    TOUCH=touch
    XARGS=xargs
    LS=ls
    SPFLAGS=
    MATHLIB=-lm
    LOCALLIBS=
    OPTIMIZE=-O5
    OTHERLIBS = `cat $(ORACLE_HOME)/lib/sysliblist`
    CCFLAGS= -g
    SO=a
    LLIBTHREAD=-lpthreads
    EXOSLIBS=
    LIBBSD=
    SECLIBS=
    M6LIBS=
    LIBHOME=$(ORACLE_HOME)/lib
    VER =11
    BASENAME =n
    NETWORKHOME = $(ORACLE_HOME)/network/
    NETWORKLIB = $(NETWORKHOME)lib/
    RONAME=${BASENAME}ro${VER}
    PFLAGS=
    PFLAGS= $(INCLUDE) $(SPFLAGS) $(LPFLAGS)
    RDBMS_VERSION = 11
    LIBSERVERNAME=server$(RDBMS_VERSION)
    LIBSERVER=$(LIBHOME)$(LIB_PREFIX)$(LIBSERVERNAME).$(LIB_EXT)
    LLIBSERVER=$(LDLIBFLAG)$(LIBSERVERNAME)$(LIB_SUFFIX)
    LIBCLIENTNAME=client$(RDBMS_VERSION)
    LIBCLIENT=$(LIBHOME)$(LIB_PREFIX)$(LIBCLIENTNAME).$(LIB_EXT)
    LLIBCLIENT=$(LDLIBFLAG)$(LIBCLIENTNAME)
    LIBGENERICNAME=generic$(RDBMS_VERSION)
    LIBGENERIC=$(LIBHOME)$(LIB_PREFIX)$(LIBGENERICNAME).$(LIB_EXT)
    LLIBGENERIC=$(LDLIBFLAG)$(LIBGENERICNAME)
    LIBDSBTSHNAME=dsbtsh$(RDBMS_VERSION)
    LIBDSBTSH=$(RDBMSLIB)$(LIB_PREFIX)$(LIBDSBTSHNAME).$(SO_EXT)
    LIBSKGXPNAME=skgxp$(RDBMS_VERSION)
    LIBSKGXP=$(LIBHOME)$(LIB_PREFIX)$(LIBSKGXPNAME).$(SKGXP_EXT)
    LLIBSKGXP=$(LDLIBFLAG)$(LIBSKGXPNAME)
    LIBCOMMONNAME=common$(RDBMS_VERSION)
    LIBCOMMON=$(LIBHOME)$(LIB_PREFIX)$(LIBCOMMONNAME).$(LIB_EXT)
    LLIBCOMMON=$(LDLIBFLAG)$(LIBCOMMONNAME)
    LIBVSNNAME=vsn$(RDBMS_VERSION)
    LIBVSN=$(LIBHOME)$(LIB_PREFIX)$(LIBVSNNAME).$(LIB_EXT)
    LLIBVSN=$(LDLIBFLAG)$(LIBVSNNAME)
    LIBAGENTNAME=agent$(RDBMS_VERSION)
    LIBAGENT=$(LIBHOME)$(LIB_PREFIX)$(LIBAGENTNAME).$(LIB_EXT)
    LLIBAGENT=$(LDLIBFLAG)$(LIBAGENTNAME)
    LIBDBTOOLSNAME=dbtools$(RDBMS_VERSION)
    LIBDBTOOLS=$(RDBMSLIB)$(LIB_PREFIX)$(LIBDBTOOLSNAME).$(LIB_EXT)
    #DEF_ON= $(RDBMSLIB)kpudfo.$(OBJ_EXT)
    #DEF_OFF= $(RDBMSLIB)kpundf.$(OBJ_EXT)
    #DEF_OPT= $(RDBMSLIB)defopt.$(OBJ_EXT)
    LIBSLAXNAME=slax8
    LIBSLAX=$(LIBHOME)$(LIB_PREFIX)$(LIBSLAXNAME).$(LIB_EXT)
    LLIBSLAX=$(LDLIBFLAG)$(LIBSLAXNAME)
    LIBSQLNAME=sql11
    LIBSQL=$(LIBHOME)/$(LIB_PREFIX)$(LIBSQLNAME).$(LIB_EXT)
    LLIBSQL=$(LDLIBFLAG)$(LIBSQLNAME)
    #SCOREPT = $(LIBHOME)/scorept.$(OBJ_EXT)
    #SSCOREED = $(LIBHOME)/sscoreed.$(OBJ_EXT)
    LIBORA=$(LIBCLIENT) $(LIBCOMMON) $(LIBGENERIC)
    LLIBORA=$(LLIBCLIENT) $(LLIBCOMMON) $(LLIBGENERIC)
    LIBSQLNET = $(LDFLAGSLIST) $(ANOLIBD) $(PROTOCOLLIBD) $(NATIVELIBD) $(NATIVESYSLIBD) $(LIBNETWORK) $(LIBNL)
    LLIBSQLNET = $(LDFLAGSLIST) $(ANOLIBS) $(PROTOCOLLIBS) $(NATIVELIBS) $(NATIVESYSLIBS) $(LLIBNETWORK) $(LLIBNL)
    LIBRPC = $(LIBHOME)$(LIB_PREFIX)$(RONAME).$(LIB_EXT)
    LLIBRPC = $(LDLIBFLAG)$(RONAME)
    NETLIBS = $(LLIBSQLNET) $(LLIBRPC) $(LLIBSQLNET)
    NETLIBD = $(LIBSQLNET) $(LIBRPC)
    LDFLAGSFILE=$(NETWORKLIB)ldflags
    LDFLAGSLIST=`$(CAT) $(LDFLAGSFILE)`
    LDFLAGSLIST=
    LIBNLSRTLNAME = nls11
    LIBNLSRTL= $(LIBHOME)$(LIB_PREFIX)$(LIBNLSRTLNAME).$(LIB_EXT)
    LLIBNLSRTL= $(LDLIBFLAG)$(LIBNLSRTLNAME)$(LIB_SUFFIX)
    CORE_LIB_VER = 11
    CORE_LIB_NAME = core
    LIBCORE = $(LIBHOME)$(LIB_PREFIX)$(CORE_LIB_NAME)$(CORE_LIB_VER).$(LIB_EXT)
    LLIBCORE = $(LDLIBFLAG)$(CORE_LIB_NAME)$(CORE_LIB_VER)
    RDBMSHOME=$(ORACLE_HOME)/rdbms/
    RDBMSLIB=$(RDBMSHOME)lib/
    RDBMSADMIN=$(RDBMSHOME)admin/
    LIBCLNTSHNAME=clntsh
    LIBCLNTSH=$(LIBHOME)$(LIB_PREFIX)$(LIBCLNTSHNAME).$(SO_EXT)
    LLIBCLNTSH=$(LDLIBFLAG)$(LIBCLNTSHNAME)
    LIBAGTSHNAME=agtsh
    LIBAGTSH=$(LIBHOME)$(LIB_PREFIX)$(LIBAGTSHNAME).$(SO_EXT)
    LLIBAGTSH=$(LDLIBFLAG)$(LIBAGTSHNAME)
    LIBKNLOPTNAME=knlopt
    LIBKNLOPT=$(RDBMSLIB)$(LIB_PREFIX)$(LIBKNLOPTNAME).$(LIB_EXT)
    LLIBKNLOPT=$(LDLIBFLAG)$(LIBKNLOPTNAME)
    #LIBTRACENAME=trace9
    #LIBTRACE=$(LIBHOME)$(LIB_PREFIX)$(LIBTRACENAME).$(LIB_EXT)
    #LLIBTRACE=$(LDLIBFLAG)$(LIBTRACENAME)$(LIB_SUFFIX)
    #LIBEPC=$(LIBHOME)$(LIB_PREFIX)$(LIBTRACENAME).$(LIB_EXT)
    #LLIBEPC=$(LDLIBFLAG)$(LIBTRACENAME)$(LIB_SUFFIX)
    CORELIBS = $(LLIBNLSRTL) $(LLIBCV6) $(LLIBCORE) $(LLIBNLSRTL) $(LLIBCORE) \
    $(LLIBNLSRTL)
    OTHERLIBS=`cat $(ORACLE_HOME)/lib/sysliblist`
    DEVTTLIBS=$(NETLIBS) $(LLIBORA) $(NETLIBS) $(LLIBORA) $(LIBPLSHACK) \
    $(LLIBEPC) $(CORELIBS) $(SPLIBS) $(LOCALLIBS) $(EXOSLIBS) $(LIBBSD) `cat $(ORACLE_HOME)/lib/sysliblist` $(MATHLIB)
    CC=/usr/vac/bin/cc
    PCC=proc
    PROC=proc CODE=ANSI_C define=_64BIT_ define=_IBM_C define=_LONG_LONG sqlcheck=full userid=$(USERID) oraca=yes mode=oracle unsafe_null=yes dbms=v8
    PCCINCLUDE=include=$(ORACLE_HOME)/precomp/lib
    PCCFLAGS=$(PCCINCLUDE) sqlcheck=full ltype=none parse=full userid=$(USERID) lines=yes unsafe_null=yes dbms=v8
    CFLAGS= $(GFLAG) -qmaxmem=8192 $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS) $(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS) -L$(LIBHOME)
    ECHO=
    STATICPROLDLIBS=$(LLIBCLIENT) $(LIBSQL) $(SCOREPT) $(SSCOREED) $(DEF_ON) $(DEVTTLIBS) $(LLIBTHREAD)
    PROLDLIBS=$(LLIBCLNTSH) $(STATICPROLDLIBS)
    Tail of make.log :
    [applications/tf3/bin/COMP_PROC ]>echo $ORACLE_HOME
    /data/oracle/product/11.2.0.2
    [applications/tf3/bin/COMP_PROC ]>cd $ORACLE_HOME
    [data/oracle/product/11.2.0.2 ]>cd install
    [data/oracle/product/11.2.0.2/install ]>tail -15 make.log
    mv: cannot rename /data/oracle/product/11.2.0.2/bin/nmo to /data/oracle/product/11.2.0.2/bin/nmo0:
    No such file or directory
    mv /data/oracle/product/11.2.0.2/sysman/lib/nmo /data/oracle/product/11.2.0.2/bin/
    make: The error code from the last command is 1.
    make: Ignored error code 1 from last command.
    /bin/make -f /data/oracle/product/11.2.0.2/sysman/lib/ins_emagent.mk relink_exe EXENAME=nmhs
    ld -b64 -o /data/oracle/product/11.2.0.2/sysman/lib/nmhs -L/data/oracle/product/11.2.0.2/lib/ -L/data/oracle/product/11.2.0.2/sysman/lib/ -lld -lm `cat /data/oracle/product/11.2.0.2/lib/sysliblist` -lm /data/oracle/product/11.2.0.2/sysman/lib/s0nmhs.o -lnmhs -lcore11 -lld -lm `cat /data/oracle/product/11.2.0.2/lib/sysliblist` -lm
    rm -f /data/oracle/product/11.2.0.2/bin/nmhs.0
    cp /data/oracle/product/11.2.0.2/sysman/lib/nmhs /data/oracle/product/11.2.0.2/bin/nmhs.0
    mv -f /data/oracle/product/11.2.0.2/bin/nmhs /data/oracle/product/11.2.0.2/bin/nmhs0
    mv: cannot rename /data/oracle/product/11.2.0.2/bin/nmhs to /data/oracle/product/11.2.0.2/bin/nmhs0:
    No such file or directory
    make: The error code from the last command is 1.
    make: Ignored error code 1 from last command.
    mv /data/oracle/product/11.2.0.2/sysman/lib/nmhs /data/oracle/product/11.2.0.2/bin/
    Edited by: Minu on Dec 3, 2011 12:36 AM

    Apparently you are trying to mix 32-bit code and 64-bit code. You must ensure that the 32-bit or 64-bit option is used consistently on every command, compiling and linking. The form of the option can depend on the version of the C compiler you are using, and whether you are on an x86 or sparc system. Consult the Pro*C and C compiler documentation.

  • How do I create a file using Alchemy?

    I have C++ code that uses the following method to create a file: open(filename, access, perms)  to create a file, just a standard C++ method from <fcntl.h> library. It works perfect in C++, it creates the file, however, if I compile it into a swc file and use it in my Flex project, it does not create the file. Is there any way I can use that method, compile that C++ code into swc and use it in Flex project and still be able to create a file?

    Hi Jim,
    That's right.Your understanding on my question is right.
    I know to write a file, we need record,file and sql object to work.
    record creates and instantiates the rowset for that record.
    sql fetches all fields using the by passing the record parameter and %selectall(:1) where bind variable is record name.
    File object helps to create ,open write and close the file.
    I wanted to know How could implement/integrate the rowset feature to filter and extract the data specifcally.Since I am new to App engine.I checked out people books where they have mentioned the syntax but not the integration.
    Regular code that i am trying with the above objects is like this below:
    Local File &MyFile;
    Local Record &rec1;
    Local SQL &SQL1;
    /*Create Instance of Record */
    &rec1 = CreateRecord(record.tc_help_me_tbl);
    &MyFile = GetFile“c:\temp\help_me.txt”, , “A” %FilePath_Absolute);
    &MyFile.setFileLayout(FileLayout.help_me);
    /*Create SQL object to populate rowset */
    &SQL1=CreateSQL(“%selectall(:1)”,&rec1);
    While &SQL1.Fetch(&rec1)
    &MyFile.WriteRecord(&rec1);
    End-While;
    &MyFile.Close();
    provide me the rowset code by integrating in between them(fill it with one field)
    Thanks and Regards

  • Please explian what is native compilation and how to use it

    hi all.
    please explian what is native compilation and how to use it
    regards

    It's explained well in the PL/SQL User's Guide and Reference
    Compiling PL/SQL Code for Native Execution
    http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/12_tune.htm#48419

  • Assembler in C-code for Alchemy

    Hello all!
    I aspire to reach high performance my left unfinished 3D-renderer for Flash-player. Soon enough I have understood that my ActionScript-code is doomed. Then I have started to learn Alchemy. And thanks to the help Bernd Paradies could transfer any data in the C-code and take away the ready image in the form of ByteArray. And it was essential faster. The same calculations occupying 10-15 seconds, now were measured by milliseconds.
    Wishing to move ahead further, I want to add still productivity in my code.
    I saw some topics about assembler and Alchemy.
    Also I understand what to use "x86-asm-code" in Alchemy it is impossible.
    But I want to ask. I can use "FlashPlayer-llvm-asm-code" in my C-code and in what type?
    Especially I am interested in operations of data transfer and floating point operations between registers (without using variables in memory) interest.

    Hello svolatch123,
    in this forum you'll find some posts about optimizations involving inline assembly code, i.e.:
         optimizing abc-code
         http://forums.adobe.com/thread/686022
         inline functions in C, gcc optimization and floating point arithmetic issues
         http://forums.adobe.com/thread/660099
    But in general I would avoid optimizations at the inline assembler level. Instead I would use profile your app and use the results to zoom in on specific areas that your optimizations will benefit from. You may have already done that and identified floating point calculations as one of those areas. If floating point calculations are your problem then you might be able to get better performance by using integer math internally (if that's possible). This technique is used by programs like Donald Knuth's TeX. The idea is that you do your math in integer units of floats (i.e. 1.234cm = 1 unit, 2 * 3 = 6 units = 6 * 1.234cm = 7.404cm).
    Another performance hog that will probably show up in your profiling results will probably point you to the fact that crossing the border between AS3 and C world (calling from AS3 code into Alchemy-C code and vice versa) is very expensive. You'll get good performance improvements by reducing calls that cross that boundary.
    If there is a piece of code in particular that you need to optimize I would post it here in this forum.
    I am sure you'll find help here.
    Best wishes,
    - Bernd

  • SWFTools using Alchemy

    Hi all,
    i'm trying to compile SWFTools (www.swftools.org) using Alchemy. The dependency's (jpeglib, zlib) compiled just like a charm, just the main project won't
    These errors accure:
    <!-- compile errors -->
    llvm-g++: GFXOutputDev.obj: linker input file unused because linking not done
    llvm-g++: InfoOutputDev.obj: linker input file unused because linking not done
    llvm-g++: BitmapOutputDev.obj: linker input file unused because linking not done
    llvm-g++: FullBitmapOutputDev.obj: linker input file unused because linking not done
    llvm-g++: pdf.obj: linker input file unused because linking not done
    llvm-g++: fonts.obj: linker input file unused because linking not done
    llvm-g++: xpdf/GHash.obj: linker input file unused because linking not done
    llvm-g++: xpdf/GList.obj: linker input file unused because linking not done
    llvm-g++: xpdf/GString.obj: linker input file unused because linking not done
    llvm-g++: xpdf/gmem.obj: linker input file unused because linking not done
    llvm-g++: xpdf/gfile.obj: linker input file unused because linking not done
    llvm-g++: xpdf/FoFiTrueType.obj: linker input file unused because linking not done
    llvm-g++: xpdf/FoFiType1.obj: linker input file unused because linking not done
    llvm-g++: xpdf/FoFiType1C.obj: linker input file unused because linking not done
    llvm-g++: xpdf/FoFiBase.obj: linker input file unused because linking not done
    llvm-g++: xpdf/FoFiEncodings.obj: linker input file unused because linking not done
    llvm-g++: xpdf/OutputDev.obj: linker input file unused because linking not done
    llvm-g++: xpdf/PDFDoc.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Error.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Stream.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Object.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Decrypt.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Array.obj: linker input file unused because linking not done
    llvm-g++: xpdf/XRef.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Dict.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Parser.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Lexer.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Outline.obj: linker input file unused because linking not done
    llvm-g++: xpdf/PDFDocEncoding.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Catalog.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Link.obj: linker input file unused because linking not done
    llvm-g++: xpdf/GlobalParams.obj: linker input file unused because linking not done
    llvm-g++: xpdf/JBIG2Stream.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Page.obj: linker input file unused because linking not done
    llvm-g++: xpdf/JPXStream.obj: linker input file unused because linking not done
    llvm-g++: xpdf/JArithmeticDecoder.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Gfx.obj: linker input file unused because linking not done
    llvm-g++: xpdf/GfxFont.obj: linker input file unused because linking not done
    llvm-g++: xpdf/CMap.obj: linker input file unused because linking not done
    llvm-g++: xpdf/CharCodeToUnicode.obj: linker input file unused because linking not done
    llvm-g++: xpdf/PSTokenizer.obj: linker input file unused because linking not done
    llvm-g++: xpdf/FontEncodingTables.obj: linker input file unused because linking not done
    llvm-g++: xpdf/BuiltinFont.obj: linker input file unused because linking not done
    llvm-g++: xpdf/BuiltinFontTables.obj: linker input file unused because linking not done
    llvm-g++: xpdf/GfxState.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Function.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Annot.obj: linker input file unused because linking not done
    llvm-g++: xpdf/NameToCharCode.obj: linker input file unused because linking not done
    llvm-g++: xpdf/UnicodeMap.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SecurityHandler.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashOutputDev.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashFont.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashState.obj: linker input file unused because linking not done
    llvm-g++: xpdf/Splash.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashBitmap.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashClip.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashPattern.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashFontEngine.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashFontFile.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashFontFileID.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashScreen.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashPath.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashXPath.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashXPathScanner.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashFTFontEngine.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashFTFontFile.obj: linker input file unused because linking not done
    llvm-g++: xpdf/SplashFTFont.obj: linker input file unused because linking not done
    llvm-g++: ../libgfxswf.lib: linker input file unused because linking not done
    llvm-g++: ../libgfx.lib: linker input file unused because linking not done
    llvm-g++: ../librfxswf.lib: linker input file unused because linking not done
    llvm-g++: ../libbase.lib: linker input file unused because linking not done
    WARNING: While resolving call to function 'main' arguments were dropped!
    WARNING: While resolving call to function 'stub_null' arguments were dropped!
    WARNING: While resolving call to function 'stub_zero' arguments were dropped!
    WARNING: While resolving call to function 'stub_zero' arguments were dropped!
    WARNING: While resolving call to function 'stub_zero' arguments were dropped!
    WARNING: While resolving call to function 'stub_zero' arguments were dropped!
    WARNING: While resolving call to function 'stub_zero' arguments were dropped!
    Cannot yet select: 0x18b2c80: ch,flag = AVM2ISD::CALL - A call instruction 0x18b2c20, 0x18affb0
    0   llc                                 0x00636dfe _ZNSt8_Rb_treeIN4llvm3sys4PathES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE13insert_uniqueERK S2_ + 6078
    1   llc                                 0x006373a2 _ZNSt8_Rb_treeIN4llvm3sys4PathES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE13insert_uniqueERK S2_ + 7522
    2   libSystem.B.dylib                   0x97bbcb9b _sigtramp + 43
    3   ???                                 0xffffffff 0x0 + 4294967295
    4   libSystem.B.dylib                   0x97c4ab99 raise + 26
    5   libSystem.B.dylib                   0x97c60c50 abort + 93
    6   llc                                 0x002f4fe0 _ZN98_GLOBAL__N__Volumes_data_dev_FlaCC_llvm_2.1_lib_Target_AVM2_AVM2ISelDAGToDAG.cpp_000 00000_F04616B616AVM2DAGToDAGISel6Emit_7ERKN4llvm9SDOperandEj + 0
    7   llc                                 0x002f8e1b _ZN98_GLOBAL__N__Volumes_data_dev_FlaCC_llvm_2.1_lib_Target_AVM2_AVM2ISelDAGToDAG.cpp_000 00000_F04616B616AVM2DAGToDAGISel10SelectCodeEN4llvm9SDOperandE + 2219
    8   llc                                 0x002fa193 _ZN98_GLOBAL__N__Volumes_data_dev_FlaCC_llvm_2.1_lib_Target_AVM2_AVM2ISelDAGToDAG.cpp_000 00000_F04616B616AVM2DAGToDAGISel10SelectRootEN4llvm9SDOperandE + 819
    9   llc                                 0x002e6a2c _ZN4llvm19X86_64TargetMachineD0Ev + 65116
    10  llc                                 0x003de4ca _ZN4llvm11StoreSDNodeD1Ev + 1610
    11  llc                                 0x0040d3fe _ZN4llvm11StoreSDNodeD1Ev + 193918
    12  llc                                 0x0040f92e _ZN4llvm11StoreSDNodeD1Ev + 203438
    13  llc                                 0x005d1926 _ZN4llvm12FunctionPassD1Ev + 20998
    14  llc                                 0x005d1f3a _ZN4llvm12FunctionPassD1Ev + 22554
    15  llc                                 0x005d20c5 _ZN4llvm12FunctionPassD1Ev + 22949
    16  llc                                 0x00002e44 0x0 + 11844
    17  llc                                 0x00001f36 0x0 + 7990
    make[1]: *** [pdf2swf.exe] Error 6
    make: *** [all] Error 2
    Any suggestions how to fix these errors?
    Thanks in advance,
    Florian Diesner

    No i did not

  • How to compile the source code?

    Hello,
    I have got the source code and want to custom my nosql db.
    how can I compile the source code?
    thank you!

    You will have to apply some workarounds to achieve your goal, but they are not too bad.
    One problem is that the sources for the Admin Console web application are missing from the distribution. You can build a kvstore.jar that lacks the web application but is functional in every other way. If you need to have the web application in your build, we can discuss that separately.
    You will need to download the hadoop core jar file from http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-core/0.20.2/hadoop-core-0.20.2.jar .
    Place it in the lib directory of the distribution.
    I've appended to this message a context-style diff to show the changes that are needed in build.xml. You can apply these changes by hand, or use a diff-applying program such as "patch". The diff is small -- only three lines are changed.
    With these changes in place, issue the command "ant jar", which should produce the file dist/lib/kvstore.jar. This jar file has dependencies such that it will not work correctly unless it resides in the same directory as the other jars in the distribution. Therefore you should move dist/lib/kvstore.jar to lib/kvstore.jar before you try to run with it.
    This is certainly harder than it needs to be. We'll consider making this easier to do in a future release.
    Let me know how it goes!
    *** build.xml.~1~     2011-12-14 15:11:06.000000000 -0500
    --- build.xml     2012-04-19 09:44:19.649000428 -0400
    *** 282,292 ****
        <!-- ============================================================ -->
        <target name="compile" depends="compile-src,
    !                       compile-webapp,
                            compile-examples,
                            compile-test"/>
    !   <target name="compile-src" depends="dep-dirs, update-external-libraries">
          <javac
             srcdir="${srcdir}"
             destdir="${destdir}"
    --- 282,292 ----
        <!-- ============================================================ -->
        <target name="compile" depends="compile-src,
                            compile-examples,
                            compile-test"/>
    !   <target name="compile-src" depends="dep-dirs">
          <javac
             srcdir="${srcdir}"
             destdir="${destdir}"
    *** 402,408 ****
          </java>
        </target>
    !   <target name="jar" depends="compile-src, compile-webapp-gwtc, je-version, kvclientjar">
          <delete failonerror="false" file="${jarfile}" />
          <jar jarfile="${jarfile}">
           <fileset refid="jarclasses"/>
    --- 402,408 ----
          </java>
        </target>
    !   <target name="jar" depends="compile-src, je-version, kvclientjar">
          <delete failonerror="false" file="${jarfile}" />
          <jar jarfile="${jarfile}">
           <fileset refid="jarclasses"/>Edited by: Guy Hillyer, Oracle on Apr 19, 2012 9:57 AM

  • Compile Error in code: Incorrect function specified for inlining

    I used two custom function in vertex kernel code. pb3dutil command line compile ok but when compiled in as3 code, it throws this error. what's the possible reason for this?

    That sounds like a bug in our code - if pb3dutil lets it through it should weld and translate just fine later. Can you post the example that's failing so we can look into it?
    Thanks
    Bob

  • Compiling Generated Flex code in Background

    Hi, All
    i am developing an AIR application, which allow users to Drag and Drop of Flex components, for that in background i am generating the flex code.
    now i want to compile the generated code, so that i can export that as swf. is there any way to do that ? or for compiling that i need to bundle flex sdk with my application. if so, do i need to have any kind of Licesence ?
    please let me know your views.
    is their any feature or command which can export the code to the swf ?
    Thank you all in advance for having your views.
    Thanks
    Regards
    Amar Deep Singh

    Hi,
    Try to use t-code MCM0 to delete the old versions.
    Good luck
    Tao

  • Fpga disabled code using space on a FPGA

    I have a endable/disable diagram for emulation a FIFO during emulation mode. see atached picture.
    Does the disabled code use space on an FPGA ( I have not enough space on my 3Mgate FPGA for my program)
    I ask this because in some other part of the labview code I had compiling error (in VHDL code) in disabbled laview code.
    So it looks like if the disabled code takes space on the FPGA, is this the case?
    Frank
    Attachments:
    FIFO emulation.GIF ‏10 KB

    The code in disable structure doesn't take space on the FPGA, I use it often and it works.
    But in your case, i guess you should disable the for loop too. Because you have an empty loop that have an auto-index activated, and since this part is not disabled, it takes space on your FPGA.
    Hope this helps,
    Xavier

  • Trying to compile a C#-program using NI-Vision

    Hello,
    i have zip-file from a colleague which contains a C#-program that uses NI-Vision 8.5.
    The project used to work and i have to make changes to the code but currently i am just trying to compile the old code.
    System: Windows XP
    Installed Software:
    - Microsoft Visual C#2008 Express Edition
    - Ni Vision Development Module 8.5
    - IC Capture 2.0 (SW from the Camera)
    - IC Imaging Control 3.0 (SW from the Camera)
    When trying to compile the project it says 30 errors with:
    "Type or Namespace "NationalInstruments" not found"
    When checking the Verweise (see screenshot) then there is one line marked:
    NationalInstruments.AxCWIMAQControlsLib.Interop
    So i think this is the only thing that is missing that i can compile the program.
    But how can i add it?
    When i check the available Verweise then there are a lot of NationInstruments-things but all with other names.
    What do i have to do?
    Thanks for all help
    Attachments:
    Eins.jpg ‏11 KB
    zwei.jpg ‏25 KB
    drei.jpg ‏45 KB

    Hi Aurelie,
    thank you for the tips.
    I am sure that it is nit DotNet 4 because it is compiled with C#2008 (which cannot use 4.0).
    The namespace NationInstrument is found but not the marked Reference.
    Meanwhile i deleted the missing reference and added another. Now i can compile without errors.
    The program is still not running but i think this is because the camera-driver is missing...
    But i still dont know how my collegue inserted this now missing reference.
    TM

Maybe you are looking for