Hi, here as create new project win32. But I have a problem.
Here my step:
File->New->Project Win 32 project
next-> empty project
source(right mouse press) add-> new item main.cpp -> ok
http://sfml-dev.org/tutorials/2.1/start-vc.phpThen (right mouse press) in project -> propereties
All configurationsC++ -> General -> AID(aditional include directores) -> D:\sfml\include
linker -> Generals -> AID ->D:\sfml\lib
Debaglinker-> input additional dependencies->
sfml-graphics-d.lib
sfml-window-d.lib
sfml-system-d.lib
sfml-audio-d.lib
Copy test code in main.cpp:#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
ctr+F5Errors!!! =)
1>------ Build started: Project: sas, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>C:\Projects\sas\Debug\sas.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://c:\Projects\sas\sas\Debug\BuildLog.htm"
1>sas - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========