JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

Go - ERROR: # command-line-arguments undefined

发布时间 2023-09-08 23:36:37作者: ZhangZhihuiAAA

zzh@ZZHPC:/zdata/MyPrograms/Go/aaa/Ch05/05_04$ go run httpd.go
# command-line-arguments
./httpd.go:15:9: undefined: DB
./httpd.go:58:16: undefined: NewDB
zzh@ZZHPC:/zdata/MyPrograms/Go/aaa/Ch05/05_04$ go run *.go

 

Two files contain "package main", one file can't call the other file's things. Must run *.go.

    本栏目推荐文章
  • A connection was successfully established with the server but then an error
  • vscode错误:Unable to connect to VS Code server: Error in request.
  • 【解决方案】Error running,Command line is too long
  • fish和pacman:“error: Unable to read input file: 是一个目录”报错的处理
  • ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password'
  • mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
  • "nginx.conf" E514 : write error (file system full?)
  • Flutter 项目运行到ios模拟器报错 : Error (Xcode): SDK does not contain 'libarclite'
  • c++编译OpenSceneGraph-3.4 出现 error: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
  • 【问题记录】【Fastjson】Fastjson 反序列化失败,syntax error, position at 0, name value
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们