wlav / cppyy

Other
387 stars 39 forks source link

ImportError: Failed to load header file #182

Open NiKeYiGuN opened 11 months ago

NiKeYiGuN commented 11 months ago

ImportError: Failed to load header file "C:\GIT\mymeep\libmeep/src/mympi.cpp" In file included from input_line_24:1: C:\GIT\mymeep\libmeep/src/mympi.cpp:266:24: error: variable has incomplete type 'struct timeval' struct timeval tv; ^ C:\GIT\mymeep\libmeep/src/mympi.cpp:266:16: note: forward declaration of 'timeval' struct timeval tv;

I successfully called my dll on ubuntu by cppyy,but I build my dll by mingw64 on win11 called faild. timeval Declared in: _timeval.h(mingw64 directory),May I ask what caused this? Differences between Cling and GCC (Mingw64)? image

NiKeYiGuN commented 11 months ago

image