. Fedora22 Eclipse Mars 4.5.1 . @Zammalad, ,
- ++ ( > > ++).
- toolchain - Linux GCC.
++ 11, :
- " " .
- (C/++ Build > > GCC ++ > )
- " " : "ISO ++ 11 (-std = ++ 0x)". "", "" .
Eclipse SDL2
@esperanto /, / / SDL2 .
-, , "" /
$ sdl2-config --cflags
, /-
$ sdl2-config --libs
, Fedora22 (64 ) :
$ sdl2-config --cflags --libs
-I/usr/include/SDL2 -D_REENTRANT
-lSDL2 -lpthread
, eclipse - .. - :
$ mkdir /tmp/testing
$ cp -r main.cpp error.cpp lesson45.cpp /tmp/testing/.
$ cd /tmp/testing
$ g++ `sdl2-config --cflags --libs` -o lesson45 main.cpp error.cpp lesson45.cpp
, / SDL2 Eclipse, sdl2-config --libs
- " " .
- (C/++ > > )
- " "
SDL2 "" - " "
pthread ""
sdl2-config --cflags
- " " .
- (* C/++ Build > > GCC ++ > )
- Under Defined Characters (-D) , click the Add icon
- Enter
_REENTRANTand click OK
source
share