Project

General

Profile

inline functions and derived classes....

Added by Edwin McKay almost 8 years ago

It seems the linker is unable to "find" or relocate inline type of functions? The errors always point to "inline" functions, either explicitly using "inline" or declared normally inline in the header file. In the classes I have they are base classes. Something to note is the error does reference one of the derived classes. So class a : b {} , where b has the inlines, the error states the in file a.obj "this relocation cannot be performed" etc..

"../driver.h", line 149: warning #17009-D: relocation type is static
base-relative, but references symbol "_TMD_System_Clock" defined in section
".text"; references to section ".text" are not relative to any static base,
so this relocation cannot be performed (type = 'R_C60BASE' (80), file =
"./scandvr.obj", offset = 0x00001eb0, section = ".text")

I have tried to replicate the issue with only a few files but have not been able to. It might have something to do with some items that are 'extern "C" '. The older compiler might have dealt with the conflict automatically or in some other manner.


Replies (1)

RE: inline functions and derived classes.... - Added by Edwin McKay almost 8 years ago

it was the Extern'd item.... in one place it was declared as a function in another as a variable.

    (1-1/1)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)