Hello! I am new. I try to make project with
CSFML-2.3-windows-64-bit
my program is:
#include <SFML/Graphics.h>
int main(int argc, char *argv[])
{
sfVideoMode mode = {800, 600, 32};
sfRenderWindow * window;
sfEvent event;
window = sfRenderWindow_create(mode, "SFML window", sfResize | sfClose, NULL);
while (sfRenderWindow_isOpen(window)){
while (sfRenderWindow_pollEvent(window, &event)){if (event.type == sfEvtClosed) sfRenderWindow_close(window);}
sfRenderWindow_clear(window, sfGreen);
sfRenderWindow_display(window);
}
sfRenderWindow_destroy(window);
return 0;
}
I set search path and linker settings - see attached pics.
The build result is:
Building sp1.exe.
POLINK: error: Unresolved external symbol '__imp_sfRenderWindow_create'.
POLINK: error: Unresolved external symbol '__imp_sfRenderWindow_close'.
POLINK: error: Unresolved external symbol '__imp_sfRenderWindow_pollEvent'.
POLINK: error: Unresolved external symbol '__imp_sfGreen'.
POLINK: error: Unresolved external symbol '__imp_sfRenderWindow_clear'.
POLINK: error: Unresolved external symbol '__imp_sfRenderWindow_display'.
POLINK: error: Unresolved external symbol '__imp_sfRenderWindow_isOpen'.
POLINK: error: Unresolved external symbol '__imp_sfRenderWindow_destroy'.
POLINK: fatal error: 8 unresolved external(s).
*** Error code: 1 ***
Done.
in the lib folder are files:
msvc/csfml-window-2.lib
msvc/csfml-graphics-2.lib
and so on
precompiled dll:
csfml-graphics-2.dll...
I put in my project folder.
It do not work
In the lib folder of SFML has libs also for gcc - gcc/libcsfml-graphics.a and so on, but they do not work here. I use them to make programs with gcc and code::blocks in windows 7 64bit and all works, but I want to use Pelles C.