simply adding a variable

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Marge Inoferror (inevercheckthis2002_at_yahoo.com)
Date: 05/01/04

  • Next message: Scott McPhillips [MVP]: "Re: simply adding a variable"
    Date: Sat, 01 May 2004 18:02:03 GMT
    
    

    My project was compiling and linking fine.

    I add a variable to my view.h file:

    public:
           static int userPos;

    I now get a link error:
    unresolved external symbol "public: static int CView::userPos"

    view.h is included in view.ccp

    This is such a simple concept. Why is it tripping me up?

    Thanks,
    Marge


  • Next message: Scott McPhillips [MVP]: "Re: simply adding a variable"

    Relevant Pages

    • PCRE & MFC: problem with link error
      ... I'm trying to get an MFC v6 project to link with the C Perl Compatible ... Regular Expression (pcre) library, and encountering a link error about ... PcreTest.obj: error LNK2001: unresolved external symbol ...
      (microsoft.public.vc.mfc)
    • [Q] btdrt.lib linking error. in EVC
      ... I'm trying to write a very simple application in EVC 4.0 that uses ... I am including bt_api.h, and linking to btdrt.lib. ... compile the program I get the following linking errors; ... btdrt.lib: error LNK2019: unresolved external symbol ...
      (microsoft.public.windowsce.platbuilder)
    • problem of link
      ... I try to compile my mex file, but there are link error. ... encore.obj: error LNK2001: unresolved external symbol ...
      (comp.soft-sys.matlab)
    • linking errors only with /MT option, nothing else
      ... compilation option. ... linking the static excutable completely dies (problems ... Deleting intermediate and output files for project 'WTF', configuration ... Sys.lib: error LNK2001: unresolved external symbol ...
      (microsoft.public.vsnet.general)
    • linking errors in 2005 only with /MT option, nothing else
      ... compilation option. ... linking the static excutable completely dies (problems ... Deleting intermediate and output files for project 'WTF', configuration ... Sys.lib: error LNK2001: unresolved external symbol ...
      (microsoft.public.dotnet.languages.vc)