Does GNU compiler support ROPI for C++? | developer.brewmp.com Does GNU compiler support ROPI for C++? | developer.brewmp.com

Developer

Does GNU compiler support ROPI for C++?

Hi,

Does anyone know if gnu supports Read Only Position Independence (ROPI) for c++? armcpp appears not to.

Thx,
Tom

Hi --
They both should... ADS and GNU... ROPI is required for BREW, and I've been building C++ BREW apps w/ ROPI on for years, no problems. What exactly is failing for you?
Sam

Hi --
They both should... ADS and GNU... ROPI is required for BREW, and I've been building C++ BREW apps w/ ROPI on for years, no problems. What exactly is failing for you?
Sam

Hi,
Thank you for your response. My CPP app uses virtual function and that why it failed. Do u use virtual function on your app?
Thx,
Tom

Hi,
Thank you for your response. My CPP app uses virtual function and that why it failed. Do u use virtual function on your app?
Thx,
Tom

There has been a thread about this already (by Kufa I think). ARM compiler from RVDS v2.2 doesn't support --apcs /ropi (read only position independent) code switch for c++.
You can check that in the docs ("Position independence qualifiers", page 2-67 or 87 out of 466 in PDF file for v2.2). If you are using older build of arm (from ADS v1.2), everything is fine.

There has been a thread about this already (by Kufa I think). ARM compiler from RVDS v2.2 doesn't support --apcs /ropi (read only position independent) code switch for c++.
You can check that in the docs ("Position independence qualifiers", page 2-67 or 87 out of 466 in PDF file for v2.2). If you are using older build of arm (from ADS v1.2), everything is fine.

splandorf wrote:Hi --
They both should... ADS and GNU... ROPI is required for BREW, and I've been building C++ BREW apps w/ ROPI on for years, no problems. What exactly is failing for you?
Sam
Please in detail explain the process ofconfiguring the gcc for the C++ as the deveoping language for the brew wireless deveopment. I have develop the game in C++ but not able to generate the .o files of the .cpp files but that is working well for the .c files
e/bin/arm-elf-gcc.exe -c -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame -mthumb-interwork -mlittle-endian -fshort-enums -fno-builtin -IC:\gnude/2.0/inc -IC:\gnude\lib\gcc-lib\arm-elf\include -IC:\gnude\arm-elf\include -O2 -o MyGame.o MyGame.c
MyGame.c: In function `AEEClsCreateInstance':
MyGame.c:74: error: `AEECLSID_MYGAME' undeclared (first use in this function)
MyGame.c:74: error: (Each undeclared identifier is reported only once
MyGame.c:74: error: for each function it appears in.)
make: *** [MyGame.o] Error 1
------------------------------------
but their is no such files as MyGame.c but their is file call MyGame.cpp
Is their is problem in the .mak file.if that than suggest me the modification if any

splandorf wrote:Hi --
They both should... ADS and GNU... ROPI is required for BREW, and I've been building C++ BREW apps w/ ROPI on for years, no problems. What exactly is failing for you?
Sam
Please in detail explain the process ofconfiguring the gcc for the C++ as the deveoping language for the brew wireless deveopment. I have develop the game in C++ but not able to generate the .o files of the .cpp files but that is working well for the .c files
e/bin/arm-elf-gcc.exe -c -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame -mthumb-interwork -mlittle-endian -fshort-enums -fno-builtin -IC:\gnude/2.0/inc -IC:\gnude\lib\gcc-lib\arm-elf\include -IC:\gnude\arm-elf\include -O2 -o MyGame.o MyGame.c
MyGame.c: In function `AEEClsCreateInstance':
MyGame.c:74: error: `AEECLSID_MYGAME' undeclared (first use in this function)
MyGame.c:74: error: (Each undeclared identifier is reported only once
MyGame.c:74: error: for each function it appears in.)
make: *** [MyGame.o] Error 1
------------------------------------
but their is no such files as MyGame.c but their is file call MyGame.cpp
Is their is problem in the .mak file.if that than suggest me the modification if any

Quote:e/bin/arm-elf-gcc.exe -c -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame -mthumb-interwork -mlittle-endian -fshort-enums -fno-builtin -IC:\gnude/2.0/inc -IC:\gnude\lib\gcc-lib\arm-elf\include -IC:\gnude\arm-elf\include -O2 -o MyGame.o MyGame.c
MyGame.c: In function `AEEClsCreateInstance':
MyGame.c:74: error: `AEECLSID_MYGAME' undeclared (first use in this function)
MyGame.c:74: error: (Each undeclared identifier is reported only once
MyGame.c:74: error: for each function it appears in.)
make: *** [MyGame.o] Error 1There is no problem in a makefile here. Problem is in your .c file. You are missing a definition of your AEECLSID_MYGAME, which is probably in a .bid file, which you haven't included into your .c. Learn to read error messages.
Maybe you should start from the basics at:
http://www.mcdonaldsindia.com/careers/index.html and then move on slowly to a more difficult stuff...

Quote:e/bin/arm-elf-gcc.exe -c -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame -mthumb-interwork -mlittle-endian -fshort-enums -fno-builtin -IC:\gnude/2.0/inc -IC:\gnude\lib\gcc-lib\arm-elf\include -IC:\gnude\arm-elf\include -O2 -o MyGame.o MyGame.c
MyGame.c: In function `AEEClsCreateInstance':
MyGame.c:74: error: `AEECLSID_MYGAME' undeclared (first use in this function)
MyGame.c:74: error: (Each undeclared identifier is reported only once
MyGame.c:74: error: for each function it appears in.)
make: *** [MyGame.o] Error 1There is no problem in a makefile here. Problem is in your .c file. You are missing a definition of your AEECLSID_MYGAME, which is probably in a .bid file, which you haven't included into your .c. Learn to read error messages.
Maybe you should start from the basics at:
http://www.mcdonaldsindia.com/careers/index.html and then move on slowly to a more difficult stuff...