Du bist nicht angemeldet.

Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!

Werbeanzeige

Anonymous

unregistriert

11

11.01.2006, 14:19

C++ Beginner
Wie Quellcode-Dateien runtergeladen von SDL?? Du hast den Quellcode von der SDL runtergeladen nciht die SDL Entwicklerdateien!

Anonymous

unregistriert

12

11.01.2006, 14:32

ups, was brauch ich denn jetzt, die development libaries oder die runtime libaries???

Nox

Supermoderator

Beiträge: 5 272

Beruf: Student

  • Private Nachricht senden

13

11.01.2006, 14:46

die dev lib
PRO Lernkurs "Wie benutze ich eine Doku richtig"!
CONTRA lasst mal die anderen machen!
networklibbenc - Netzwerklibs im Vergleich | syncsys - Netzwerk lib (MMO-ready) | Schleichfahrt Remake | Firegalaxy | Sammelsurium rund um FPGA&Co.

Anonymous

unregistriert

14

11.01.2006, 14:54

Hab die Datei runtergeladen: SDL-devel-1.2.9-VC6.zip
Unter Tools->Options->VC++ Directories den Ordner für lib und include angegeben.
Wenn ich den Buchquelltext kompiliere kommt folgendes:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
------ Build started: Project: SDL_Game, Configuration: Debug Win32 ------
Compiling...
Asteroid.cpp
Framework.cpp
Game.cpp
Player.cpp
Shot.cpp
Sprite.cpp
Timer.cpp
Generating Code...
Compiling...
main.cpp
Linking...
Framework.obj : error LNK2019: unresolved external symbol _SDL_GetKeyState referenced in function "public: bool __thiscall CFramework::Init(int,int,int,bool)" (?Init@CFramework@@QAE_NHHH_N@Z)
Framework.obj : error LNK2019: unresolved external symbol _SDL_SetVideoMode referenced in function "public: bool __thiscall CFramework::Init(int,int,int,bool)" (?Init@CFramework@@QAE_NHHH_N@Z)
Framework.obj : error LNK2019: unresolved external symbol _SDL_GetError referenced in function "public: bool __thiscall CFramework::Init(int,int,int,bool)" (?Init@CFramework@@QAE_NHHH_N@Z)
Sprite.obj : error LNK2001: unresolved external symbol _SDL_GetError
Framework.obj : error LNK2019: unresolved external symbol _SDL_Init referenced in function "public: bool __thiscall CFramework::Init(int,int,int,bool)" (?Init@CFramework@@QAE_NHHH_N@Z)
Framework.obj : error LNK2019: unresolved external symbol _SDL_Quit referenced in function "public: void __thiscall CFramework::Quit(void)" (?Quit@CFramework@@QAEXXZ)
Framework.obj : error LNK2019: unresolved external symbol _SDL_PumpEvents referenced in function "public: void __thiscall CFramework::Update(void)" (?Update@CFramework@@QAEXXZ)
Framework.obj : error LNK2019: unresolved external symbol _SDL_FillRect referenced in function "public: void __thiscall CFramework::Clear(void)" (?Clear@CFramework@@QAEXXZ)
Framework.obj : error LNK2019: unresolved external symbol _SDL_MapRGB referenced in function "public: void __thiscall CFramework::Clear(void)" (?Clear@CFramework@@QAEXXZ)
Sprite.obj : error LNK2001: unresolved external symbol _SDL_MapRGB
Framework.obj : error LNK2019: unresolved external symbol _SDL_Flip referenced in function "public: void __thiscall CFramework::Flip(void)" (?Flip@CFramework@@QAEXXZ)
Game.obj : error LNK2019: unresolved external symbol _SDL_PollEvent referenced in function "private: void __thiscall CGame::ProcessEvents(void)" (?ProcessEvents@CGame@@AAEXXZ)
Sprite.obj : error LNK2019: unresolved external symbol _SDL_FreeSurface referenced in function "public: __thiscall CSprite::~CSprite(void)" (??1CSprite@@QAE@XZ)
Sprite.obj : error LNK2019: unresolved external symbol _SDL_LoadBMP_RW referenced in function "public: void __thiscall CSprite::Load(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?Load@CSprite@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
Sprite.obj : error LNK2019: unresolved external symbol _SDL_RWFromFile referenced in function "public: void __thiscall CSprite::Load(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?Load@CSprite@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
Sprite.obj : error LNK2019: unresolved external symbol _SDL_SetColorKey referenced in function "public: void __thiscall CSprite::SetColorKey(int,int,int)" (?SetColorKey@CSprite@@QAEXHHH@Z)
Sprite.obj : error LNK2019: unresolved external symbol _SDL_UpperBlit referenced in function "public: void __thiscall CSprite::Render(void)" (?Render@CSprite@@QAEXXZ)
Timer.obj : error LNK2019: unresolved external symbol _SDL_GetTicks referenced in function "public: __thiscall CTimer::CTimer(void)" (??0CTimer@@QAE@XZ)
MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
D:\Programmierung\Meine Projekte\SDL_Game\Debug\SDL_Game.exe : fatal error LNK1120: 17 unresolved externals
Build log was saved at "file://d:\Programmierung\Meine Projekte\SDL_Game\Debug\BuildLog.htm"
SDL_Game - 20 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Da das alles SDL Befehle sind bei denen der Compiler rumheult, gehe ich davon aus, dass ich irgendwas falsch gemacht habe.

Werbeanzeige