fix: 添加 ONNX Runtime 头文件路径和 fstream 头文件
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include <fstream>
|
||||
#include <onnxruntime_c_api.h>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
+2
-2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user