000
10.07.2006, 15:42 Uhr
ortega
|
Hallo Leute, bin als Java Programmiere relativ neu in C++ und habe das Problem, dass ich eine Beispielanwendung (ein Spielbeispiel vom Oreilly Buch: "AI for Game Developers") nicht kompilieren kann. Es gibt jede Menge Fehlermeldungen, die ich nicht genau interpretieren kann. Kann mir einer helfen? Kann es vielleicht an irgendwelchen fehlenden Bibliotheken liegen oder das die Pfade in den Dateien zu den Bibliotheken falsch gesetzt sind?
Die Datei mit den Beispielen kann man sich unter http://examples.oreilly.com/ai/Examples.zip runterladen. Dort hatte ich es mit der ersten Demo "AIDemo2-2" versucht.
Wäre für jede Hilfe dankbar.
Danke und Gruß
Ortega
P.S. Suche ergab keine passenden Antworten
Code: |
Compiler: Default compiler Führt g++.exe... aus g++.exe "C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\main.cpp" -o "C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\main.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" In file included from C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\/main.h:4, from C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\main.cpp:1: C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\/winmain.h:31:7: warning: no newline at end of file In file included from C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\/main.h:5, from C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\main.cpp:1: C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\/mymath.h:715:7: warning: no newline at end of file In file included from C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\/main.h:6, from C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\main.cpp:1: C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\/RigidBody2D.h:64:7: warning: no newline at end of file In file included from C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\main.cpp:1: C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\/main.h:26:7: warning: no newline at end of file C:\Dokumente und Einstellungen\janik\Desktop\Examples\AIDemo2-2\main.cpp: In function `void DrawCraft(RigidBody2D, COLORREF)':
C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x248):main.cpp: undefined reference to `RigidBody2D::SetThrusters(bool, bool)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x254):main.cpp: undefined reference to `IsKeyDown(short)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x26c):main.cpp: undefined reference to `RigidBody2D::ModulateThrust(bool)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x278):main.cpp: undefined reference to `IsKeyDown(short)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x290):main.cpp: undefined reference to `RigidBody2D::ModulateThrust(bool)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x29c):main.cpp: undefined reference to `IsKeyDown(short)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x2bc):main.cpp: undefined reference to `RigidBody2D::SetThrusters(bool, bool)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x2c8):main.cpp: undefined reference to `IsKeyDown(short)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x2e8):main.cpp: undefined reference to `RigidBody2D::SetThrusters(bool, bool)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x316):main.cpp: undefined reference to `BasicChase' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x329):main.cpp: undefined reference to `BasicEvade' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x337):main.cpp: undefined reference to `InterceptChase' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x345):main.cpp: undefined reference to `PotentialChase' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x360):main.cpp: undefined reference to `RigidBody2D::UpdateBodyEuler(double)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x373):main.cpp: undefined reference to `RigidBody2D::UpdateBodyEuler(double)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x389):main.cpp: undefined reference to `ShowTrails' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x391):main.cpp: undefined reference to `ClearBackBuffer()' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x481):main.cpp: undefined reference to `DrawEllipse(tagRECT*, int, unsigned long)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x486):main.cpp: undefined reference to `CopyBackBufferToWindow()' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x6c8):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x803):main.cpp: undefined reference to `DrawLine(int, int, int, int, int, unsigned long)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x8ad):main.cpp: undefined reference to `DrawLine(int, int, int, int, int, unsigned long)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x957):main.cpp: undefined reference to `DrawLine(int, int, int, int, int, unsigned long)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0xa01):main.cpp: undefined reference to `DrawLine(int, int, int, int, int, unsigned long)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0xaab):main.cpp: undefined reference to `DrawLine(int, int, int, int, int, unsigned long)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0xab1):main.cpp: undefined reference to `ShowVectors' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0xb8e):main.cpp: undefined reference to `DrawLine(int, int, int, int, int, unsigned long)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0xbdb):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0xc4d):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0xd40):main.cpp: undefined reference to `DrawLine(int, int, int, int, int, unsigned long)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0xd91):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0xe03):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0xef6):main.cpp: undefined reference to `DrawLine(int, int, int, int, int, unsigned long)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0xf47):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0xfb9):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x10ac):main.cpp: undefined reference to `DrawLine(int, int, int, int, int, unsigned long)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x1103):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x1175):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x1268):main.cpp: undefined reference to `DrawLine(int, int, int, int, int, unsigned long)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x1305):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x138f):main.cpp: undefined reference to `RigidBody2D::SetThrusters(bool, bool)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x142b):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x148f):main.cpp: undefined reference to `RigidBody2D::SetThrusters(bool, bool)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x165a):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x1782):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x1a58):main.cpp: undefined reference to `RigidBody2D::SetThrusters(bool, bool)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x1b37):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x1b84):main.cpp: undefined reference to `RigidBody2D::SetThrusters(bool, bool)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x1dc4):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x1e39):main.cpp: undefined reference to `RigidBody2D::SetThrusters(bool, bool)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x1fa0):main.cpp: undefined reference to `VRotate2D(float, Vector)' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x23b3):main.cpp: undefined reference to `RigidBody2D::RigidBody2D()' C:\DOKUME~1\janik\LOKALE~1\Temp/cca4aaaa.o(.text+0x23ce):main.cpp: undefined reference to `RigidBody2D::RigidBody2D()' C:\Dev-Cpp\lib/libmingw32.a(main.o)(.text+0x106):main.c: undefined reference to `WinMain@16' collect2: ld returned 1 exit status
Ausführung beendet
|
Dieser Post wurde am 10.07.2006 um 16:11 Uhr von ortega editiert. |