Solution for g++ 4.3+/ Lush 1.2

2010-07-28
2012-11-08
  • Scott Locklin
    Scott Locklin
    2010-07-28

    I had a problem using g++ 4.3 with some Lush/C++ libs on my new netbook. Maybe
    someone else will encounter the same problem, and find this solution helpful.
    When trying to compile my Lush stubs, I got lots of errors like "warning:
    depreciated conversion from string constant to 'char*'"
    Various function and class references in the generated C code are given as
    string constants; presumably, somewhere in the bowels of Lush include files,
    they're defined like char* instead of const char*

    You can work around with wrapping your C++ compilation with
    (let* ((dhc-make-lushflags (concat "-Wno-write-strings" dhc-make-
    lushflags)))
    (compile-stuff))

    Might be of use to somebody. Or you could just upgrade to 2.0.

    -Scott