Solution for g++ 4.3+/ Lush 1.2

  • Scott Locklin
    Scott Locklin

    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-

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