Minimal Example

From PLL Documentation
Revision as of 15:46, 6 September 2013 by Xflouris (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
#include <stdio.h>
#include <pll/pll.h>
 
int main (int argc, char * argv[])
{
  pllInstance * inst;
  pllInstanceAttr attr;
  pllAlignmentData * alignmentData;
 
  /* set PLL instance attributes */
  attr.rateHetModel = PLL_GAMMA;
  attr.fastScaling  = PLL_FALSE;
  attr.saveMemory   = PLL_FALSE;
  attr.useRecom     = PLL_FALSE;
  attr.randomNumber = 0x12345;
 
  inst = pllCreateInstance (&attr);      /* Create the PLL instance */
 
 
  pllDestroyInstance (inst);             /* Destroy the PLL instance */
}

To compile the library run

gcc example.c -lpll-SSE3 -lm -o example