<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">$ clang++ -o test main.cpp template.cpp <br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote>/usr/bin/ld: /tmp/main-e2fa2c.o: in function `main':<br>
main.cpp:(.text+0x2f): undefined reference to `Template<int>::Template()'<br>
/usr/bin/ld: main.cpp:(.text+0x4d): undefined reference to <br>
`Template<int>::~Template()'<br>
/usr/bin/ld: main.cpp:(.text+0x82): undefined reference to <br>
`Template<int>::~Template()'<br></blockquote><div><br></div><div>What happens if you change the order of the .cpp files, putting template.cpp first; is it stil unresolved?<br><br></div><div>clang++ -o test template.cpp main.cpp<br><br> </div></div></div>