Let's make 16 games in C++: Snake
を見ってSFML(Simple and Fast Multimedia Library)を知りました。
チュートリアルを試すため
----------------------------------------
1.SFMLをダウンロード、圧縮解凍
2.Dev-C++ Tools →Compiler Options →Directoriesの
LibrariesとC++Includeを圧縮解凍したフォルダー内の各パスに設定
----------------------------------------
をしてもエラーで作動しませんでした。
調べると追加設定が必要でした。
----------------------------------------
3.Dev-C++ Tools →Compiler Options →Generalの
Add the following commands when calling the linkerを
-static-libgcc -DSFML_STATIC -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
で更新
4.圧縮解凍したディレクトリ内のbinフォルダ内のDLLファイルをEXEファイルと同じパスにコピー
----------------------------------------

댓글 없음:
댓글 쓰기