<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">ankit jain</b> <span dir="ltr"><<a href="mailto:ankitguddu@gmail.com">ankitguddu@gmail.com</a>></span><br>
Date: 2009/5/15<br>Subject: Re: [CMake] unable to include a source file for all sub directories<br>To: Hendrik Sattler <<a href="mailto:post@hendrik-sattler.de">post@hendrik-sattler.de</a>><br><br><br><br><br><div class="gmail_quote">
<div class="im">2009/5/15 Hendrik Sattler <span dir="ltr"><<a href="mailto:post@hendrik-sattler.de" target="_blank">post@hendrik-sattler.de</a>></span><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>Zitat von ankit jain <<a href="mailto:ankitguddu@gmail.com" target="_blank">ankitguddu@gmail.com</a>>:<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;">
If suppose 5 files are there in one folder and each file uses some<div><br>
functions form other file in the same folder and when ur creating library<br>
then there is no problem..<br>
<br>
Issue is if one folder file uses another file which is in diff. folder or in<br>
its parent folder then creating library creates problem and giving error as<br>
unresolved symbols. since iam building through cmake and i used the already<br>
said method of how iam adding sources for the libraries form the sub folders<br>
i think my way of including files is somewhat wrong or iam missing somethign<br>
duet o which those files are not able to take the support that file...<br>
</div></blockquote>
<br>
The file positions do not matter to the compiler if they are all sources to the same library.<br>
<br>
1.<br>
Is the list of files correct? Check with a message() in your CMakeLists.txt.<br>
</div></blockquote><div><br>Yes <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;"><br>
2.<br>
Are all files compile into object? Check the _verbose_ output.<br>
</blockquote></div><div><br>Yes <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;"><br>
3.<br>
Is that a compiler error or a linker error?<br><font color="#888888">
</font></blockquote></div><div><br>Linker error for many objects files that have created <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888"><br>
HS<br>
<br>
<br>
</font></blockquote></div><br>
</div><br>