Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SDL_image und Pfadangaben
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Hypolit
n00b
n00b


Joined: 13 May 2005
Posts: 4

PostPosted: Fri May 20, 2005 2:15 pm    Post subject: SDL_image und Pfadangaben Reply with quote

Hallo,
habe ein Problem mit den Pfadangaben für SDL_Image beim Programmieren mit Kdevelop.

Ich möchte mit SDL_image ein Bild einladen, sagen wir tux.jpg.

Das Bild lade ich mit folgender Codezeile:
image = IMG_Load("tux.jpg");

Das Bild ist im selben Verzeichnis wie die auszuführende Datei.

Problem:
Wenn ich das Programm mit der Bash starte, funktioniert es einwandfrei.
Wenn ich es einfach über Konqueror starte, stürzt es sofort ab, außer ich kopiere das Bild in das Homeverzeichnis des aktuellen Benutzers.

Welchen Fehler mache ich da und wie behebe ich ihn?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum