Community articleRunning the FCI Sample Under C on AIX, Linux, and Solaris
Added by IBM contributorIBM on May 2, 2012
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

The FCI sample application for C uses the FCI methods to create a function called multiply that can be called from within XFDL forms. This function multiplies two values and returns the result.



The FCI sample application for C uses the FCI methods to create a function called multiply that can be called from within XFDL forms. This function multiplies two values and returns the result.
To set up and run the FCI sample under C:
  1. Switch to the directory:
  2.    <API Installation Folder>/samples/<UNIX OS>/fci/demo/multiply/

  3. Create the makefile by typing xmkmf at the command prompt and press Enter.
  4. At the command prompt, type make and press Enter. This will build the application file and the extension file (fciExtension.ifx).
  5. Move the file fciExtension.ifx to the /usr/lib/PureEdge/80/extensions/ directory.
  6. To run the sample application, type ./sampleap and press Enter. The following line will appear:
  7.    Multiplying 24 by 13 gives 312.000000

    • This indicates that the application executed successfully and multiplied the two numbers using the multiply function.