Menu

compiling errors

Help
OmniMancer
2008-06-01
2013-04-11
  • OmniMancer

    OmniMancer - 2008-06-01

    i don't know if this is my fault or what
    but why would the compiler have a bunch of errors about the report functions and invalid conversion from int to int* (*) ()?
    any help would be nice thankyou

     
    • Toby

      Toby - 2008-06-06

      Hi!
      I had the same errors. What helped for me was renaming some used names.

      While I believe only one #define collision existed, I will tell you all I've renamed:

      1) all occurrences of "errno" into something more inconspicuous ( "errnr" did it for me).
         errno exists as a function, so the variablename is actually read as a function pointer, that's why we see * (*)() in there..

      while i think this should do it, i've left my other renames in:

      2) "on_error"  into "onError"
      3) "report"  into "report2"

      i don't think the 2. and 3. renames are necessary.. I will probably change "report2" back to "report", but with these changes it compiles for me.

      Good luck!

       
      • OmniMancer

        OmniMancer - 2008-06-06

        thanks it compiles fine
        is this meant to be compiled to a static library and then linked into other code?

         
    • PrzemekG_

      PrzemekG_ - 2008-07-22

      When I initialy wrote XMLSP, I wanted it to be embedded in my projects, just like the one file version of sqlite.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.