How to makr mod file in C++ | developer.brewmp.com How to makr mod file in C++ | developer.brewmp.com

Developer

How to makr mod file in C++

Forums:

Hi All

I was previously working in C.But now i want to use c++.but i am unable to make the mod file n m getting the fatal error U1077:'\bin\armcc' return code
' 0x1' stop.
I am using GCC Compiler.Plz help me to make mod .

Thanks in advance

Priya Prakash

armcc is a c compiler. You should compile C++ files with armcpp. Note that the elf2mod tool will be unable to find AEEMod_Load (the module entry point) unless it has C linkage, so you should extern "C" it.

armcc is a c compiler. You should compile C++ files with armcpp. Note that the elf2mod tool will be unable to find AEEMod_Load (the module entry point) unless it has C linkage, so you should extern "C" it.

priya_du wrote:Hi All
I was previously working in C.But now i want to use c++.but i am unable to make the mod file n m getting the fatal error U1077:'\bin\armcc' return code
' 0x1' stop.
I am using GCC Compiler.Plz help me to make mod .
Thanks in advance
Priya Prakash
Dear ,
find the attache CppAppTemplate.txt rename with .mak
put on these C:\Program Files\BREW Addins\common\templates

priya_du wrote:Hi All
I was previously working in C.But now i want to use c++.but i am unable to make the mod file n m getting the fatal error U1077:'\bin\armcc' return code
' 0x1' stop.
I am using GCC Compiler.Plz help me to make mod .
Thanks in advance
Priya Prakash
Dear ,
find the attache CppAppTemplate.txt rename with .mak
put on these C:\Program Files\BREW Addins\common\templates

Hi
Thanks
Then should I arrange the armcpp compiler to compile my c++ files.Or is there any alternative to this???
Thanks
Priya

Hi
Thanks
Then should I arrange the armcpp compiler to compile my c++ files.Or is there any alternative to this???
Thanks
Priya

Are you using ARM ADS or GCC?
the CPP compilers are there in the BIN folder by default with both the Packages as below:-
For GCC - arm-elf-g++.exe
For ARM ADS - armcpp.exe
If you have a GCC package instaled- just rename the CppAppTemplate.txt(attached in a previous post) to app_name.mak, specify the values for the folowing variables according to your GCC package instalation and your App should compile.
BREW_HOME =
BREW_ADDINS =
GCC_HOME =
GCC_LIBPATH =
TARGET =
OBJS =
you may also refer the these links:-
https://brewx.qualcomm.com/brew/sdk/download.jsp?page=dx/compilers
https://brewx.qualcomm.com/brew/sdk/authdownload.jsp?page=dx/compilersgnu
http://www.mamlambo.com/writing/articles/000049.html
thanks,
Shivendra

Are you using ARM ADS or GCC?
the CPP compilers are there in the BIN folder by default with both the Packages as below:-
For GCC - arm-elf-g++.exe
For ARM ADS - armcpp.exe
If you have a GCC package instaled- just rename the CppAppTemplate.txt(attached in a previous post) to app_name.mak, specify the values for the folowing variables according to your GCC package instalation and your App should compile.
BREW_HOME =
BREW_ADDINS =
GCC_HOME =
GCC_LIBPATH =
TARGET =
OBJS =
you may also refer the these links:-
https://brewx.qualcomm.com/brew/sdk/download.jsp?page=dx/compilers
https://brewx.qualcomm.com/brew/sdk/authdownload.jsp?page=dx/compilersgnu
http://www.mamlambo.com/writing/articles/000049.html
thanks,
Shivendra

Hi
I am using GCC compiler.I am able to compile my c++ project .Mak file is also generated but i am unable to mak the mod file.
I have done the changes suggested in the previous post with the attach file but still unable to make the mod.
Thanks
Priya

Hi
I am using GCC compiler.I am able to compile my c++ project .Mak file is also generated but i am unable to mak the mod file.
I have done the changes suggested in the previous post with the attach file but still unable to make the mod.
Thanks
Priya

What is the error you are getting now?
thanks,
Shivendra

What is the error you are getting now?
thanks,
Shivendra

I am getting the same error....

I am getting the same error....

I dont understand how are you getting U1077:'\bin\armcc' error, if you are using GCC compiler. This is a ARM ADS C file compiler error.
thanks,
Shivendra

I dont understand how are you getting U1077:'\bin\armcc' error, if you are using GCC compiler. This is a ARM ADS C file compiler error.
thanks,
Shivendra