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

Developer

Forums

Forums:

Hello,

I have to build my application in BREW 2.1.3 SDK. Now I installed it and point my BREW2DIR and BREWDIR Env variables pointed to v2.1.3 (the location in my computer, as usual). Now I have copied the AEEAppGen.c and AEModGen.c from 2.1.3 into my C++ project also. Before that I made my project with BREW2.0 Add-in; but I have copied the AEEAppGen.c and AEEModGen.c fles for v2.1.3 when my env var is changed.

Now the situation is when I rebuild my project I get error . It seems like the project does not get the standard AEE headers file from the "inc" directory of the SDK. I have included the "inc" header file in my project settings. I am also getting error for AEEModGen.c while running the makefile. This has never happend before. The errors are as follows [for reference]:

=========================================================
AEEModGen.c(62) : error C2143: syntax error : missing '{' before '*'
AEEModGen.c(62) : error C2143: syntax error : missing ')' before '*'
AEEModGen.c(62) : error C2081: 'AEEModObj' : name in formal parameter list illegal
AEEModGen.c(62) : error C2143: syntax error : missing '{' before '*'
AEEModGen.c(62) : error C2059: syntax error : ')'
AEEModGen.c(269) : error C2143: syntax error : missing ')' before '*'
AEEModGen.c(269) : error C2081: 'AEEModObj' : name in formal parameter list illegal
AEEModGen.c(269) : error C2143: syntax error : missing '{' before '*'
AEEModGen.c(269) : error C2059: syntax error : ')'
AEEModGen.c(270) : error C2054: expected '(' to follow 'poAdd'
AEEModGen.c(300) : error C2143: syntax error : missing ')' before '*'
AEEModGen.c(300) : error C2081: 'AEEModObj' : name in formal parameter list illegal
AEEModGen.c(300) : error C2143: syntax error : missing '{' before '*'
AEEModGen.c(300) : error C2059: syntax error : ')'
AEEModGen.c(301) : error C2054: expected '(' to follow 'pObj'
AEEModGen.c(425) : error C2065: 'AEEModObj' : undeclared identifier
AEEModGen.c(425) : error C2065: 'poObj' : undeclared identifier
AEEModGen.c(425) : warning C4552: '*' : operator has no effect; expected operator with side-effect
AEEModGen.c(426) : error C2143: syntax error : missing ';' before 'type'
AEEModGen.c(433) : warning C4047: '=' : 'void *' differs in levels of indirection from 'int'
AEEModGen.c(441) : error C2065: 'nErr' : undeclared identifier
AEEModGen.c(505) : error C2143: syntax error : missing '{' before '*'
AEEModGen.c(505) : error C2143: syntax error : missing ')' before '*'
AEEModGen.c(505) : error C2081: 'AEEModObj' : name in formal parameter list illegal
AEEModGen.c(505) : error C2143: syntax error : missing '{' before '*'
AEEModGen.c(505) : error C2059: syntax error : ')'
AEEModGen.c(506) : error C2054: expected '(' to follow 'ppPrev'

c:\SVNDev\vivaviewer\src\AEEModGen.c(270): error C2054: expected '(' to follow 'poAdd'

c:\SVNDev\vivaviewer\src\AEEModGen.c(301): error C2054: expected '(' to follow 'pObj'

c:\SVNDev\vivaviewer\src\AEEModGen.c(506): error C2054: expected '(' to follow 'ppPrev'

=========================================================

Can anybody tell me what is happening? I have no clue , Because I never touch the AEEAppgen and ModGen files. Plesae help !!

Thank you.

You need to add the include directory to your project. Add this line to Project Options in Project Settings->C/C++:
/I "$(BREWDIR)\inc"
And make sure that this variable (BREWDIR) is pointing to the correct directory

You need to add the include directory to your project. Add this line to Project Options in Project Settings->C/C++:
/I "$(BREWDIR)\inc"
And make sure that this variable (BREWDIR) is pointing to the correct directory

Jonathan wrote:You need to add the include directory to your project. Add this line to Project Options in Project Settings->C/C++:
/I "$(BREWDIR)\inc"
And make sure that this variable (BREWDIR) is pointing to the correct directory
Hi Jonathan,
Thnaks for your reply. But I already have the Inc directory included. Here is my C/C++ option in the project settings:
/Od /I "C:\SDK\BREW\v2_1_3\inc" /I "..\inc" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "AEE_SIMULATOR" /D "_WINDLL" /FD /EHsc /MTd /GS /Fo"Debug/" /Fd"Debug/vc70.pdb" /nologo /c /Zi /TP
My ($BREWDIR) is pointed to SDK Version 2.1.3 directory in my computer. But still I get the same errors. If I build that in SDK 2.0.1, I do not have these errors in my .NET(C++) project. I know this sound wierd. Plesae help me. It is very important.
Thanks in advance.

