Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Hello,

I got the following link error on seveal functions when I used RVCT 2.1 to compile an application:

Error: L6248E: Device.o<.constdata_ZTV8Device> in PI region 'ER_RO' cannot have address type relocation to Device::processKeyEvent(unsigned short, unsigned short, unsigned long) in PI region 'ER_RO'

....

I didn't use any global variable or static variable. And I didn't have any problem when I compiled the application using ADS 1.2 (trial version). I noticed that all the functions that have this error are virtual functions. I wonder if I miss any link option about virtual function. This is the first time that I use RVCT 2.1 and I am not very clear about the difference between RVCT and ADS. Any suggestion will be appreciated.

Thanks!

Weird link error..
Quote:This is the first time that I use RVCT 2.1 and I am not very clear about the difference between RVCT and ADS. Any suggestion will be appreciated.
RVCT is a newer compiler, which is more iso compliant. For instance, you can now use namespaces and casts are implemented.

Weird link error..
Quote:This is the first time that I use RVCT 2.1 and I am not very clear about the difference between RVCT and ADS. Any suggestion will be appreciated.
RVCT is a newer compiler, which is more iso compliant. For instance, you can now use namespaces and casts are implemented.

virtual functions usually have relocations in the vtables, the compiler may have worked around it.

virtual functions usually have relocations in the vtables, the compiler may have worked around it.

Hmm moved to rvct and got exactly any the same problem..
Any tip?

Hmm moved to rvct and got exactly any the same problem..
Any tip?