Skip to main content
gamedev.net
🔒 Locked

inline linker errors

Started by Endar 1 reply 700+ views
Original Post
Endar
Endar
I was having some problems with VC++, where functions in a source file which I had written were causing linker errors (unresolved external). The functions were member functions in the class CMatrix, and they were declared as inline in the source file. So, where should I be declaring functions as inline? In the class declaration or the source file? Or both?
[size="2"][size=2]Mort, Duke of Sto Helit: NON TIMETIS MESSOR -- Don't Fear The Reaper
JohnBolton
JohnBolton
Inline functions (and template functions) must be defined in the header file. Otherwise, how would the compiler get the function's body?
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.