0 Members and 2 Guests are viewing this topic.
1>C:\Users\TOSHIBA\Documents\Visual Studio 2008\SFML-1.6\lib\sfml-network.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B8
When you want to use a dll, you need to link the .lib file.There should be sfml-network.dll and sfml-network.lib.Link to sfml-network.lib.
1>------ Build started: Project: testNetwork, Configuration: Debug Win32 ------1>Linking...1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup1>C:\Users\TOSHIBA\Documents\Visual Studio 2008\Projects\MY_PROJECTS\testNetwork\Debug\testNetwork.exe : fatal error LNK1120: 1 unresolved externals1>Build log was saved at "file://c:\Users\TOSHIBA\Documents\Visual Studio 2008\Projects\MY_PROJECTS\testNetwork\testNetwork\Debug\BuildLog.htm"1>testNetwork - 2 error(s), 0 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
You must link to sfml-main.
You don't see the console because you created a GUI application (which is the reason why you need a WinMain entry point instead of a main).You must change your project to be a console application.