microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
13.93k stars 2.81k forks source link

header files path not recognized or unable to read header file #21338

Open wtfkedar opened 1 month ago

wtfkedar commented 1 month ago

Describe the issue

am getting error and although I've included the correct path of header file in Cmake and task.json its giving me error like

cannot open source file "onnxruntime/core/session/onnxruntime_cxx_api.h"

include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:....\main.cpp).

Screenshot 2024-07-12 214753

To reproduce

...

Urgency

yes this issue is very urgent to get resolve

Platform

Windows

OS Version

11

ONNX Runtime Installation

Released Package

ONNX Runtime API

C++

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

mszhanyi commented 1 month ago

There's a simple CMakeLists.txt example for your reference. https://github.com/microsoft/onnxruntime-inference-examples/blob/6ab3188f5c5ef2df81f598c21f91dc272c5e4556/c_cxx/customop/CMakeLists.txt

github-actions[bot] commented 5 days ago

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.