-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
error: unknown type name '_Frees_ptr_opt_' #1175
Comments
What's your gcc version? Officially we only support gcc (5.4) on Ubuntu, vs on Windows and apple clang on Mac. |
Oh, I get it. We do never tested the code with MinGW, and we don't have any plan in the near future to support it. I can send a PR to fix this, would you help me test it? (you need to compile onnxruntime from source code). |
I got this error as well. If you include |
I tried to fix it, but it's not easy. older version gcc (like 5.4) doesn't support calling conversion for lambda expressions. It's a problem for 32 bits program and gcc. |
Hi @faxu, this is a new feature request. @ArekMC is asking for MinGW and gcc support on Windows for the C API. Currently, we are assume the only compiler we support on Windows is the Visual Studio 2017. see: https://github.com/microsoft/onnxruntime/blob/master/BUILD.md#supported-dev-environments . |
We've no plans to provide official support for MinGW at this time. We do encourage contributions, however, please note that since we won't be supporting it officially, it is subject to break in the future. |
Closing this as per previous comment. |
Did you use mingw to compile successfully? |
Hi Is there any support for MinGW for windows ? any hope ? O just we should stop dreaming ? |
It's hard to use MinGW itself. One needs to get all dependant libraries of MinGW version also and this is hard work. But there is an environment called MSYS2. Its Archlinux based package (pacman) manager has all required libraries. Theoretically by running Linux script it must be built successfully, but in practice when I run the following script:
it outputs:
Can anyone help with this? I think it's possible to compile under MinGW without much effort by using MSYS2. |
The SAL2 macros are not always available there ### Description Make SAL2 macros only available on MSVC. ### Motivation and Context #1175
The SAL2 macros are not always available there ### Description Make SAL2 macros only available on MSVC. ### Motivation and Context microsoft#1175
The SAL2 macros are not always available there ### Description Make SAL2 macros only available on MSVC. ### Motivation and Context #1175
Describe the bug
I am trying to include onnxruntime into a c-application for win 10. For that I use the precompiled binaries here. Compiling of my program stops with
error: unknown type name '_Frees_ptr_opt_'
. Google can't help.I added my gcc command below. Did I miss sth? Thanks in advance.
System information
To Reproduce
gcc -L"./" -lonnxruntime -o onnxdemo onnxdemo.c
onnxdemo.c
The text was updated successfully, but these errors were encountered: