Linked Questions

2340 votes
20 answers
848k views

Quote from The C++ standard library: a tutorial and handbook: The only portable way of using templates at the moment is to implement them in header files by using inline functions. Why is this? (...
MainID's user avatar
  • 30.3k
49 votes
6 answers
33k views

I have a problem in calling a template class I have. I declared a new type name Array, which is a template; In the .hpp file: template <typename T> class Array { public: Array(); }; In the ....
Boris Raznikov's user avatar
4 votes
3 answers
10k views

Possible Duplicate: Why do I get “unresolved external symbol” errors when using templates? I am using templates in my code while there is always an error LNK2019. Here is part of my ...
Mark Z.'s user avatar
  • 665
7 votes
2 answers
20k views

I always get undefined reference to `Graph::InsertVertex(std::string)' if I compile my project! Any hints why he cant resolve this reference? (all Files are in the netbeans project folder) // main....
leon22's user avatar
  • 5,749
3 votes
3 answers
21k views

I get this error a LOT, and i never know why. Can someone help me find the cause of it? Edit:Removed code
Bob's user avatar
  • 73
3 votes
2 answers
25k views

I have written a template class, for a map/dictionary data structure, and keep getting this strange error (ERROR LNK2019:unresolved external symbol) Code: AssArray.h: #pragma once template <...
Nattfrosten's user avatar
  • 2,149
1 vote
6 answers
7k views

Possible Duplicate: Why do I get “unresolved external symbol” errors when using templates? “undefined reference” to a template class function I got error on line: Console:...
Palaima's user avatar
  • 331
3 votes
1 answer
6k views

Possible Duplicate: Why do I get “unresolved external symbol” errors when using templates? LinkedList.h #ifndef LINKEDLIST_H #define LINKEDLIST_H #include<iostream> template<class T> ...
Instinct's user avatar
  • 2,261
1 vote
1 answer
6k views

I am trying to implement a few classes but i got the following error when compiling the codes. I have tried to removed all the redundant codes but none of them helps. I have no idea what went wrong. ...
Jeremy Nguyen's user avatar
2 votes
2 answers
2k views

I am getting unresolved externals compile error with following code snippet. acquire_gray(identity, []{}); samething happens when I try to use auto auto acquire_callback = [](LPBITMAPINFOHEADER ...
Greg's user avatar
  • 1,729
0 votes
2 answers
4k views

I have compiled the dependent files of my source file mycpp.c and linked the files in the order which they have used .All the dependant files are available in the same folder. **//Compilation** ...
user2040497's user avatar
3 votes
1 answer
1k views

I use visual c++. I have a template class and I want add overlapped operation for it I impelement it like below in header file template <class T> class QuantityT; template <class T&...
herzl shemuelian's user avatar
1 vote
0 answers
3k views

I have created a list and it worked perfectly, but I have to rewrite it using template, I have done this. But when I trying to compile my code I get Linker Error! Can you help with this code? Any help ...
Alex Lapchenko's user avatar
0 votes
2 answers
2k views

Relearning C++ for the sake of using OpenCL. I have created a Helper Class called CheckDevice which has a bunch of boiler plate code for getting device stats. CheckDevice.h class Utils { ...
Suri Mtui's user avatar
2 votes
3 answers
165 views

Possible Duplicate: Why do I get “unresolved external symbol” errors when using templates? I have a little bit complicated set of classes. Class _A which has child parametrized class A which has ...
OlegG's user avatar
  • 1,027

15 30 50 per page