I must be missing something really stupid, but do you have a clue to give me about why I get a lot of 'undefined reference's if I try to use EPOC32's classes (or at least most of them, apparently some work, like RDevComm)?
Say that I want to compile the TOPX example application (a template for OPX's); I issue
arm-epoc-pe-gcc -Znoemx -shared -loplr topx.cpp
and I get
/tmp/ccQHESeo.o(.text+0x10):example.cpp: undefined reference to `OplAPI::PopInt32(void)'
/tmp/ccQHESeo.o(.text+0x10):example.cpp: relocation truncated to fit: ARM_26 OplAPI::PopInt32(void)
[.......]
Running gcc verbose, it seems to find the relevant library and all that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
But... but... ARGH! When I said "something really stupid" I couldn't even fathom... :-D
Well, head-against-the-wall aside, at least it works now, thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I must be missing something really stupid, but do you have a clue to give me about why I get a lot of 'undefined reference's if I try to use EPOC32's classes (or at least most of them, apparently some work, like RDevComm)?
Say that I want to compile the TOPX example application (a template for OPX's); I issue
arm-epoc-pe-gcc -Znoemx -shared -loplr topx.cpp
and I get
/tmp/ccQHESeo.o(.text+0x10):example.cpp: undefined reference to `OplAPI::PopInt32(void)'
/tmp/ccQHESeo.o(.text+0x10):example.cpp: relocation truncated to fit: ARM_26 OplAPI::PopInt32(void)
[.......]
Running gcc verbose, it seems to find the relevant library and all that.
Put any -l switches after all the other input files.
Eberhard
But... but... ARGH! When I said "something really stupid" I couldn't even fathom... :-D
Well, head-against-the-wall aside, at least it works now, thanks.