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

Reply via email to