Hi, I have created below tickets in mingw sites and need guides/help.
https://sourceforge.net/p/mingw-w64/support-requests/144/ https://sourceforge.net/p/mingw-w64/discussion/723798/thread/a67e3fdbb7/ Please do let me know, if any thing missing. =====Request created on below topic: ====== **< Our Aim>** We want to cross-compile an application for MS Windows under Linux with the compiler x86_64-w64-mingw32-gcc This application is linking to libraries built from Windows platform. **< What we followed >** > Downloaded "mingw-w64-bin_x86_64-linux_20131228.tar.bz2" from https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/ > Extracted MinGW in a linux directory > Updated the Makefile of application with the MinGW installed path Example of makefile entries: CROSS_PREFIX = /dev/abc/mingw64 VERSION = WORK CC = $(CROSS_PREFIX)/bin/x86_64-w64-mingw32-gcc LD = $(CC) -ansi -pedantic COPT_CROSS_win = -O3 -MD -MP DEFS = -DIW_NOT_DEBUG_CODE \ -DPROG_VERSION=\\\"$(VERSION)\\\" \ -D__ANSI_CPLUSPLUS \ -DUSE_NEW_IOSTREAMS -DHW_USE_STANDARD_STREAMS DEFS_CROSS_win = $(DEFS) -D_WIN_ AR_CROSS_win = $(CROSS_PREFIX)ar cur > Executed "make -f makefile" and getting below errors: undefined reference to `__security_check_cookie' undefined reference to `DhcpRequestParams' undefined reference to `__chkstk' undefined reference to `__GSHandlerCheck' undefined reference to `__imp_freeaddrinfo' > We have copied "BufferOverflowU.lib and msvcrt.lib" from window/ MSVC to build path, And the Cros compilation succeed without any error message. > During execution of .exe in window platform, it is throwing below errors: Error: "Code execution cannot proceed because crtdll.dll was not found" **< Our Queries >** Could you please guide/help us, how to fix this runtime error. Please let us know, if we are missing something here. Thank you in advance! Please consider it as a priority. On Mon, Apr 8, 2019 at 5:12 PM Martin Storsjö <[email protected]> wrote: > On Mon, 8 Apr 2019, Jacek Caban wrote: > > > Signed-off-by: Jacek Caban <[email protected]> > > --- > > mingw-w64-headers/crt/corecrt.h | 8 ++++++ > > mingw-w64-headers/crt/time.h | 48 ++++++++++++++++----------------- > > 2 files changed, 32 insertions(+), 24 deletions(-) > > LGTM > > // Martin > > > > _______________________________________________ > Mingw-w64-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
