I have pretty much the same issue as , but since I've defined all my methods, the solution there doesn't apply here.  I have a Node.h with:  template&lt;typename T&gt; class Node{     public:         Node(T data, Node* next); }   In Node.cpp, I was sure to put:  #include "Node.h"  template&lt;typename T&gt; Node&lt;T&gt;::Node(T data, Node* next){     //I doubt that the implementation is relevant. }   In both files, I #include "stdafx.h" to cater to visual studios.  Yet, when I try to instantiate a node with:  #include "stdafx.h" #include "Node.h"  int main(){     Node&lt;int&gt; n = Node&lt;int&gt;(9, nullptr);     return 0; }   I get:  main.obj : error LNK2019: unresolved external symbol "public: __thiscall Node&lt;int&gt;::Node&lt;int&gt;(int,class Node&lt;int&gt; *)" (??0?$Node@H@@QAE@HPAV0@@Z) referenced in function _main   Just to debunk a few initial theories:   I have put all the files in the same VC++ project. There are no methods declared in the header that are not defined (VC++ has ensured this). I instantiate the node in main.cpp, hence the uses of main.obj in the error.   Is there another issue that I don't see (maybe a Node.h crawling the standard library or some VC++ thing I'm missing). Comparing this to older code I have that does work, the only difference I can find is that the old code doesn't use generics. Are the generics the culprit?  Why won't these files link up correctly? How to avoid this in the future?
Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)
Using modulo operation to draw graph Why are date-based hats awarded too early? I just got the  hat which states "post or vote on December 21".  Does SE have a time machine now? How to explicitly discard an out argument? dist$(x,A)=0$ if and only if $x\in \overline{A}$ (closure of $A$) Evaluating the supremum of a function as n tends to infinity Problem: Let $g:[0,1]\to\mathbb{R}$ be a continuos function such that $g(1)=0$. Show that $\sup\limits_{x\in[0,1]}|x^ng(x)|\to0$ as $n\to\infty$.  My approach: Let $f(x)=x^ng(x)$. Then, $f(x)$ is continuos on $[0,1]$. Using the extreme value theorem we can say, that $|f(x)|$ is bounded on $[0,1]$ and attains its bounds, i.e., $\exists x_0\in[0,1]$ such that $|f(x_0)|=\sup\limits_{x\in[0,1]}|f(x)|$.  Now, $|f(x_0)|=|x_0^ng(x_0)|$. If $x_0=0$, then we are done. So, let us assume $x_0\neq0$. By the Archimedean property of $\mathbb{R}$, $\exists$ a $y\in\mathbb{R}$ such that $y=x_0^n\leq1$, since $x_0\in[0,1]$.   Hence, $\lim\limits_{n\to\infty}\sup\limits_{x\in[0,1]}|x^ng(x)|=\lim\limits_{n\to\infty}\sup\limits_{x\in[0,1]}|f(x)|=\lim\limits_{n\to\infty}|f(x_0)|=\lim\limits_{n\to\infty}|yg(y^{\frac{1}{n}})|\leq\lim\limits_{n\to\infty}|g(y^{\frac{1}{n}})|=g(1)=0.$  I will be glad if anyone can tell me if I have done any mistake and if so please help me to correct it.  Thank you. I am designing gamecards in LaTeX  Everything is going pretty ok so far but when i try to insert the %-sign for a question about percentages my file keeps giving errors.  I tried putting the percentage between dollarsigns because i know just % will make it a 'remark' and that the dollarsign makes it 'mathematical data'.   Whats the reason for the error?   P.s. the error says: file ended while scanning use of \kaart. ...    Codesample:   {\kaart{Bekijk statistiek kaart F:   Schat het percentage mensen dat als lievelingseten spaghetti opgaven, je mag er slechts $ 2% $ langs zitten. } { $ 11% $}} How do I pre-install Ubuntu for someone (OEM install)? I would like to pre-install Ubuntu on a computer for someone. I may want to customize it for them, but in the end they need to be able to choose a username, password, etc. when they first boot it up. (Also called an OEM install).  How do I do this? I often find myself wishing SO supported drag and drop. For example I drag a tag to my favs and it would add it, or when searching by tag I would like to drag the tag to the search box and get [asp.net] added in the search box.   Does it make sense to add this feature or is it just too much work for so little use? Diagonal straight lines in residuals vs fitted values plot for multiple regression I am observing strange patterns in residuals for my data:   [EDIT] Here are the partial regression plots for the two variables:      [EDIT2] Added the PP Plot   The distribution  seems to be doing fine (see below) but I have no clue where this straight line might be coming from. Any ideas?   [UPDATE 31.07]  It turns out you were absolutely right, I had cases where the retweet count was indeed 0 and these ~ 15 cases resulted in those strange residual patterns.   The residuals look much better now:   I've also included the partial regressions with a loess line. Can I prevent/restrict standard users from installing/uninstalling software? Can i prevent/restrict standard user from installing/uninstalling software in Ubuntu 12.04 desktop? In $\mathbb{Z}\left [ x \right ]$, let $I = \left \{ f\left ( x \right ) \in \mathbb{Z}\left [ x \right ]: f\left ( 0 \right ) \text{ is an even integer} \right \}$. Is $I$ a Prime ideal of $\mathbb{Z}\left [ x \right ]$?  Let $f_{1}\left ( x \right ),f_{2}\left ( x \right ) \in \mathbb{Z}\left [ x \right ].$ Let $f_{1}\left ( x \right )f_{2}\left ( x \right ) \in I$. Clearly, I is a proper ideal of $\mathbb{Z}\left [ x \right ]$ since the elements in $\mathbb{Z}\left [ x \right ]$ evaluated at 0 can produce an odd integer but this cannot be true in I. Now, $f_{1}\left ( 0 \right )f_{2}\left ( 0 \right )$ is an even integer in I. Hence, either $f_{1}\left ( 0 \right )$ has an even constant integer or $f_{2}\left ( 0 \right )$ has an even constant integer. Thus, I is a prime ideal by definition. Is this correct? I would now like to show if I is a maximal ideal. Again, clearly, I is a proper ideal by the above argument. Let B be an ideal of $\mathbb{Z}\left [ x \right ]$ and I $\subseteq B\subseteq \mathbb{Z}\left [ x \right ]$. How should B be defined so that I would conclude either $B=I$ or $B=\mathbb{Z}[x]$? From the Windows NT-based (Windows XP and 7 specifically) command prompt, how can I get the serial number of a hard drive as a variable? The one I'm looking at is the serial number of the physical hard disk drive biblatex broken overnight As late as last week my setup for biblatex worked fine. Going back to the same project today not even a minimal file compiles:  \documentclass{article}   \usepackage{biblatex} %\addbibresource{biblatex-examples.bib}   \begin{document}  test%foo\nocite{*}    %\printbibliography  \end{document}   but breaks off with   /usr/local/texlive/2017/texmf-dist/tex/latex/biblatex/biblatex.sty:3776: LaTeX  Error: Missing \begin{document}.  See the LaTeX manual or LaTeX Companion for explanation. Type  H &lt;return&gt;  for immediate help.  ...                                                l.3776   australian,newzealand} ?  /usr/local/texlive/2017/texmf-dist/tex/latex/biblatex/biblatex.sty:3776: Math f ormula deleted: Insufficient symbol fonts. \expandafter -&gt;american|  l.3776   australian,newzealand}   And keeps repeating the last one until    (That makes 100 errors; please try again.)   when I ignore it.  Files without biblatex work as expected.  Using tlmgr to go my two backup versions of biblatex back in time to 1st Jan I still get the same errors.  Could this be another update from the last week or so that causes this?  If I swich back to TL 16 things work as expected. (For my work I need TL 17 because of packages.) Given that $x^y=y^x$, what could $x$ and $y$ be? It's not too difficult to figure out that $x$ and $y$ can both be 1, and also $x$ can be 2 and $y$ can be 4 (and vice versa). But I can't rule out if there are other solutions. Does it have anything to do with inverse functions? Is there a way to see the solutions by graphing, or algebraically? Can you claim a Double Sacrifice Bonus? Two very closely related questions:  If a card has two different "Sacrifice this creature for X" abilities on it, does sacrificing it give both benefits?  Likewise, if a card requires a creature to be sacrificed, but that creature has a "Sacrifice this creature for X" ability, do you get the sacrifice benefit when you sacrifice it for the other requirement? Alignment of the titles in a ToC and \Roman{section} There is a problem with the alignment of the numbering of the ToC: When we use   \renewcommand{\thesection}{\Roman{section}}   the numbers encroach on the titles. When the command is commented out, the numbers are all aligned [from the first number on the left] but the titles do not begin at the same position.  What I want is to use \Roman{section} but with the numbers being displaced after V (or 9 in arabic) so that the first letters of the  titles are all aligned !  An illustration:  %\RequirePackage{fix-cm} \documentclass[a4paper, 11pt, twoside]{article}  \renewcommand{\thesection}{\Roman{section}}  \begin{document}   \tableofcontents \normalfont %\cleardoublepage  \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY} \section{QWERTY}  \end{document} Retrieving HTTP status code from loaded iframe with Javascript When I get a notification on android that someone had posted an answer or comment, if I click the notification, it opens the Stack Exchange app but shows the main view with the inbox opened, not the comment or answer that was in the notification.  If there is only one notification pending, when you tap it it should show you the actual contents rather than just the inbox. Change font size of the verbatim environment Sort by author in Alpha bibliography Using the alpha bibliography style, citations are sorted by the citation key. I'd like to use the same style of authors-year citation keys (e.g., [CP92]) but have the bibliography sorted by the first author's lastname instead of alphabetically by the citation key itself. This would keep the same papers by the same first author together.  For example, alpha would produce the following sorted order:        [Cha81] D. Chaum. Untraceable...   [CL04] J. Camenisch and A. Lysyanskaya. Signature...   [CP92] D. Chaum and T. Pedersen. Wallet...      Whereas, abbr would produce the following sorted order:        [1] J. Camenisch and A. Lysyanskaya. Signature...   [2] D. Chaum. Untraceable...   [3] D. Chaum and T. Pedersen. Wallet...      I am looking for the same sorting as abbr but maintaining the citation key style of alpha.  Is there a way to achieve this hybrid style?