linking error with inline functions

Discussion in 'C++' started by arjor, May 22, 2008.

  1. arjor

    arjor Guest

    hey guys

    When i try to make the following mutating method inline i get the
    following error:
    //method
    inline void vertex::setValue(int new_value) throw() { value_ =
    new_value; }

    error LNK2019: unresolved external symbol "public: void __thiscall
    vertex::setValue(int)" (?setValue@vertex@@QAEXH@Z) referenced in
    function _main

    removing the inline keyword fixes the problem
    any advice would be much appreciated
     
    arjor, May 22, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    460
  2. Daniel Vallstrom
    Replies:
    2
    Views:
    1,893
    Kevin Bracey
    Nov 21, 2003
  3. Replies:
    6
    Views:
    343
    Ron Natalie
    Jul 18, 2006
  4. Sylvain Audi
    Replies:
    1
    Views:
    272
    Ian Collins
    Jan 13, 2007
  5. Rahul
    Replies:
    3
    Views:
    457
    James Kanze
    Feb 28, 2008
Loading...

Share This Page