Jonathan wrote:You need to add the include directory to your project. Add this line to Project Options in Project Settings->C/C++:
/I "$(BREWDIR)\inc"
And make sure that this variable (BREWDIR) is pointing to the correct directory
Hi Jonathan,
Thnaks for your reply. But I already have the Inc directory included. Here is my C/C++ option in the project settings:
/Od /I "C:\SDK\BREW\v2_1_3\inc" /I "..\inc" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "AEE_SIMULATOR" /D "_WINDLL" /FD /EHsc /MTd /GS /Fo"Debug/" /Fd"Debug/vc70.pdb" /nologo /c /Zi /TP
My ($BREWDIR) is pointed to SDK Version 2.1.3 directory in my computer. But still I get the same errors. If I build that in SDK 2.0.1, I do not have these errors in my .NET(C++) project. I know this sound wierd. Plesae help me. It is very important.
Thanks in advance.

Jonathan wrote:You need to add the include directory to your project. Add this line to Project Options in Project Settings->C/C++:
/I "$(BREWDIR)\inc"
And make sure that this variable (BREWDIR) is pointing to the correct directory
Hello Jonathan,
I have solved the MISTRY(!). It is the AEEModGen.h header file in SDK version 2.1.3. I was getting error while initializing "AEEModObj". I reserached that header file in 2.1.3 and found out that AEEModObj is not in there. It is declared in the header fie in Version 2.0.1. So I coppied that one over to version 2.1.3 and my project is rebuilding. I think you guys in QualComm need to update that AEEModGen.h header file in SDK version2.1.3. Please..:).
Thanks.

Jonathan wrote:You need to add the include directory to your project. Add this line to Project Options in Project Settings->C/C++:
/I "$(BREWDIR)\inc"
And make sure that this variable (BREWDIR) is pointing to the correct directory
Hello Jonathan,
I have solved the MISTRY(!). It is the AEEModGen.h header file in SDK version 2.1.3. I was getting error while initializing "AEEModObj". I reserached that header file in 2.1.3 and found out that AEEModObj is not in there. It is declared in the header fie in Version 2.0.1. So I coppied that one over to version 2.1.3 and my project is rebuilding. I think you guys in QualComm need to update that AEEModGen.h header file in SDK version2.1.3. Please..:).
Thanks.

Quote:AEEModGen.c(62) : error C2081: 'AEEModObj' : name in formal parameter list illegal
This is the 2.0 AEEModGen.c, probably compiled with the 2.1 AEEModGen.h. The 2.1 AEEModGen.c does not use AEEModObj, and in fact line 62 is blank.

Quote:AEEModGen.c(62) : error C2081: 'AEEModObj' : name in formal parameter list illegal
This is the 2.0 AEEModGen.c, probably compiled with the 2.1 AEEModGen.h. The 2.1 AEEModGen.c does not use AEEModObj, and in fact line 62 is blank.

It sounds like you copied the wrong varsions of Appgen and Modgen or your BREWDIR variable wasn't correct. Maybe there was something wrong with your project settings.

It sounds like you copied the wrong varsions of Appgen and Modgen or your BREWDIR variable wasn't correct. Maybe there was something wrong with your project settings.

rabidcow wrote:This is the 2.0 AEEModGen.c, probably compiled with the 2.1 AEEModGen.h. The 2.1 AEEModGen.c does not use AEEModObj, and in fact line 62 is blank.
Hi rabidcow,
Thank you for clearing that. I re-downloaded the whole SDK 2.1.3 and verified. Its the directory structure that was messed up in my computer...u guys are Cool !Now everything is back to normal.
Thanks guys:).

rabidcow wrote:This is the 2.0 AEEModGen.c, probably compiled with the 2.1 AEEModGen.h. The 2.1 AEEModGen.c does not use AEEModObj, and in fact line 62 is blank.
Hi rabidcow,
Thank you for clearing that. I re-downloaded the whole SDK 2.1.3 and verified. Its the directory structure that was messed up in my computer...u guys are Cool !Now everything is back to normal.
Thanks guys:).