《按这里下载SDL-extension》

OtherLinkerOption.jpg

1. Setting --> Compiler --> SDL GNU GCC Compiler --> Linker setting

-lmingw32 -lSDLmain -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer

 

Compiler.jpg

2. Setting --> Compiler --> SDL GNU GCC Compiler --> Search Directories --> Compiler

D:\Program File\jar\SDL\include

 

Linker.jpg

3. Setting --> Compiler --> SDL GNU GCC Compiler --> Search Directories --> Linker

D:\Program File\jar\SDL\lib

 

sdlRoofFile.jpg

4. SDL Roof File

 

sdlInclud.jpg

5. Put all .h file into SDL\include\SDL

 

sdlLibrary.jpg

6. Put all .dll file into SDL\lib

 

OFL.jpg

Window32.jpg

7. Pull all Object File Library into System32 file, but in my computer .dll files are existing so I no need to do it. ( I don't know why winXP has SDL library >_< )

 

pragma comment.jpg

8. That will automatically link the .h file and .dll file together without setting the lib path and Include path.

I don't know why i didn't setting these tow path but the program is still workable.

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 kk匡 的頭像
    kk匡

    kk匡的日記&學習筆記

    kk匡 發表在 痞客邦 留言(0) 人氣()