<div dir="ltr"><br><br><div class="gmail_quote">On Sun, Apr 26, 2009 at 4:07 PM, Shachar Shemesh <span dir="ltr"><<a href="mailto:shachar@shemesh.biz">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 class="im">
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>i would not send my whole project as this is spamming (and other reasons too)<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" bgcolor="#ffffff" text="#000000"><div class="im"><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>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<br><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" bgcolor="#ffffff" text="#000000"><br><font color="#888888">
<br>
Shachar</font><div class="im"><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><br></div>