-
Notifications
You must be signed in to change notification settings - Fork 11
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 compiling with GNU Fortran (Rev3, Built by MSYS2 project) 10.1.0 #26
Comments
Thank you for your feedback. We have two separate problems here: First problem: Compiling Second problem: Compiling the using Libdl
Libdl.dlopen("C:\\Users\\user\\.julia\\environmens\\v1.5\\dev\\ODEInterface\\src\\bvp_m_proxy") results in a "The specified procedure could not be found." error. |
as a workaround, would you suggest any particular version of gcc? |
In the automatic Windows tests with AppVeyor I (still) use this |
It's difficult to find the problem. #include <stdio.h>
#include <windows.h>
#include <winnls.h>
int main(void) {
/* char *filename = "dopri5.dll"; */
char *filename = "bvp_m_proxy.dll";
WCHAR *wfilename = NULL;
HANDLE lib=NULL;
printf("Test for %s\n", filename);
size_t len = MultiByteToWideChar(CP_UTF8, 0, filename, -1, NULL, 0);
if (!len) {printf("Error 1\n"); return 1;}
wfilename = (WCHAR*)alloca(len*sizeof(WCHAR));
if (!MultiByteToWideChar(CP_UTF8, 0, filename, -1, wfilename, len)) {
printf("Error 2\n");
return 1;
}
lib = LoadLibraryExW(wfilename, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
printf("lib=%p\n", (void*)lib);
return 0;
} which I compiled and run in the
Have you tested other Msys2-versions? |
yes, I have tested with gfortran 8.3.0 and it works, no problems! |
I still have no success in narrowing down the problem. I've found similar problems (in the past), e.g. https://sourceforge.net/p/mingw/mailman/message/19787051/ where an error in a def-file of mingw caused the same error. Unfortunately I don't know any Windows tools how to check this. |
When building I get the following error:
when calling ODEInterface.loadODESolvers(), the following are not compiled correctly:
colnew_i32, bvpsol, bvp_m_proxy, colnew, bvpsol_i32
If I modify the build.jl build_bvpsol function to include the flag "-std=legacy", the build runs withouth errors.
Now, when calling ODEInterface.loadODESolvers(), all seem to be ok except 'bvp_m_proxy'. The dll is generated in src but for some reason it is not found:
Julia 1.5.0
ODEInterface v0.4.7
GNU Fortran (Rev3, Built by MSYS2 project) 10.1.0
Windows 10
The text was updated successfully, but these errors were encountered: