bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issues while building ncurses 6.2 using Visual Studio


From: Anonymous Maarten
Subject: Re: Issues while building ncurses 6.2 using Visual Studio
Date: Tue, 17 Mar 2020 14:28:07 +0100

Hello Thomas,
Hello people of bug-ncurses,

I've updated my patches at https://github.com/mirror/ncurses/pull/1 on top of master.
These patches now let ncurses build using visual studio and using the ncurses build system.
CI output: https://ci.appveyor.com/project/madebr/ncurses/builds/31521971

I've done this in several steps:
Apart from the changes to the build system, there were 2 changes rqeuired to ncurses/base/MKlib_gen.sh. When the macro is expanded, too many parentheses are generated and an error is thrown.

> The NOMACROS change will cause the library to not work...

Also, I've (again) defined NCURSES_NOMACROS.
As you wrote as a comment on my pr on github, this is a bug.
But without this change, the following code is created after preprocessing:

    spec(dllexport) int __cdecl
    waddchnstr(stdscr,(const chtype * z),-1)
    {
     ;
      return waddchnstr(stdscr,(z),-1);
    }
   
    __declspec(dllexport) int __cdecl
    waddnstr(stdscr,(const char * a1),(int z))
    {
      ;
      return waddnstr(stdscr,(a1),(z));
    }
   
    __declspec(dllexport) int __cdecl
    waddnstr(stdscr,(const char * z),-1)
    {
      ;
      return waddnstr(stdscr,(z),-1);
    }

As you can see, the argument of the functions is not correct.

I hope you can do something with my patches.

Best regards
Maarten

reply via email to

[Prev in Thread] Current Thread [Next in Thread]