7 Segment Library problem

try this library I wrote recently:
http://laurent.le.goff.free.fr/blog/IMG/zip/sevenseg.zip

thanks for the configurations but your library mayby only works for 4xsevensegment displays like that from sparkfun
i make my own boards of seven segment.
i managed to finally compile the library.
but when i enter any command in it,it gives error

sketch_oct02a.cpp: In function 'void setup()':
sketch_oct02a:3: error: expected unqualified-id before '.' token
sketch_oct02a:4: error: expected unqualified-id before '.' token

here is the code which i ran

#include <sevensegment.h>
void setup()
{
  sevensegment.pinn(2,3,4,5,6,7,8,9);
  sevensegment.type(1);
}
void loop()
{
}