Re: Qt5.6 and MSVC
Am 04.03.2016 um 13:12 schrieb Peter Kümmel: ___wgetmainargs was removed in 2015. Hmm, I googled around and cannot find any announcement or any other hint when and why this was removed. Please try this patch https://github.com/syntheticpp/lyx/commit/2470fb442cb2b04a69b2030f28f1da60221556a7?diff=unified Many thanks, with this patch I can compile and with this also the nasty bug http://www.lyx.org/trac/ticket/9892 is fixed. So here is my +1. Please put it in. Could you please also check if http://www.lyx.org/trac/ticket/9892 is fixed for you too with MSVC 2015 Update 2? best regards Uwe
Re: Qt5.6 and MSVC
Am 04.03.2016 um 01:34 schrieb Uwe Stöhr: I played a bit with Qt5.6RC and the latest MSVC 2015. I can compile current master without errors but finally I still get this linking error: D:\LyXGit\Master\compile-2015\src\tests\check_ExternalTransforms.vcxproj" (standard target) (18) -> support.lib(os.obj) : error LNK2019: unresolved external symbol ___wgetmainargs referenced in function "void __cdecl lyx::support::os::init(int,char * * const)" (?init@os@support@lyx@@YAXHQAPAD@Z) [D:\LyXGit\Master\compile-2015\src\tests\check_ExternalTransforms.vcxproj] D:\LyXGit\Master\compile-2015\bin\Release\check_ExternalTransforms.exe : fatal error LNK1120: 1 unresolved externals [D:\LyXGit\Master\compile-2015\src\tests\check_ExternalTransforms.vcxproj] for the - LyX.exe - check_Length.exe - check_ExternalTransforms.exe - check_ListingsCaption.exe - check_convert.exe I still cannot imagine that there is a bug in MSVC because I get the same with MSVC 2013 and cannot imagine that users did not yet reported such a linking error. Of course I can switch to MinGW but to me its seems we have a real issue that should be corrected. I read that MinGW 4.9 is not fully capable of the windows handling in Win 10 so if possible I would prefer using MSVC for maintainability reasons. Of course if the mentioned error is not fixable I won't have another option. thanks and regards Uwe ___wgetmainargs was removed in 2015. Please try this patch https://github.com/syntheticpp/lyx/commit/2470fb442cb2b04a69b2030f28f1da60221556a7?diff=unified Peter
Re: Qt5.6 and MSVC
Am 04.03.2016 um 01:34 schrieb Uwe Stöhr: I played a bit with Qt5.6RC and the latest MSVC 2015. I can compile current master without errors but finally I still get this linking error: D:\LyXGit\Master\compile-2015\src\tests\check_ExternalTransforms.vcxproj" (standard target) (18) -> support.lib(os.obj) : error LNK2019: unresolved external symbol ___wgetmainargs referenced in function "void __cdecl lyx::support::os::init(int,char * * const)" (?init@os@support@lyx@@YAXHQAPAD@Z) OK, it seems we have a fundamental question here: The problem is the line 162 of os_win32.cpp wgetmainargs If I uncomment it and also line 65/66 I can successfully compile LyX with Qt 5.6 and MSVC 2015. The problem doesn't seem to be the wgetmainargs function because according to MS this had not been changed since MSVC 2010: https://msdn.microsoft.com/en-us//library/ff770599.aspx and with MSVC 2010 everything is fine. I understand the long note at line 102 that LyX as a console-based application is a hack because a genuine GUI-based app would be something else. I am no expert here but wgetmainargs is only used to get data from the console. This seems to be different since a while. One could fix that and I guess peter knows how, Peter?, but why don't we switch and make LyX a GUI application o Windows as described in the long comment. I mean LyX IS already GUI based so what would be the advantage of the console? thanks and regards Uwe
Qt5.6 and MSVC
I played a bit with Qt5.6RC and the latest MSVC 2015. I can compile current master without errors but finally I still get this linking error: D:\LyXGit\Master\compile-2015\src\tests\check_ExternalTransforms.vcxproj" (standard target) (18) -> support.lib(os.obj) : error LNK2019: unresolved external symbol ___wgetmainargs referenced in function "void __cdecl lyx::support::os::init(int,char * * const)" (?init@os@support@lyx@@YAXHQAPAD@Z) [D:\LyXGit\Master\compile-2015\src\tests\check_ExternalTransforms.vcxproj] D:\LyXGit\Master\compile-2015\bin\Release\check_ExternalTransforms.exe : fatal error LNK1120: 1 unresolved externals [D:\LyXGit\Master\compile-2015\src\tests\check_ExternalTransforms.vcxproj] for the - LyX.exe - check_Length.exe - check_ExternalTransforms.exe - check_ListingsCaption.exe - check_convert.exe I still cannot imagine that there is a bug in MSVC because I get the same with MSVC 2013 and cannot imagine that users did not yet reported such a linking error. Of course I can switch to MinGW but to me its seems we have a real issue that should be corrected. I read that MinGW 4.9 is not fully capable of the windows handling in Win 10 so if possible I would prefer using MSVC for maintainability reasons. Of course if the mentioned error is not fixable I won't have another option. thanks and regards Uwe