-
Notifications
You must be signed in to change notification settings - Fork 416
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
编译运行错误 #66
Comments
D:\project\src\engineercms>go run main.go engineercms/vendor/github.com/3xxx/engineercms/modelsvendor\github.com\3xxx\engineercms\models\PayModel.go:40:15: undefined: UserTemple |
很多字段都找不到 |
注释掉这几行试试。 |
Comment out the code and a bunch of errors |
D:\project\src\engineercms>go run main.go engineercms/vendor/github.com/3xxx/engineercms/modelsvendor\github.com\3xxx\engineercms\models\AdminModel.go:208:19: undefined: AnsysApdl D:\project\src\engineercms>go run main.go engineercms/vendor/github.com/3xxx/engineercms/modelsvendor\github.com\3xxx\engineercms\models\PayModel.go:40:15: undefined: UserTemple D:\project\src\engineercms>go run main.go engineercms/vendor/github.com/3xxx/engineercms/controllersvendor\github.com\3xxx\engineercms\controllers\attachment.go:2173:18: undefined: models.GetHistory D:\project\src\engineercms>go run main.go engineercms/vendor/github.com/3xxx/engineercms/controllersvendor\github.com\3xxx\engineercms\controllers\attachment.go:2173:18: undefined: models.GetHistory D:\project\src\engineercms> |
解决了吗 github.com/3xxx/engineercms/modelsmodels\PassExcelModel.go:42:27: undefined: Select2 |
没有,以致于萌生自己写一个简单的文件阅读服务器
…------------------ 原始邮件 ------------------
发件人: "3xxx/engineercms" ***@***.***>;
发送时间: 2023年7月6日(星期四) 中午11:02
***@***.***>;
***@***.******@***.***>;
主题: Re: [3xxx/engineercms] 编译运行错误 (Issue #66)
解决了吗
C:\Users\renhang\go\src\engineercms>go run main.go
github.com/3xxx/engineercms/models
models\PassExcelModel.go:42:27: undefined: Select2
models\PassExcelModel.go:43:25: undefined: TextAreal
models\PayModel.go:40:15: undefined: UserTemple
models\AdminModel.go:215:19: undefined: AnsysApdl
models\AdminModel.go:215:33: undefined: AnsysInputs
models\AdminModel.go:215:49: undefined: AnsysOutputs
models\AdminModel.go:215:66: undefined: AnsysHistory
models\AdminModel.go:215:83: undefined: AnsysHistoryInputValue
models\AdminModel.go:215:110: undefined: AnsysHistoryOutputValue
models\AdminModel.go:215:138: undefined: AnsysArticle
models\AdminModel.go:215:138: too many errors
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
D:\project\src\engineercms>set GO111MODULE=on
D:\project\src\engineercms>go run main.go
go: downloading github.com/beego/beego/v2 v2.0.1
go: downloading github.com/beego/i18n v0.0.0-20161101132742-e9308947f407
go: downloading github.com/kardianos/service v1.2.0
go: downloading github.com/PuerkitoBio/goquery v1.8.0
go: downloading github.com/lib/pq v1.10.4
go: downloading github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading gopkg.in/ldap.v2 v2.5.1
go: downloading gorm.io/driver/sqlite v1.2.6
go: downloading gorm.io/gorm v1.22.4
go: downloading xorm.io/xorm v1.2.5
go: downloading github.com/3xxx/flow v0.9.0
go: downloading github.com/boombuler/barcode v1.0.1
go: downloading github.com/casbin/casbin/v2 v2.40.6
go: downloading github.com/casbin/xorm-adapter/v2 v2.4.0
go: downloading github.com/casbin/beego-orm-adapter/v3 v3.0.0
go: downloading github.com/elastic/go-elasticsearch/v8 v8.0.0-alpha
go: downloading github.com/golang-jwt/jwt v3.2.2+incompatible
go: downloading github.com/google/go-tika v0.2.0
go: downloading github.com/holys/initials-avatar v0.0.0-20180809162153-a82edcad3408
go: downloading github.com/lifei6671/gocaptcha v0.2.0
go: downloading github.com/pdfcpu/pdfcpu v0.3.13
go: downloading github.com/casbin/casbin v1.7.0
go: downloading github.com/unidoc/unioffice v1.16.0
go: downloading github.com/howeyc/fsnotify v0.9.0
go: downloading github.com/Unknwon/goconfig v1.0.0
go: downloading golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
go: downloading github.com/jinzhu/inflection v1.0.0
go: downloading github.com/jinzhu/now v1.1.3
go: downloading golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58
go: downloading github.com/andybalholm/cascadia v1.3.1
go: downloading golang.org/x/net v0.0.0-20211216030914-fe4d6282115f
go: downloading gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d
go: downloading xorm.io/builder v0.3.9
go: downloading github.com/bradfitz/gomemcache v0.0.0-20180710155616-bc664df96737
go: downloading github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
go: downloading golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb
go: downloading github.com/mitchellh/mapstructure v1.3.3
go: downloading github.com/elastic/elastic-transport-go/v8 v8.0.0-alpha
go: downloading github.com/syndtr/goleveldb v1.0.0
go: downloading github.com/dchest/lru v0.0.0-20151022103600-d8fd1e40a385
go: downloading stathat.com/c/consistent v1.0.0
go: downloading github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db
go: downloading golang.org/x/mod v0.3.0
go: downloading github.com/hhrutter/tiff v0.0.0-20190829141212-736cae8d0bc7
go: downloading github.com/hhrutter/lzw v0.0.0-20190829144645-6f07a24e8650
github.com/mattn/go-sqlite3
sqlite3-binding.c: In function 'sqlite3SelectNew':
sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
128049 | return pNew;
| ^~~~
sqlite3-binding.c:128009:10: note: declared here
128009 | Select standin;
| ^~~~~~~
github.com/3xxx/engineercms/models
models\PayModel.go:40:15: undefined: UserTemple
models\PayModel.go:74:16: undefined: ExcelTemple
models\AdminModel.go:208:19: undefined: AnsysApdl
models\AdminModel.go:208:33: undefined: AnsysInputs
models\AdminModel.go:208:49: undefined: AnsysOutputs
models\AdminModel.go:208:66: undefined: AnsysHistory
models\AdminModel.go:208:83: undefined: AnsysHistoryInputValue
models\AdminModel.go:208:110: undefined: AnsysHistoryOutputValue
models\AdminModel.go:208:138: undefined: AnsysArticle
models\AdminModel.go:209:19: undefined: ExcelTemple
models\AdminModel.go:209:19: too many errors
D:\project\src\engineercms>go install github.com/mattn/go-sqlite3
github.com/mattn/go-sqlite3
sqlite3-binding.c: In function 'sqlite3SelectNew':
sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
128049 | return pNew;
| ^~~~
sqlite3-binding.c:128009:10: note: declared here
128009 | Select standin;
| ^~~~~~~
The text was updated successfully, but these errors were encountered: