Menu

Loki::Printf

2007-07-13
2013-04-08
  • Nobody/Anonymous

    I order to use Loki::Printf, do I have to build the Loki?
    Or including the Loki/SafeFormat will do.

    Can anybody give me a sample.

    Thanks in advance.

     
    • Nobody/Anonymous

      You have to build Loki, but it's worth the small effort.  Youn can build static libraries only.  I use the Printf family all the time and love them.

      Word on the street is Loki will soon be part of standard Fedora--great news.

      A note about SPrintf which I don't believe is mentioned in docs:

        the string used as the format recipient must be cleared after every use if you are using it repeatedly (i.e., its default behavior is more like strcat than strcpy)

      Good luck.

      -Tom

       
    • Nobody/Anonymous

      Thanks Tom,

      Actually I wish ro build Solaris 10, using sun studio 11 compiler.
      I have downloaded the loki 0.1.6.

      But the Makefile seems not working.
      I am using the follwoing command...

      -bash-3.00$ make build-static
      make: Fatal error in reader: Makefile.common, line 2: Unexpected end of line seen

      Can you please sort out anything.

      saby

       

Log in to post a comment.