<div dir="ltr"><br><br><div class="gmail_quote">On Sun, Apr 26, 2009 at 5:04 PM, Erez D <span dir="ltr"><<a href="mailto:erez0001@gmail.com">erez0001@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><br><br><div class="gmail_quote"><div class="im">On Sun, Apr 26, 2009 at 4:07 PM, Shachar Shemesh <span dir="ltr"><<a href="mailto:shachar@shemesh.biz" target="_blank">shachar@shemesh.biz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr" bgcolor="#ffffff" text="#000000"><div>
Erez D wrote:
<blockquote type="cite">
<div dir="ltr"><br>
<div class="gmail_quote">
<div><br>
you are right. i just wanted to give a small example instead of send my
whole project to be inspected.<br>
</div>
</div>
</div>
</blockquote></div>
Which I doubt anyone would.</div></blockquote></div><div>i would not send my whole project as this is spamming (and other reasons too)<br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr" bgcolor="#ffffff" text="#000000"><div><br>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div>however after fixing the syntax of this small example, i can't
seem to duplicate the problem that happened in the project.<br>
</div>
</div>
</div>
</blockquote></div>
A clear symptom that the problem is not what you think it is.<br>
<br>
Try using "-E" on gcc - it tells it to run the C preprocessor and stop.
Inspect the resulting file - it may reveal the problem.</div></blockquote></div><div>I should be so lucky ...<br>as i have no #defines whatsoever, the preprocessor output was exactly what i expected. <br><br>i found some voodoo though:<br>
> g++ -E -I . -c source/myclass.cpp > x.cpp<br>> g++ -c x.cpp<br>works fine,<br>however:<br>> g++ -I . -c source/myclass.cpp<br>returns a "redefinition of ..." error</div></div></div></blockquote>
<div><br>the "funny" is that it does compile on my other computer without any problems<br>so :<br>i get an error on jaunty - gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) <br>it compiles cleanly on intrepid - gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12) <br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><div class="gmail_quote"><div><br><br><br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr" bgcolor="#ffffff" text="#000000"><br><font color="#888888">
<br>
Shachar</font><div><br>
<br>
<pre cols="72">--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
<a href="http://www.lingnu.com" target="_blank">http://www.lingnu.com</a>
</pre>
</div></div>
</blockquote></div></div><br></div>
</blockquote></div><br></div>