<div dir="ltr"><div><div><div>Hello,<br><br></div>Compiling Gem on OSX 10.9 is littered with these errors:<br><br>"error: addition of default argument on redeclaration makes this constructor a default constructor"<br>
<br></div>There is discussion about this here:<br><a href="http://stackoverflow.com/questions/18313509/default-argument-gcc-vs-clang">http://stackoverflow.com/questions/18313509/default-argument-gcc-vs-clang</a><br><br></div>
I understand what is happening but I do not know how to properly fix this. For example if in:<br><br><span class="" title="src/Controls/gemlist_info.cpp">
src/Controls/gemlist_info.cpp
-><br></span><div><div><pre class="">gemlist_info :: gemlist_info (t_floatarg<span class=""> arg0=0</span>) {<br><br><span class="" title="src/Controls/gemlist_info.h"><br>src/Controls/gemlist_info.h</span> -><br>
<br>gemlist_info (t_floatarg<span class=""></span>); // CON<br><br><br><br>I am able to compile without error if I do:<br><br><span class="" title="src/Controls/gemlist_info.cpp">src/Controls/gemlist_info.cpp -><br></span></pre>
<div><div><pre class="">gemlist_info :: gemlist_info (t_floatarg<span class=""></span>) {<br><br><span class="" title="src/Controls/gemlist_info.h"><br>src/Controls/gemlist_info.h</span> -><br>g<br>emlist_info (t_floatarg <span class="">arg0=0</span><span class=""></span>); // CON</pre>
</div></div><pre class=""><br><br></pre><pre class="">BUT in a more complicated example where there might be (t_floatarg<span class=""> arg0=0, </span>t_floatarg<span class=""> arg1=0, </span>t_floatarg<span class=""> arg2=0)</span></pre>
<div><div><div><div>How do I fix?<br><br></div><div>Basically more than half the src/opengl/*.cpp &*.h have this issue.<br><br></div><div>Any fix should be compatible with GCC.<br><br></div><div>I have cloned Gem from github repo and have created a new branch (osx_10.9_x64) to comit my efforts.<br>
<br>Thanks!<br>m<br></div><div>-- <br>____________________<br>m.e.grimm | m.f.a | ed.m.<br><a href="mailto:megrimm@gmail.com" target="_blank">megrimm@gmail.com</a><br>_________________________________
</div></div></div></div></div></div></div>