You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# nim cpp interop2.nim
nimcache\interop2_d\@minterop2.nim.cpp: In function 'void NimMainModule()':
nimcache\interop2_d\@minterop2.nim.cpp:147:29: error: request for member 'Dl_436207617_' in '3', which is of non-class type 'int'
147 | int T2_ = ((int) 3).Dl_436207617_(((int) 7));
| ^~~~~~~~~~~~~
Expected Output
Should compile as the same code works if C is used instead of C++.
Example
Current Output
Expected Output
Should compile as the same code works if C is used instead of C++.
Additional Information
importcpp
does not work with C++ free functions (works with C++ methods) #12150 is related, but different because there seems to be no workaround in the dynamic linking case.The text was updated successfully, but these errors were encountered: