zlgopen / awtk-restful-httpd

a simple RESTful HTTP Server for embedded system
7 stars 5 forks source link

scons在powershell上会编译报错 #3

Open Tracker647 opened 4 months ago

Tracker647 commented 4 months ago

报错:D:/Devtools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find /DEF:src/httpd.def: Invalid argument

原因是gcc不认识' /DEF:"src/httpd.def" ',需要把src文件夹下Sconstruct的

EXPORT_DEF='' if OS_NAME == 'Windows': EXPORT_DEF = ' /DEF:"src/httpd.def" ' 改为

EXPORT_DEF='' if OS_NAME == 'Windows': EXPORT_DEF = ' "src/httpd.def" ' 这个在README上麻烦提醒一下,否则用gcc的用户容易踩坑。

xianjimli commented 4 months ago

谢谢