Skip to content

Run code on Windows ? #11

@flaviu22

Description

@flaviu22

Does anyone ran this code on Windows ? It possible to use on Windows ?
I have included in a simple C++ console application, I got tones of errors:

1>css_lex.c
1>css_lex.c(1335,10): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
1>css_syntax.c
1>css_syntax.c(334,24): warning C4273: 'malloc': inconsistent dll linkage
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_malloc.h(101,15): message : see previous definition of 'malloc'
1>css_syntax.c(341,19): warning C4273: 'free': inconsistent dll linkage
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_malloc.h(89,14): message : see previous definition of 'free'
1>css_syntax.y(159,21): error C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup. See online help for details.
1>css_syntax.y(521,8): error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>css_syntax.y(524,8): error C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>css_syntax.y(537,8): error C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>css_syntax.y(564,4): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>css_syntax.y(569,7): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>Generating Code...

Its worth it to use it on Windows ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions