Compiling problems

Asked by VirusSE

German

Muss ich am Makefile noch Anpassungen vornehmen? Das hier sind meine ersten Gehversuche mit einer Kompilersprache. Bisher habe ich eigentlich immer nur auf Interpretersprachen rumgehaust. ;-)

P.S. Kann mir bitte jemand bei der Gelegenheit auch mal dieses "const noBaseBuilding * const exception"-Ding erklären? Was ist das nun? Ein Zeiger auf ein noBaseBuilding-Objekt?

English

Do i need to write a bit in the Makefile? This were my first steps to a compiler language. In the past i coded interpreter languages.

P.S. If possible, can anyone tell me about the sense of this "const noBaseBuilding * const exception" madness, please? I don't understand this code? Is it a reference to a noBaseBuilding object?

I used following tools:

Arch Linux x86_32
cmake 2.8.2-1
make 3.81-5
gcc 4.5.0-6
miniupnpc 1.4.20100609

[ 1%] Built target version
       version: started
                source directory: "/home/virusse/workspace/rttr/s25rttr/"
                build directory: "/home/virusse/workspace/rttr/s25rttr/build/"
                build_version.h is unchanged
       version: finished
[ 1%] Built target updateversion
[ 2%] Built target audiodrv
[ 3%] Built target videodrv
[ 4%] Built target videoSDL
[ 6%] Built target endian
[ 7%] Built target audioSDL
[ 7%] Built target mygettext
[ 19%] Built target siedler2
[ 23%] Built target s25util
[ 26%] Built target lobby_c
[ 27%] Built target resample-sndlib-20
[ 28%] Built target s-c_resample
[ 29%] Built target sound-convert
[ 30%] Built target s25update
[ 30%] Building CXX object src/CMakeFiles/s25client.dir/nobMilitary.cpp.o
cc1plus: warnings being treated as errors
/home/virusse/workspace/rttr/s25rttr/src/nobMilitary.cpp: In Elementfunktion »void nobMilitary::Capture(unsigned char)«:
/home/virusse/workspace/rttr/s25rttr/src/nobMilitary.cpp:813:111: Fehler: »false« wird für Argument 5 von »void GameWorldGame::RecalcVisibilitiesAroundPoint(MapCoord, MapCoord, MapCoord, unsigned char, const noBaseBuilding*)« in Zeigertyp umgewandelt
/home/virusse/workspace/rttr/s25rttr/src/BuildingConsts.h: At global scope:
/home/virusse/workspace/rttr/s25rttr/src/BuildingConsts.h:249:44: Fehler: »BUILDING_HELP_STRINGS« definiert, aber nicht verwendet
make[2]: *** [src/CMakeFiles/s25client.dir/nobMilitary.cpp.o] Fehler 1
make[1]: *** [src/CMakeFiles/s25client.dir/all] Fehler 2
make: *** [all] Fehler 2

Question information

Language:
English Edit question
Status:
Solved
For:
Return To The Roots Edit question
Assignee:
OLiver Edit question
Solved by:
OLiver
Solved:
Last query:
Last reply:
Revision history for this message
VirusSE (virusse) said :
#1

Maybe i understand this const noBaseBuilding * const exception. noBaseBuilding is a class or a object, which shouldn't be edited by anyone. exception is a reference to this object and needs to be passed by reference to the function.

BUT exception shouldn't be edited by function, so both (variable and data type) needs to be const. .... Maybe my explanation is a bit "shooting through the knee to the eye", but hopefully someone can tell me, if it's correct please.

Revision history for this message
Best OLiver (postfach-von-oli) said :
#2

Das war ein kleiner Bug im Code, sollte nun behoben sein.

Revision history for this message
VirusSE (virusse) said :
#3

Thanks OLiver, that solved my question.