fix: 添加 ONNX Runtime 头文件路径和 fstream 头文件
Build and Deploy / build (push) Failing after 2m25s
Build and Deploy / deploy (push) Has been skipped

This commit is contained in:
2026-07-16 22:24:13 +00:00
parent 015b1406e2
commit 145e8c99ba
4 changed files with 7 additions and 5 deletions
+1
View File
@@ -1,3 +1,4 @@
#include <fstream>
#include <onnxruntime_c_api.h>
#include <vector>
#include <string>
+2 -2
View File
@@ -1,8 +1,8 @@
package onnx
/*
#cgo CXXFLAGS: -std=c++17 -I/usr/include/onnxruntime
#cgo linux LDFLAGS: -lonnxruntime -ldl -lstdc++
#cgo CXXFLAGS: -std=c++17 -I/usr/local/onnxruntime/include
#cgo linux LDFLAGS: -L/usr/local/onnxruntime/lib -lonnxruntime -ldl -lstdc++
#cgo darwin LDFLAGS: -lonnxruntime -framework CoreFoundation -lstdc++
#include <stdlib.h>