Click here to Skip to main content
15,900,818 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Display data in Dialog Box Pin
louis7-Jun-01 21:20
louis7-Jun-01 21:20 
GeneralGet number of 1s in a set of binary numbers Pin
hearties6-Jun-01 23:04
hearties6-Jun-01 23:04 
GeneralRe: Get number of 1s in a set of binary numbers Pin
Mark Jones6-Jun-01 23:53
Mark Jones6-Jun-01 23:53 
GeneralRe: Get number of 1s in a set of binary numbers Pin
markkuk7-Jun-01 0:38
markkuk7-Jun-01 0:38 
Generalpreviewing word documents Pin
Kannan Kalyanaraman6-Jun-01 21:19
Kannan Kalyanaraman6-Jun-01 21:19 
GeneralChart in VC++ MFC Pin
Aky6-Jun-01 19:59
Aky6-Jun-01 19:59 
GeneralRe: Chart in VC++ MFC Pin
Christian Graus7-Jun-01 13:29
protectorChristian Graus7-Jun-01 13:29 
GeneralWhat's wrong with my code? (class template) Pin
Li Lirong6-Jun-01 19:25
Li Lirong6-Jun-01 19:25 
I have the following codes, all of them are in the same file "test.cpp"

//declaration
template <class T> class temp
{
public:
    class nested
        {
        public:
            void test();
        };

    void test()
    {
        nested nes;
        nes.test();
    }
};

//definition
template <class T>
void temp<T>::nested::test()
{}


int main( /* int argc, char* argv[] */ )
{
    temp<int> tem;
    tem.test();
    return 0;
}


error message:
test.obj : error LNK2001: unresolved external symbol
"public: void __thiscall temp<int>::nested::test(void)"
(?test@nested@?$temp@H@@QAEXXZ)
test.exe : fatal error LNK1120: 1 unresolved externals

what's wrong with my code?
thanks
Cry | :((

Lirong

GeneralRe: What's wrong with my code? (class template) Pin
Vivek Rajan6-Jun-01 20:00
Vivek Rajan6-Jun-01 20:00 
GeneralRe: What's wrong with my code? (class template) Pin
Li Lirong6-Jun-01 21:02
Li Lirong6-Jun-01 21:02 
GeneralRe: What's wrong with my code? (class template) Pin
7-Jun-01 4:23
suss7-Jun-01 4:23 
GeneralRe: What's wrong with my code? (class template) Pin
Ghazi H. Wadi7-Jun-01 14:36
Ghazi H. Wadi7-Jun-01 14:36 
GeneralRe: What's wrong with my code? (class template) Pin
Li Lirong7-Jun-01 17:09
Li Lirong7-Jun-01 17:09 
GeneralRe: What's wrong with my code? (class template) Pin
Jim Crafton7-Jun-01 18:57
Jim Crafton7-Jun-01 18:57 
GeneralScrolling the content Pin
Mangesh Sardesai6-Jun-01 18:55
Mangesh Sardesai6-Jun-01 18:55 
GeneralJoystick / Gamepad Pin
6-Jun-01 16:50
suss6-Jun-01 16:50 
GeneralRe: Joystick / Gamepad Pin
Christian Graus6-Jun-01 16:56
protectorChristian Graus6-Jun-01 16:56 
GeneralRe: Joystick / Gamepad Pin
7-Jun-01 10:36
suss7-Jun-01 10:36 
GeneralPut Enter character !!! Pin
Hadi Rezaee6-Jun-01 16:40
Hadi Rezaee6-Jun-01 16:40 
GeneralRe: Put Enter character !!! Pin
Christian Graus6-Jun-01 16:57
protectorChristian Graus6-Jun-01 16:57 
GeneralRe: Really? Pin
Masaaki Onishi6-Jun-01 17:15
Masaaki Onishi6-Jun-01 17:15 
GeneralRe: Really? Pin
Christian Graus6-Jun-01 17:43
protectorChristian Graus6-Jun-01 17:43 
GeneralRe: Put Enter character !!! Pin
Vivek Rajan6-Jun-01 20:13
Vivek Rajan6-Jun-01 20:13 
Generalinsert bitmap in a MDI child window Pin
Pou6-Jun-01 15:58
Pou6-Jun-01 15:58 
GeneralRe: insert bitmap in a MDI child window Pin
Christian Graus6-Jun-01 16:22
protectorChristian Graus6-Jun-01 16:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.