{"action":"created","issue":{"url":"https://api.github.com/repos/billyquith/GWork/issues/28","repository_url":"https://api.github.com/repos/billyquith/GWork","labels_url":"https://api.github.com/repos/billyquith/GWork/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/billyquith/GWork/issues/28/comments","events_url":"https://api.github.com/repos/billyquith/GWork/issues/28/events","html_url":"https://github.com/billyquith/GWork/issues/28","id":168871379,"number":28,"title":"Linker errors when building the SFML example on Windows","user":{"login":"eXpl0it3r","id":920861,"avatar_url":"https://avatars.githubusercontent.com/u/920861?v=3","gravatar_id":"","url":"https://api.github.com/users/eXpl0it3r","html_url":"https://github.com/eXpl0it3r","followers_url":"https://api.github.com/users/eXpl0it3r/followers","following_url":"https://api.github.com/users/eXpl0it3r/following{/other_user}","gists_url":"https://api.github.com/users/eXpl0it3r/gists{/gist_id}","starred_url":"https://api.github.com/users/eXpl0it3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eXpl0it3r/subscriptions","organizations_url":"https://api.github.com/users/eXpl0it3r/orgs","repos_url":"https://api.github.com/users/eXpl0it3r/repos","events_url":"https://api.github.com/users/eXpl0it3r/events{/privacy}","received_events_url":"https://api.github.com/users/eXpl0it3r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-02T12:20:25Z","updated_at":"2016-08-02T12:37:03Z","closed_at":null,"body":"I'm running into linker errors when building the SFML example on Windows with MinGW. To me it seems like the platform sources isn't being linked properly and/or exported wrongly.\r\n\r\nHere's the verbose output:\r\n\r\n```\r\n[ 99%] Linking CXX executable ..\\..\\..\\bin\\GworkSFML2Sample.exe\r\ncd /d GWork\\build\\source\\samples && cmake.exe -E cmake_link_script CMakeFiles\\GworkSFML2Sample.dir\\link.txt --verbose=1\r\ncmake.exe -E remove -f CMakeFiles\\GworkSFML2Sample.dir/objects.a\r\nC:\\Dev\\MinGW64-PosixSEH610r0\\bin\\ar.exe cr CMakeFiles\\GworkSFML2Sample.dir/objects.a @CMakeFiles\\GworkSFML2Sample.dir\\objects1.rsp\r\nC:\\Dev\\MinGW64-PosixSEH610r0\\bin\\g++.exe  -g   -Wl,--whole-archive CMakeFiles\\GworkSFML2Sample.dir/objects.a -Wl,--no-whole-archive  -o ..\\..\\..\\bin\\GworkSFML2Sample.exe -Wl,--out-implib,..\\..\\..\\lib\\libGworkSFML2Sample.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\\GworkSFML2Sample.dir\\linklibs.rsp\r\nlibGwork.a(Anim.cpp.obj): In function `Gwk::Anim::TimedAnimation::TimedAnimation(float, float, float)':\r\nGWork/source/gwork/source/Anim.cpp:105: undefined reference to `Gwk::Platform::GetTimeInSeconds()'\r\nlibGwork.a(Anim.cpp.obj): In function `Gwk::Anim::TimedAnimation::Think()':\r\nGWork/source/gwork/source/Anim.cpp:126: undefined reference to `Gwk::Platform::GetTimeInSeconds()'\r\nlibGwork.a(DragAndDrop.cpp.obj): In function `Gwk::UpdateHoveredControl(Gwk::Controls::Base*, int, int)':\r\nGWork/source/gwork/source/DragAndDrop.cpp:190: undefined reference to `Gwk::Platform::SetCursor(unsigned char)'\r\nlibGwork.a(DragAndDrop.cpp.obj): In function `Gwk::DragAndDrop::OnMouseMoved(Gwk::Controls::Base*, int, int)':\r\nGWork/source/gwork/source/DragAndDrop.cpp:229: undefined reference to `Gwk::Platform::SetCursor(unsigned char)'\r\nlibGwork.a(InputHandler.cpp.obj): In function `Gwk::Input::OnCanvasThink(Gwk::Controls::Base*)':\r\nGWork/source/gwork/source/InputHandler.cpp:137: undefined reference to `Gwk::Platform::GetTimeInSeconds()'\r\nGWork/source/gwork/source/InputHandler.cpp:150: undefined reference to `Gwk::Platform::GetTimeInSeconds()'\r\nlibGwork.a(InputHandler.cpp.obj): In function `Gwk::Input::OnMouseClicked(Gwk::Controls::Base*, int, bool)':\r\nGWork/source/gwork/source/InputHandler.cpp:215: undefined reference to `Gwk::Platform::GetTimeInSeconds()'\r\nGWork/source/gwork/source/InputHandler.cpp:222: undefined reference to `Gwk::Platform::GetTimeInSeconds()'\r\nlibGwork.a(InputHandler.cpp.obj): In function `Gwk::Input::OnKeyEvent(Gwk::Controls::Base*, int, bool)':\r\nGWork/source/gwork/source/InputHandler.cpp:370: undefined reference to `Gwk::Platform::GetTimeInSeconds()'\r\nlibGwork.a(Base.cpp.obj): In function `Gwk::Controls::Base::UpdateCursor()':\r\nGWork/source/gwork/source/Controls/Base.cpp:956: undefined reference to `Gwk::Platform::SetCursor(unsigned char)'\r\nlibGworkTest.a(Test.cpp.obj): In function `TestFrame::Render(Gwk::Skin::Base*)':\r\nGWork/source/test/source/Test.cpp:33: undefined reference to `Gwk::Platform::GetTimeInSeconds()'\r\nGWork/source/test/source/Test.cpp:36: undefined reference to `Gwk::Platform::GetTimeInSeconds()'\r\nlibGwork.a(ProgressBar.cpp.obj): In function `ProgressBarThink::Think()':\r\nGWork/source/gwork/source/Controls/ProgressBar.cpp:27: undefined reference to `Gwk::Platform::GetTimeInSeconds()'\r\nGWork/source/gwork/source/Controls/ProgressBar.cpp:29: undefined reference to `Gwk::Platform::GetTimeInSeconds()'\r\nlibGwork.a(TextBox.cpp.obj): In function `Gwk::Controls::TextBox::UpdateCaretColor()':\r\nGWork/source/gwork/source/Controls/TextBox.cpp:94: undefined reference to `Gwk::Platform::GetTimeInSeconds()'\r\nlibGwork.a(TextBox.cpp.obj):GWork/source/gwork/source/Controls/TextBox.cpp:99: more undefined references to `Gwk::Platform::GetTimeInSeconds()' follow\r\nlibGwork.a(TextBox.cpp.obj): In function `Gwk::Controls::TextBox::OnPaste(Gwk::Controls::Base*)':\r\nGWork/source/gwork/source/Controls/TextBox.cpp:154: undefined reference to `Gwk::Platform::GetClipboardText[abi:cxx11]()'\r\nlibGwork.a(TextBox.cpp.obj): In function `Gwk::Controls::TextBox::OnCopy(Gwk::Controls::Base*)':\r\nGWork/source/gwork/source/Controls/TextBox.cpp:162: undefined reference to `Gwk::Platform::SetClipboardText(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'\r\nlibGwork.a(TextBox.cpp.obj): In function `Gwk::Controls::TextBox::OnCut(Gwk::Controls::Base*)':\r\nGWork/source/gwork/source/Controls/TextBox.cpp:170: undefined reference to `Gwk::Platform::SetClipboardText(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'\r\n```\r\n\r\nHere's the content of linklib.rsp file which contain all the libs that are being linked.\r\n\r\n```\r\n ../../../lib/libGwork.a ../../../lib/libGworkSFML2.a D:/Programming/C++/Contrib/SFML/install/lib/libsfml-system-d.a D:/Programming/C++/Contrib/SFML/install/lib/libsfml-window-d.a D:/Programming/C++/Contrib/SFML/install/lib/libsfml-window.a D:/Programming/C++/Contrib/SFML/install/lib/libsfml-graphics-d.a D:/Programming/C++/Contrib/SFML/install/lib/libsfml-graphics.a D:/Programming/C++/Contrib/SFML/install/lib/libfreetype.a D:/Programming/C++/Contrib/SFML/install/lib/libjpeg.a -lopengl32 -lwinmm -lgdi32 ../../../lib/libGworkTest.a ../../../lib/libGworkSFML2.a ../../../lib/libGwork.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 \r\n```\r\n\r\nAs you may notice, that libGworkSFML2 is being linked. Strangely enough they are linked twice though. But since it was linked I don't fully understand why the platform code isn't being found.\r\n\r\nI'll try to play around with CMake a bit, but thought I report it and maybe you'd know something."},"comment":{"url":"https://api.github.com/repos/billyquith/GWork/issues/comments/236890952","html_url":"https://github.com/billyquith/GWork/issues/28#issuecomment-236890952","issue_url":"https://api.github.com/repos/billyquith/GWork/issues/28","id":236890952,"user":{"login":"billyquith","id":1754471,"avatar_url":"https://avatars.githubusercontent.com/u/1754471?v=3","gravatar_id":"","url":"https://api.github.com/users/billyquith","html_url":"https://github.com/billyquith","followers_url":"https://api.github.com/users/billyquith/followers","following_url":"https://api.github.com/users/billyquith/following{/other_user}","gists_url":"https://api.github.com/users/billyquith/gists{/gist_id}","starred_url":"https://api.github.com/users/billyquith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billyquith/subscriptions","organizations_url":"https://api.github.com/users/billyquith/orgs","repos_url":"https://api.github.com/users/billyquith/repos","events_url":"https://api.github.com/users/billyquith/events{/privacy}","received_events_url":"https://api.github.com/users/billyquith/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T12:37:03Z","updated_at":"2016-08-02T12:37:03Z","body":"I'm not familiar with MinGW. Yep, it looks like the platform isn't being linked. It should be part of the renderer library."}}
{"actor":{"display_login":"billyquith"}}