{"action":"created","issue":{"url":"https://api.github.com/repos/bincrafters/community/issues/94","repository_url":"https://api.github.com/repos/bincrafters/community","labels_url":"https://api.github.com/repos/bincrafters/community/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/bincrafters/community/issues/94/comments","events_url":"https://api.github.com/repos/bincrafters/community/issues/94/events","html_url":"https://github.com/bincrafters/community/issues/94","id":292682527,"number":94,"title":"Boost.Test 1.65.1, 1.66.0 link problem (Windows)","user":{"login":"db4","id":6112699,"avatar_url":"https://avatars3.githubusercontent.com/u/6112699?v=4","gravatar_id":"","url":"https://api.github.com/users/db4","html_url":"https://github.com/db4","followers_url":"https://api.github.com/users/db4/followers","following_url":"https://api.github.com/users/db4/following{/other_user}","gists_url":"https://api.github.com/users/db4/gists{/gist_id}","starred_url":"https://api.github.com/users/db4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/db4/subscriptions","organizations_url":"https://api.github.com/users/db4/orgs","repos_url":"https://api.github.com/users/db4/repos","events_url":"https://api.github.com/users/db4/events{/privacy}","received_events_url":"https://api.github.com/users/db4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"grafikrobot","id":2998253,"avatar_url":"https://avatars0.githubusercontent.com/u/2998253?v=4","gravatar_id":"","url":"https://api.github.com/users/grafikrobot","html_url":"https://github.com/grafikrobot","followers_url":"https://api.github.com/users/grafikrobot/followers","following_url":"https://api.github.com/users/grafikrobot/following{/other_user}","gists_url":"https://api.github.com/users/grafikrobot/gists{/gist_id}","starred_url":"https://api.github.com/users/grafikrobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grafikrobot/subscriptions","organizations_url":"https://api.github.com/users/grafikrobot/orgs","repos_url":"https://api.github.com/users/grafikrobot/repos","events_url":"https://api.github.com/users/grafikrobot/events{/privacy}","received_events_url":"https://api.github.com/users/grafikrobot/received_events","type":"User","site_admin":false},"assignees":[{"login":"grafikrobot","id":2998253,"avatar_url":"https://avatars0.githubusercontent.com/u/2998253?v=4","gravatar_id":"","url":"https://api.github.com/users/grafikrobot","html_url":"https://github.com/grafikrobot","followers_url":"https://api.github.com/users/grafikrobot/followers","following_url":"https://api.github.com/users/grafikrobot/following{/other_user}","gists_url":"https://api.github.com/users/grafikrobot/gists{/gist_id}","starred_url":"https://api.github.com/users/grafikrobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grafikrobot/subscriptions","organizations_url":"https://api.github.com/users/grafikrobot/orgs","repos_url":"https://api.github.com/users/grafikrobot/repos","events_url":"https://api.github.com/users/grafikrobot/events{/privacy}","received_events_url":"https://api.github.com/users/grafikrobot/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-01-30T07:44:56Z","updated_at":"2018-02-13T17:08:56Z","closed_at":null,"author_association":"NONE","body":"Consider the following test example:\r\n`conanfile.txt`\r\n```\r\n[requires]\r\nBoost.Test/1.65.1@bincrafters/stable\r\n\r\n[generators]\r\ncmake\r\n```\r\n`CMakeLists.txt`\r\n```\r\nproject(test CXX)\r\ncmake_minimum_required(VERSION 3.10)\r\n\r\ninclude(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)\r\nconan_basic_setup(TARGETS)\r\n\r\nadd_executable(main main.cpp)\r\ntarget_link_libraries(main CONAN_PKG::Boost.Test)\r\n```\r\n`main.cpp`\r\n```\r\n#define BOOST_TEST_MODULE Test\r\n#include <boost/test/unit_test.hpp>\r\n```\r\nTrying to build it:\r\n```\r\nmkdir build\r\ncd build\r\nconan install ..\r\ncmake .. -G \"Visual Studio 15 Win64\"\r\ncmake --build . --config Release\r\n```\r\nThe last command fails with:\r\n```\r\nLink:\r\n  C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\VC\\Tools\\MSVC\\14.12.25827\\bin\\HostX86\\x64\\link.exe /ERRORREPORT:QUEUE /O\r\n  UT:\"C:\\Users\\dbely\\conan\\test-boost\\build\\bin\\main.exe\" /INCREMENTAL:NO /NOLOGO C:\\.conan\\lrp4h4by\\1\\lib\\libboost_prg_exec_monitor.lib C:\r\n  \\.conan\\lrp4h4by\\1\\lib\\libboost_test_exec_monitor.lib C:\\.conan\\lrp4h4by\\1\\lib\\libboost_unit_test_framework.lib C:\\.conan\\678o_6yu\\1\\lib\\\r\n  libboost_container.lib C:\\.conan\\vlo9eck0\\1\\lib\\libboost_exception.lib C:\\.conan\\kwmtgrd6\\1\\lib\\libboost_regex.lib C:\\.conan\\xhm4dv19\\1\\l\r\n  ib\\libboost_timer.lib C:\\.conan\\9u6x411z\\1\\lib\\libboost_chrono.lib C:\\.conan\\h46afy7v\\1\\lib\\libboost_system.lib kernel32.lib user32.lib g\r\n  di32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:\"level='asInvoker' uiA\r\n  ccess='false'\" /manifest:embed /PDB:\"C:/Users/dbely/conan/test-boost/build/bin/main.pdb\" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMP\r\n  AT /IMPLIB:\"C:/Users/dbely/conan/test-boost/build/lib/main.lib\" /MACHINE:X64  /machine:x64 main.dir\\Release\\main.obj\r\nlibboost_prg_exec_monitor.lib(cpp_main.obj) : error LNK2019: unresolved external symbol \"int __cdecl cpp_main(int,char * * const)\" (?cpp_ma in@@YAHHQEAPEAD@Z) referenced in function main [C:\\Users\\dbely\\conan\\test-boost\\build\\main.vcxproj]\r\nC:\\Users\\dbely\\conan\\test-boost\\build\\bin\\main.exe : fatal error LNK1120: 1 unresolved externals [C:\\Users\\dbely\\conan\\test-boost\\build\\mai n.vcxproj]\r\n```\r\nIf I edit .vcxproj file to remove `libboost_prg_exec_monitor.lib` from link libraries, or reorder them to make `libboost_test_exec_monitor.lib` coming first, it links OK.\r\n"},"comment":{"url":"https://api.github.com/repos/bincrafters/community/issues/comments/365334764","html_url":"https://github.com/bincrafters/community/issues/94#issuecomment-365334764","issue_url":"https://api.github.com/repos/bincrafters/community/issues/94","id":365334764,"user":{"login":"wpalfi","id":18048248,"avatar_url":"https://avatars1.githubusercontent.com/u/18048248?v=4","gravatar_id":"","url":"https://api.github.com/users/wpalfi","html_url":"https://github.com/wpalfi","followers_url":"https://api.github.com/users/wpalfi/followers","following_url":"https://api.github.com/users/wpalfi/following{/other_user}","gists_url":"https://api.github.com/users/wpalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/wpalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpalfi/subscriptions","organizations_url":"https://api.github.com/users/wpalfi/orgs","repos_url":"https://api.github.com/users/wpalfi/repos","events_url":"https://api.github.com/users/wpalfi/events{/privacy}","received_events_url":"https://api.github.com/users/wpalfi/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T17:08:56Z","updated_at":"2018-02-13T17:08:56Z","author_association":"NONE","body":"Same problem for me.\r\nWorkaround: replace \r\n`#include <boost/test/unit_test.hpp>`\r\nby\r\n`#include <boost/test/included/unit_test.hpp>`\r\n(single header usage variant, see here http://www.boost.org/doc/libs/1_66_0/libs/test/doc/html/boost_test/usage_variants.html)"}}
{"actor":{"display_login":"wpalfi"}}