Skip to content
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

Error shot when compiling html.cpp on cygwin #73

Open
kellenwang1017 opened this issue May 15, 2022 · 1 comment
Open

Error shot when compiling html.cpp on cygwin #73

kellenwang1017 opened this issue May 15, 2022 · 1 comment

Comments

@kellenwang1017
Copy link

$ make -j
cd swill && /usr/bin/make
cd btyacc && /usr/bin/make
make[1]: Entering directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/swill'
cd Source/Objects; /usr/bin/make
make[1]: Entering directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/btyacc'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/btyacc'
make[2]: Entering directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/swill/Source/Objects'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/swill/Source/Objects'
cd Source/SWILL; /usr/bin/make static
make[2]: Entering directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/swill/Source/SWILL'
make[2]: Nothing to be done for 'static'.
make[2]: Leaving directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/swill/Source/SWILL'
make[1]: Leaving directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/swill'
cd src && /usr/bin/make
make[1]: Entering directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/src'
/usr/bin/make depend
make[2]: Entering directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/src'
make[2]: Nothing to be done for 'depend'.
make[2]: Leaving directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/src'
/usr/bin/make build/cscout
make[2]: Entering directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/src'
g++ -c -std=gnu++11 -O3 -pipe -Wall -I. -DINSTALL_PREFIX='"/usr/local"' -DPRODUCTION -o build/html.o html.cpp
html.cpp: In function ‘void html_head(FILE*, std::string, std::string, const char*)’:
html.cpp:170:17: error: expected primary-expression before ‘,’ token
170 | , of);
| ^
make[2]: *** [Makefile:152: build/html.o] Error 1
make[2]: Leaving directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/src'
make[1]: *** [Makefile:174: all] Error 2
make[1]: Leaving directory '/d/Eda/cygwin/cygwin64/home/kelle/cscout/src'
make: *** [Makefile:31: src/build/cscout] Error 2

@dspinellis
Copy link
Owner

Works here.

$ make html.o
tr -d \\r <style.css | sed 's/\\/\\\\/g;s/"/\\"/g;s/^/"/;s/$/\\n"/' >css.c
g++ -std=gnu++11 -O3 -pipe -Wall -I. -DINSTALL_PREFIX='"/usr/local"' -DPRODUCTION   -c -o html.o html.cpp
$

Maybe the auto-generated file css.c, which is included at that point is corrupt. Please remove it (rm css.c) and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants