So. When I had the swig compile error I googled around and found this:
http://swig.10945.n7.nabble.com/very-weird-macro-problem-leads-to-Empty-character-constant-error-td6661.html
And when i also changed the a, b, c... parameters to c1, c2, c3.. The problem solved for me as well