在 2020/4/30 2:31, Pali Rohár 写道:
> On Wednesday 29 April 2020 22:20:57 Liu Hao wrote:
> 
>     The application failed to initialize properly (0xc0000142). Click OK to 
> terminate application.
> 
> 
> When I tried to link with -lmsvcr90 and run it on same box, it works
> fine and prints hello world as expected.
> 
> I compiled mingw-w64 from git master, so maybe something with
> initialization of msvcr80.dll is broken in mingw-w64?
> 

IIRC MSVCR80 and 90 require some magic .manifest resource file be linked
into the main executable (typically you compile resources with WINDRES
into .o files and link them along with others), otherwise it just fails
at load time.



-- 
Best regards,
LH_Mouse

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to