-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation errors in screen.c and output.c #118
Comments
Should be fixed in 5e9e01a. |
Correction: fixed in d5b811c. |
There were additional errors in screen.c that I did not report because I thought they were consequences of the win_set_4bit_color() problem. I was wrong and here they are: screen.c: In function 'at_enter': These errors appear to be caused by the semicolons at the end of the SETCOLORS calls. The SETCOLORS macro, defined on line156, includes curly braces and so the semicolon terminates the if-statement starting on line 2576. In my opinion the simplest "fix" is to delete the semicolons. A better solution, I think, would be to remove the braces in the macro definition but it uses other macros that also have braces and so additional changes would be required. |
Actually, another simple solution would be to use a curly-brace pair after each else if. For example:
|
Once I fixed the compilation errors in screen.c, I now see a link error: gcc -L/mingw-w64/x86_64-8.1.0-win32-seh-rt_v6-rev0/mingw64/opt/lib -o less main.o screen.o brac.o ch.o charset.o cmdbuf.o command.o cvt.o decode.o edit.o filename.o forwback.o help.o ifile.o input.o jump.o line.o linenum.o lsystem.o mark.o optfunc.o option.o opttbl.o os.o output.o pattern.o position.o prompt.o search.o signal.o tags.o ttyin.o version.o -lregex I'm guessing that this happens because tputs_color is defined only if MSDOS_COMPILER is not defined. |
Ah yes, set_color_map should not be calling tput_color. I will look into this. |
When compiling less with mingw, I get compilation errors.
screen.c
output.c
output.c:375:3: error: too many arguments to function 'win_flush
I see these errors as of commit c6eb7aa
The text was updated successfully, but these errors were encountered: