<font size=2 face="sans-serif">Just put the implementation of the template
class in the declaration. Get that to work, then try to get fancy if you
want to.</font>
<br><font size=2 face="sans-serif">---------------------------------------------------------<br>
Aaron Wright</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"eial@cs.bgu.ac.il"
<eial@cs.bgu.ac.il></b> </font>
<br><font size=1 face="sans-serif">Sent by: cmake-bounces@cmake.org</font>
<p><font size=1 face="sans-serif">12/29/2009 08:54 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Eric Noulard <eric.noulard@gmail.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">cmake@cmake.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [CMake] getting undefined error
to my own libs.</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>ok, I've read the links, let say I'm not use the export
option, when I look at the how to avoid link errors here: </font></tt><a href="http://www.parashift.com/c++-faq-lite/templates.html#faq-35.13"><tt><font size=2>http://www.parashift.com/c++-faq-lite/templates.html#faq-35.13</font></tt></a><tt><font size=2>
I see that what I've did is the same, isn't it? <br>
I'm not sure where to follow from here... if I've did what they say and
I still get a undefined error, then I must have miss configured cmake.<br>
when I add extern to the deceleration in the header, I get this error:
storage class specified for `Array`<br>
<br>
On Tue 29 Dec 17:16 2009 Eric Noulard wrote:<br>
> 2009/12/29 eial@cs.bgu.ac.il <eial@cs.bgu.ac.il>:<br>
> > hello Eric, thanks for the response.<br>
> > I'd like to solve the Array issue first, then the boost because
I have a feeling it is a different one because when I disable the relevant
code it doesn't generates the error even when other parts of the program
(such as the threadpool).<br>
> > here are the array files content: </font></tt><a href=http://codepad.org/klDWMowB><tt><font size=2>http://codepad.org/klDWMowB</font></tt></a><tt><font size=2><br>
> <br>
> I assume the content of the .hpp is between #ifndef CARRAY_HPP<br>
> then the code is the .cpp file.<br>
> <br>
> The trouble comes from the fact that your class is a template one,<br>
> so that the content of the .cpp file may not be compiled independently<br>
> "as-is" because it must be instantiated first.<br>
> <br>
> I invite you to read this:<br>
> </font></tt><a href="http://www.parashift.com/c++-faq-lite/templates.html#faq-35.12"><tt><font size=2>http://www.parashift.com/c++-faq-lite/templates.html#faq-35.12</font></tt></a><tt><font size=2><br>
> and may be this one too:<br>
> </font></tt><a href=http://corfield.org/index.cfm/event/cplusplus.section/section/ptexp><tt><font size=2>http://corfield.org/index.cfm/event/cplusplus.section/section/ptexp</font></tt></a><tt><font size=2><br>
> <br>
> Note that the "export keyword" solution may not be a good
one<br>
> because many compilers do not implement it, beginning with gcc:<br>
> </font></tt><a href=http://gcc.gnu.org/bugs/#nonbugs_cxx><tt><font size=2>http://gcc.gnu.org/bugs/#nonbugs_cxx</font></tt></a><tt><font size=2><br>
> <br>
> > beside a strange typo that I've done, I don't thing I've miss
configured it somehow.<br>
> <br>
> I think may be you did not played a lot with templated classes.<br>
> (just a guess I may be wrong).<br>
> <br>
> Concerning this issue, I'm pretty sure this is not a CMake one.<br>
> <br>
> -- <br>
> Erk<br>
> Membre de l'April - « promouvoir et défendre le logiciel libre » -<br>
> </font></tt><a href=http://www.april.org/><tt><font size=2>http://www.april.org</font></tt></a><tt><font size=2><br>
> <br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Powered by </font></tt><a href=www.kitware.com><tt><font size=2>www.kitware.com</font></tt></a><tt><font size=2><br>
<br>
Visit other Kitware open-source projects at </font></tt><a href=http://www.kitware.com/opensource/opensource.html><tt><font size=2>http://www.kitware.com/opensource/opensource.html</font></tt></a><tt><font size=2><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: </font></tt><a href=http://www.cmake.org/Wiki/CMake_FAQ><tt><font size=2>http://www.cmake.org/Wiki/CMake_FAQ</font></tt></a><tt><font size=2><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</font></tt><a href=http://www.cmake.org/mailman/listinfo/cmake><tt><font size=2>http://www.cmake.org/mailman/listinfo/cmake</font></tt></a>
<br>