Creating .mod file | developer.brewmp.com Creating .mod file | developer.brewmp.com

Developer

Creating .mod file

Hi frds

I am not able to create .mod fileeuthr using Realview and GNU.
Using RealView ARM am not able to set the path for ARM ADS.

Using GNU am fatal error U1077("NMAKE : fatal error U1077: '%GCCHOME%\bin\arm-elf-g++' : return code '0x1'
Stop.
").
Quote: Setting environment for using Microsoft Visual Studio .NET 2003 tools.
(If you have another version of Visual Studio or Visual C++ installed and wish
to use its tools from the command line, run vcvars32.bat for that version.)

C:\Documents and Settings\mantra>cd\

C:\>cd Program Files

C:\Program Files>BREW 3.1.5
'BREW' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files>cd BREW 3.1.5

C:\Program Files\BREW 3.1.5>cd SDK

C:\Program Files\BREW 3.1.5\sdk>cd examples

C:\Program Files\BREW 3.1.5\sdk\examples>cd Flicknblog

C:\Program Files\BREW 3.1.5\sdk\examples\Flicknblog>namke -f Flicknblog.mak
'namke' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\BREW 3.1.5\sdk\examples\Flicknblog>nmake /f flicknblog.mak

Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.

%GCCHOME%\bin\arm-elf-gcc -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame
-mthumb-interwork -mlittle-endian -fshort-enums -fno-builtin -I "C:\PROGRA~1\BR
EW31~1.5\sdk\inc" -I%GCCLIBPATH%\include -I%GCCHOME%\arm-elf\include -O2 -o AEEM
odGen.o %BREWDIR%\src/AEEModGen.c
%GCCHOME%\bin\arm-elf-gcc -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame
-mthumb-interwork -mlittle-endian -fshort-enums -fno-builtin -I "C:\PROGRA~1\BR
EW31~1.5\sdk\inc" -I%GCCLIBPATH%\include -I%GCCHOME%\arm-elf\include -O2 -o AEEA
ppGen.o %BREWDIR%\src/AEEAppGen.c
---------------------------------------------------------------
OBJECT Form.o
%GCCHOME%\bin\arm-elf-g++ -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame
-mthumb-interwork -mlittle-endian -fshort-enums -fno-builtin -I "C:\PROGRA~1\B
REW31~1.5\sdk\inc" -I%GCCLIBPATH%\include -I%GCCHOME%\arm-elf\include -O2 -o For
m.o Form.cpp
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEEForm.h:30,
from BaseForm.h:5,
from form.h:4,
from Form.cpp:1:
C:/PROGRA~1/BREW31~1.5/sdk/inc/bid/AEEIID_FORM.bid:6:25: warning: no newline at
end of file
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEEForm.h:32,
from BaseForm.h:5,
from form.h:4,
from Form.cpp:1:
C:/PROGRA~1/BREW31~1.5/sdk/inc/bid/AEECLSID_FORM.bid:6:27: warning: no newline a
t end of file
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEEResFile.h:25,
from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEERootForm.h:25,
from RootForm.h:7,
from BaseForm.h:7,
from form.h:4,
from Form.cpp:1:
C:/PROGRA~1/BREW31~1.5/sdk/inc/AEESource.h:190: error: declaration of `uint32
(*IGetLineVtbl::GetLine)(IGetLine*, GetLine*, long unsigned int)'
C:/PROGRA~1/BREW31~1.5/sdk/inc/AEESource.h:176: error: changes meaning of `
GetLine' from `typedef struct GetLine GetLine'
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEEResFile.h:28,
from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEERootForm.h:25,
from RootForm.h:7,
from BaseForm.h:7,
from form.h:4,
from Form.cpp:1:
C:/PROGRA~1/BREW31~1.5/sdk/inc/bid/AEEIID_RESFILE.bid:11:28: warning: no newline
at end of file
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEERootForm.h:28,
from RootForm.h:7,
from BaseForm.h:7,
from form.h:4,
from Form.cpp:1:
C:/PROGRA~1/BREW31~1.5/sdk/inc/bid/AEEIID_ROOTFORM.bid:6:29: warning: no newline
at end of file
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEERootForm.h:30,
from RootForm.h:7,
from BaseForm.h:7,
from form.h:4,
from Form.cpp:1:
C:/PROGRA~1/BREW31~1.5/sdk/inc/bid/AEECLSID_ROOTFORM.bid:6:31: warning: no newli
ne at end of file
In file included from BaseForm.h:8,
from form.h:4,
from Form.cpp:1:
Globals.h:94:7: warning: no newline at end of file
In file included from Flicknblog.h:8,
from Form.cpp:8:
HelpInfoForm.h:25:7: warning: no newline at end of file
In file included from Accounts.h:4,
from AccountMgr.h:6,
from Flicknblog.h:14,
from Form.cpp:8:
Flicknblog.h:97:7: warning: no newline at end of file
In file included from AccountMgr.h:6,
from Flicknblog.h:14,
from Form.cpp:8:
Accounts.h:52:7: warning: no newline at end of file
In file included from AccountMgr.h:13,
from Flicknblog.h:14,
from Form.cpp:8:
Constants.h:33:7: warning: no newline at end of file
In file included from Flicknblog.h:14,
from Form.cpp:8:
AccountMgr.h:92:7: warning: no newline at end of file
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEEPopup.h:27,
from popupMenu.h:6,
from ShowCompletePostForm.h:7,
from Flicknblog.h:16,
from Form.cpp:8:
C:/PROGRA~1/BREW31~1.5/sdk/inc/bid/AEEIID_POPUPMENUFORM.bid:6:34: warning: no ne
wline at end of file
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEEPopup.h:29,
from popupMenu.h:6,
from ShowCompletePostForm.h:7,
from Flicknblog.h:16,
from Form.cpp:8:
C:/PROGRA~1/BREW31~1.5/sdk/inc/bid/AEECLSID_POPUPFORM.bid:6:32: warning: no newl
ine at end of file
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEEPopup.h:30,
from popupMenu.h:6,
from ShowCompletePostForm.h:7,
from Flicknblog.h:16,
from Form.cpp:8:
C:/PROGRA~1/BREW31~1.5/sdk/inc/bid/AEECLSID_POPUPMENUFORM.bid:6:36: warning: no
newline at end of file
In file included from Flicknblog.h:16,
from Form.cpp:8:
ShowCompletePostForm.h:84:9: warning: no newline at end of file
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEEDialog.h:24,
from dialogform.h:5,
from DialogBox.h:4,
from Flicknblog.h:23,
from Form.cpp:8:
C:/PROGRA~1/BREW31~1.5/sdk/inc/bid/AEECLSID_DIALOGFORM.bid:6:33: warning: no new
line at end of file
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEEDialog.h:25,
from dialogform.h:5,
from DialogBox.h:4,
from Flicknblog.h:23,
from Form.cpp:8:
C:/PROGRA~1/BREW31~1.5/sdk/inc/bid/AEECLSID_PROGRESSDIALOG.bid:6:37: warning: no
newline at end of file
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEEDialog.h:26,
from dialogform.h:5,
from DialogBox.h:4,
from Flicknblog.h:23,
from Form.cpp:8:
C:/PROGRA~1/BREW31~1.5/sdk/inc/bid/AEECLSID_INFODIALOG.bid:6:33: warning: no new
line at end of file
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEEDialog.h:27,
from dialogform.h:5,
from DialogBox.h:4,
from Flicknblog.h:23,
from Form.cpp:8:
C:/PROGRA~1/BREW31~1.5/sdk/inc/bid/AEECLSID_ERRORDIALOG.bid:6:34: warning: no ne
wline at end of file
In file included from C:/PROGRA~1/BREW31~1.5/sdk/inc/AEEDialog.h:28,
from dialogform.h:5,
from DialogBox.h:4,
from Flicknblog.h:23,
from Form.cpp:8:
C:/PROGRA~1/BREW31~1.5/sdk/inc/bid/AEECLSID_WARNDIALOG.bid:6:33: warning: no new
line at end of file
In file included from Server.h:6,
from ServerMgr.h:4,
from Flicknblog.h:26,
from Form.cpp:8:
FlicknBlog.h:97:7: warning: no newline at end of file
In file included from ServerMgr.h:4,
from Flicknblog.h:26,
from Form.cpp:8:
Server.h:32:7: warning: no newline at end of file
In file included from Flicknblog.h:27,
from Form.cpp:8:
Extras.h:15:7: warning: no newline at end of file
In file included from Form.cpp:8:
Flicknblog.h:97:7: warning: no newline at end of file
Form.cpp:473:2: warning: no newline at end of file
NMAKE : fatal error U1077: '%GCCHOME%\bin\arm-elf-g++' : return code '0x1'
Stop.
Previously i have changed int32 to uint32 in AEESOrcefile.h so that i can able to eliminate the int32 error?

Please Help me
thanks in Advance

Srinivas.komuroju

Hi,
You are using GNU GCC compiler. I think it will not support virtual functions.
And, you error occured
C:/PROGRA~1/BREW31~1.5/sdk/inc/AEESource.h:190: error: declaration of `uint32
(*IGetLineVtbl::GetLine)(IGetLine*, GetLine*, long unsigned int)'
C:/PROGRA~1/BREW31~1.5/sdk/inc/AEESource.h:176: error: changes meaning of `
GetLine' from `typedef struct GetLine GetLine'.
Remove the header file AEESource.h from your source, then try it.
I think this may be usefull for U.

Hi,
You are using GNU GCC compiler. I think it will not support virtual functions.
And, you error occured
C:/PROGRA~1/BREW31~1.5/sdk/inc/AEESource.h:190: error: declaration of `uint32
(*IGetLineVtbl::GetLine)(IGetLine*, GetLine*, long unsigned int)'
C:/PROGRA~1/BREW31~1.5/sdk/inc/AEESource.h:176: error: changes meaning of `
GetLine' from `typedef struct GetLine GetLine'.
Remove the header file AEESource.h from your source, then try it.
I think this may be usefull for U.

thilsen_06 wrote:Hi,
You are using GNU GCC compiler. I think it will not support virtual functions.
GNUDE was just fine on virtual functions three years ago. I find it very hard to believe that this has changed in the meantime!

thilsen_06 wrote:Hi,
You are using GNU GCC compiler. I think it will not support virtual functions.
GNUDE was just fine on virtual functions three years ago. I find it very hard to believe that this has changed in the meantime!

hello.
I have the same problem with AEESource.h. Earlier I used gcc and such problem was absent. Now i use g++ compiler and it arrives.

hello.
I have the same problem with AEESource.h. Earlier I used gcc and such problem was absent. Now i use g++ compiler and it arrives.

A similar problem is discussed on this link.

A similar problem is discussed on this link.

Make the following change in AEESource.h and then try it.
change the line:
int32 (*GetLine) (iname *po, GetLine *pgl, int32 nTypeEOL);
to:
int32 (*GetLine) (iname *po, struct GetLine *pgl, int32 nTypeEOL);
It should work...

Make the following change in AEESource.h and then try it.
change the line:
int32 (*GetLine) (iname *po, GetLine *pgl, int32 nTypeEOL);
to:
int32 (*GetLine) (iname *po, struct GetLine *pgl, int32 nTypeEOL);
It should work...