linking error with inline functions

A

arjor

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Linking error 5
Why does the compiler cannot pass? 1
Linking error .. 3
Linking error 1
Linking errors with IAR 0
Cross platform compilation 3
Linking problem 3
How to fix the following problem? 4

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top