SFML community forums
Help => General => Topic started by: TheDuceCat on May 28, 2012, 01:38:45 am
-
In the header for many of the classes in the graphics module, it says SFML_GRAPHICS_API before the class name. What is this?
-
It's a macro which gets defined when creating makefiles/projects with CMake.
The reason is that you have to export the function/class symbols diffrently if you link staticly or dynamicly.
So CMake will depending on your settings and the used compiler/linker define the macro either for static or dynamic export.
If you don't write your own library, you don't need to know the details. ;)