Code Monkey home page Code Monkey logo

xconpty's Introduction

xconpty's People

Contributors

biswa96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

xconpty's Issues

Compile error with Cygwin MinGW

How to compile this with MinGW on Cygwin?
I tried by replacing CC with: x86_64-w64-mingw32-gcc. But got:

$ make
x86_64-w64-mingw32-gcc -c -Os -m64 -mwindows -Wall -Wextra  -fstack-check XConPty.c -o ../bin/XConPty.obj
XConPty.c: In function ‘XConPty’:
XConPty.c:60:5: error: unknown type name ‘STARTUPINFOEXW’
     STARTUPINFOEXW SInfoEx = { 0 };
     ^~~~~~~~~~~~~~
XConPty.c:68:50: error: ‘ENABLE_VIRTUAL_TERMINAL_PROCESSING’ undeclared (first use in this function)
     hRes = SetConsoleMode(hStdOut, consoleMode | ENABLE_VIRTUAL_TERMINAL_PROCESSING);
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XConPty.c:68:50: note: each undeclared identifier is reported only once for each function it appears in
XConPty.c:46:5: warning: implicit declaration of function ‘ProcThreadAttributeValue’ [-Wimplicit-function-declaration]
     ProcThreadAttributeValue (ProcThreadAttributePseudoConsole, FALSE, TRUE, FALSE)
     ^
XConPty.c:46:5: note: in definition of macro ‘PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE’
     ProcThreadAttributeValue (ProcThreadAttributePseudoConsole, FALSE, TRUE, FALSE)
     ^~~~~~~~~~~~~~~~~~~~~~~~
XConPty.c:107:12: error: request for member ‘StartupInfo’ in something not a structure or union
     SInfoEx.StartupInfo.cb = sizeof(STARTUPINFOEXW);
            ^
XConPty.c:107:37: error: ‘STARTUPINFOEXW’ undeclared (first use in this function)
     SInfoEx.StartupInfo.cb = sizeof(STARTUPINFOEXW);
                                     ^~~~~~~~~~~~~~
XConPty.c:108:12: error: request for member ‘lpAttributeList’ in something not a structure or union
     SInfoEx.lpAttributeList = AttrList;
            ^
XConPty.c:120:17: error: request for member ‘StartupInfo’ in something not a structure or union
         &SInfoEx.StartupInfo,
                 ^
XConPty.c:60:20: warning: variable ‘SInfoEx’ set but not used [-Wunused-but-set-variable]
     STARTUPINFOEXW SInfoEx = { 0 };
                    ^~~~~~~
make: *** [Makefile:30: ../bin/XConPty.obj] Error 1

Also note that mingw-make no longer exist, as used in your instructions.

I also tried by importing the phnt headers. Made things worse.

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.