>
> But the generated executable still fails with the same error...

The same situation here.

Here's the relevant part of the Makefile for nmake generated by cmake,
maybe this could help you a bit:

src\lyx.exe: src\CMakeFiles\lyx.dir\build.make
        @echo Linking CXX executable lyx.exe
        cd C:\sandbox\lyx\b2\src
        $(CMAKE_COMMAND) -P CMakeFiles\lyx.dir\cmake_clean_target.cmake
        cd C:\sandbox\lyx\b2
        cd C:\sandbox\lyx\b2\src


        C:\PROGRA~1\MID05A~1\VC\bin\cl.exe  /nologo @<<
  /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
$(lyx_OBJECTS) $(lyx_EXTERNAL_OBJECTS) /Felyx.exe 
/FdC:\sandbox\lyx\b2\src\lyx.pdb -link  /STACK:10000000 /machine:I386 
/INCREMENTAL:YES /debug /subsystem:console  
-LIBPATH:c:\sandbox\lyx\b2\src\mathed -LIBPATH:c:\sandbox\lyx\b2\src\insets 
-LIBPATH:c:\sandbox\lyx\b2\src\frontends\controllers 
-LIBPATH:c:\sandbox\lyx\b2\src\frontends 
-LIBPATH:c:\sandbox\lyx\b2\src\frontends\qt4 
-LIBPATH:c:\sandbox\lyx\b2\src\graphics -LIBPATH:c:\sandbox\lyx\b2\src\support 
-LIBPATH:c:\sandbox\lyx\b2\boost\libs\filesystem 
-LIBPATH:c:\sandbox\lyx\b2\boost\libs\regex 
-LIBPATH:c:\sandbox\lyx\b2\boost\libs\signals 
-LIBPATH:c:\sandbox\lyx\b2\boost\libs\iostreams -LIBPATH:c:\sandbox\qt4\qt4\lib 
mathed.lib insets.lib frontends.lib controllers.lib frontend_qt4.lib 
graphics.lib support.lib boost_filesystem.lib boost_regex.lib
boost_signals.lib boost_iostreams.lib QtCored4.lib QtGuid4.lib QtXmld4.lib 
controllers.lib Gdi32.lib shlwapi.lib kernel32.lib user32.lib gdi32.lib 
winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib 
advapi32.lib

So it is cl -link, not link.exe? And I do not see the /manifest option...

        mt /manifest lyx.exe.manifest /outputresource:lyx.exe;#2
        cd C:\sandbox\lyx\b2

...

We need some MSVC expert help.

Bo

Reply via email to