gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > I can't Compile the file...

#142548 - Miikkuu - Wed Oct 10, 2007 8:56 am

Hi!
(Sorry because of my bad english (I'm german))

I have a big Problem whith the compiling... When I start the "Build.bat", then there is this error-massage:
Code:

main.cpp
arm-eabi-g++ -MMD -MP -MF /c/devkitPro/Codes/Hallo_Welt/build/main.d -g -Wall -O
2 -mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer -ffast-math -mthumb -mthum
b-interwork -I/c/devkitPro/Codes/Hallo_Welt/include -I/c/devkitPro/libnds/includ
e -I/c/devkitPro/libnds/include -I/c/devkitPro/Codes/Hallo_Welt/build -DARM9 -fn
o-rtti -fno-exceptions -c /c/devkitPro/Codes/Hallo_Welt/source/main.cpp -o main.
o
c:/devkitPro/Codes/Hallo_Welt/source/main.cpp:18:2: warning: no newline at end o
f file
c:/devkitPro/Codes/Hallo_Welt/source/main.cpp: In function 'int main()':
c:/devkitPro/Codes/Hallo_Welt/source/main.cpp:8: error: 'VRAM_A_MAIN_BG_0x600000
0' was not declared in this scope
make[1]: *** [main.o] Error 1
make: *** [build] Error 2

Do anybody no the meaning of this message? (I searched by google, but I couldn't find anything)
I did it step by step as per the "Hello World"-tutorial.
A year ago I tryed the same thing whith the same error-message...


PS: I'm glad for each answer


Miikku

#142568 - tepples - Wed Oct 10, 2007 12:47 pm

It means your program was developed against an older version of libnds that used slightly different spellings for some of the names of VRAM bank constants. See $DEVKITPRO/libnds/include/nds/arm9/video.h for the latest spellings.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#142572 - Miikkuu - Wed Oct 10, 2007 1:48 pm

Thanks! :)
Now it works.