หลังจากที่ได้ลง Compiler มาเยอะแยะมากมาย รกเครื่อง จนมีไฟล์ G++.exe ไม่รู้กี่ไฟล์ละ

พบว่า มันตีกันครับพี่น้อง
มันตีกัน

ใครที่ถูกลงจาก Software package อันหลังๆ
มาเปลี่ยน PATH นู่นนี่นั้น

ชี้มั่วไปหมด

ทำให้

SFML Library Compile error ได้

เลยเจอปัญหาที่
” SFML Undefined reference ใน sf::font . . ” อะไรทำนองนี้

ซึ่งมันเป็น Basic Function ?

ผมเลยแก้โดยการลองผิดลองถูกเยอะมาก

จนมาลองลง IDE (Code::Block) ใหม่

ก็พบว่า มันใช้ Compiler TDM-GCC อยู่
ซึ่ง SFML Support MINGW “not TDM-GCC”

เลยทำให้ Enlighted เลยว่า เอ้อ มันผิด

ลองลงใหม่และแก้

Project ที่ทำตอนอยู่เยอรมันก็กลับมารันได้ตามปกติ 😀

จดบันทึกการดิ้นรนไว้

เผื่อเป็นประโยชน์ต่อคนที่ Search เจอ

For those guy who came from google , i have tried to search a lot about the way to fix this problem . Finally i found that it came from the compiler itself , you must choose the compiler which corresponds to the version of SFML library also 😀 . i hope this tip might help you “