【发布时间】:2017-09-20 13:11:35
【问题描述】:
我是 wt(Web Toolkit/witty) 的新手。当我尝试执行 hello-world 示例程序 source code 时,出现以下异常“Document root was not set, or was set to empty path. Use --docroot to set the HTML root directory.”我将命令参数设置为“--http-address=0.0.0.0 --http-port=8080 --deploy-path=/hello --docroot=.”。我将参数值捕获为“Arg C = 1 and Arg V = 0000023C3B649E30”请帮忙。
【问题讨论】:
-
欢迎来到 StackOverflow。目前尚不清楚您在问什么。请澄清您的问题。
-
您不能将
.(点)用作文档根。创建一个新目录并将其与--docroot选项一起使用。 -
您的 argc 与您确实在指定参数相矛盾。 Argc=1 表示程序在没有参数的情况下启动。你把论据放在正确的地方了吗?
标签: c++ visual-c++ visual-studio-2012 wt