Giter Club home page Giter Club logo

Comments (4)

RamonUnch avatar RamonUnch commented on August 20, 2024 1

I will see this, I was using GCC8.1.
I disabled stdlib because I experienced problems with it in the past with mingw, and in general for Win32 programs I really see no point in this stdlib that is made for GNU compatibility.
the unfuckWinMain is just the entrypoint hence the -e_unfuckWinMain and calls WinMain(). if you remove the -nosdlib _WinMain@16 will be resolved by the linker and you do not need the to precise the entry point with -e

from altsnap.

RamonUnch avatar RamonUnch commented on August 20, 2024 1

I removed the -Wp,-D_FORTIFY_SOURCE=2 and added the -D__USE_MINGW_ANSI_STDIO=0
flag and I can keep the -nostdlib and have smaller exe and avoid potential trouble with MingW's stdlib that I don't like.

from altsnap.

yatli avatar yatli commented on August 20, 2024

__mingw_vsnwprintf can be resolved by removing -nostdlib

The other errors are just mingw32 configuration problems with gcc itself. The workaround is to remove -Wp,-D_FORTIFY_SOURCE=2

see: https://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/thread/8f541ca2-fb82-4f89-929c-4bf994da6c83%40126.com/

from altsnap.

yatli avatar yatli commented on August 20, 2024

unfuckWinMain works fine without -nostdlib :D
edit: maybe not. I'm on Windows10 so perhaps there's nothing to unfuck.

from altsnap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.