Build từng file source code riêng lẻ (Single file) thì em đã search google và làm được.
Nhưng khi build cả project thì nó hiện lỗi như thế này:
C:\Users\VUQUOC~1\AppData\Local\Temp\ccURk4LH.o:main.cpp:(.text+0x12): undefined reference to `Shape::initShape()'
C:\Users\VUQUOC~1\AppData\Local\Temp\ccURk4LH.o:main.cpp:(.text+0x1f): undefined reference to `Shape::createShape()'
C:\Users\VUQUOC~1\AppData\Local\Temp\ccURk4LH.o:main.cpp:(.text+0x2c): undefined reference to `Shape::printShape()'
C:\Users\VUQUOC~1\AppData\Local\Temp\ccURk4LH.o:main.cpp:(.text+0x4d): undefined reference to `Shape::rotateShape()'
C:\Users\VUQUOC~1\AppData\Local\Temp\ccURk4LH.o:main.cpp:(.text+0x5a): undefined reference to `Shape::printShape()'
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: C:\Users\VUQUOC~1\AppData\Local\Temp\ccURk4LH.o: bad reloc address 0x0 in section `.ctors'
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
[Finished in 0.7s]
Em thử build trên Code::Blocks thì vẫn ok. :). Thanks!

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?