I tried to compile version 2.0 with Z3 as described in the release message, but i am getting compiler errors. The new dependency "libz3-dev" is already installed in my Linux box.
Here is what i get:
z3 does not officially have version macros as far as I know.. but it might be possible to add something in Cppcheck. Then instead of using some magic "NEW_Z3" macro that could be changed later you could use "Z3_4_8" or something.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
my mistake.. it seems we have to include the file z3_version.h. you probably have that but I don't so I will get a compile error :-(.
we could have a default z3_version.h in externals but I would really prefer that it looks in system paths first.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think there should be minimum trouble when newer z3 is used. I have an old outdated z3 version and should accept some troubles.
If we #include z3_version.h in Cppcheck then if you have a newer z3 it will work much better. I will get a compile error but I can add my own z3_version.h manually in externals to solve that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Our plan right now is to release Cppcheck-2.0 on sunday.
The download links on http://cppcheck.net/ still lead to the binaries for version 1.90 instead of 2.0.
I tried to compile version 2.0 with Z3 as described in the release message, but i am getting compiler errors. The new dependency "libz3-dev" is already installed in my Linux box.
Here is what i get:
@ettlmartin please compile with
NEW_Z3
defined.make USE_Z3=yes CPPFLAGS="-DUSE_Z3 -DNEW_Z3" .....
I wish we could avoid that #ifdef in our code and make it more intelligent somehow.
Thanks! But this does not work, i am getting another compiler error:
I don't know.. the code is:
Does it work with the "old" code?
It seems they are actively changing the API :-(
Maybe we should somehow start using a specific z3 version.
z3 does not officially have version macros as far as I know.. but it might be possible to add something in Cppcheck. Then instead of using some magic "NEW_Z3" macro that could be changed later you could use "Z3_4_8" or something.
If you compile and run this program does it show some interesting info?
Thanks, Obviously the version cannot be detected properly:
According to apt (package information) there is libz3-dev (4.8.4-1build1) installed.
my mistake.. it seems we have to include the file z3_version.h. you probably have that but I don't so I will get a compile error :-(.
we could have a default z3_version.h in externals but I would really prefer that it looks in system paths first.
I think there should be minimum trouble when newer z3 is used. I have an old outdated z3 version and should accept some troubles.
If we #include z3_version.h in Cppcheck then if you have a newer z3 it will work much better. I will get a compile error but I can add my own z3_version.h manually in externals to solve that.
Thanks. After adding z3_version.h the version is detected properly:
Can you compile Cppcheck now?
After updating today
make USE_Z3=yes
works fine on my side. Thanks!