c - Creating premake project for PuTTYTray -


i'm trying use premake 4 create vs2013 project files puttytray.

initially i'm trying build putty.exe i'd able build original suite, based on original project files.

solution "puttytray" configurations {"debug", "release"}      project "putty"         kind "consoleapp"         language "c++"          files {              "*.h",              "*.c",             "windows/**.c",              "windows/**.h"          }          excludes {             "pscp.c",              "be_all.c",              "psftp.c",              "be_all_u.c",              "be_none.c",             "be_nos*",             "be_ssh.c",             "nocproxy.c",             "puttytel*",             "notiming.c",             "noterm.c",             "noprint.c",             "noshare.c",             "pproxy.c",             "windows/wincons.c",             "cmdgen.c",             "time.c",             "windows/winnojmp.c",             "windows/winplink.c",             "windows/winsftp.c",          }          defines {             "_windows",              "no_gssapi",              "win32",              "security_win32",             "_crt_secure_cpp_overload_standard_names=1",             "_crt_secure_no_warnings=1"         }          links {             "advapi32",             "comctl32",             "imm32",             "winmm"         }          includedirs {"windows","unix","."} 

i believe have config set original following errors:

error   34  error c1083: cannot open include file: 'termios.h': no such file or directory   d:\git\other\puttytray\windows\cthelper\ptyfork.c   2   1   putty error   15  error c1083: cannot open include file: 'unistd.h': no such file or directory    d:\git\other\puttytray\windows\cthelper\buffer.c    4   1   putty error   16  error c1083: cannot open include file: 'unistd.h': no such file or directory    d:\git\other\puttytray\windows\cthelper\cthelper.c  4   1   putty error   17  error c1083: cannot open include file: 'unistd.h': no such file or directory    d:\git\other\puttytray\windows\cthelper\ourhdr.h    10  1   putty error   35  error c1083: cannot open include file: 'unistd.h': no such file or directory    d:\git\other\puttytray\windows\cthelper\ourhdr.h    10  1   putty error   22  error c2059: syntax error : ')' d:\git\other\puttytray\windows\cthelper\mm.h    7   1   putty ... error   19  error c2061: syntax error : identifier 'len'    d:\git\other\puttytray\windows\cthelper\mm.h    7   1   putty error   30  error c2061: syntax error : identifier 'len'    d:\git\other\puttytray\windows\cthelper\mm.h    10  1   putty error   24  error c2061: syntax error : identifier 'nmemb'  d:\git\other\puttytray\windows\cthelper\mm.h    9   1   putty error   29  error c2081: 'ssize_t' : name in formal parameter list illegal  d:\git\other\puttytray\windows\cthelper\mm.h    10  1   putty error   18  error c2146: syntax error : missing ')' before identifier 'len' d:\git\other\puttytray\windows\cthelper\mm.h    7   1   putty error   28  error c2146: syntax error : missing ')' before identifier 'len' d:\git\other\puttytray\windows\cthelper\mm.h    10  1   putty error   23  error c2146: syntax error : missing ')' before identifier 'nmemb'   d:\git\other\puttytray\windows\cthelper\mm.h    9   1   putty 

what can closer mark? i'm not understanding i'm doing wrong here.

the issue didn't have correct list of excludes - original project files can generated running perl script in root of source.

with correct excludes , library imports can create , use solution successfully.

@ostrokarch's note pointed me in right direction here.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -