Closed porky11 closed 7 years ago
On Sun, Sep 25, 2016 at 03:47:21AM -0700, Fabio Krapohl wrote:
The module containing this functions (module.dt) compiles correctly, but the file importing it generates these (main.dt) errors: libmodule-nomacros.so: undefined reference to
_ZN3std6macros7copy$2dtoEPZ5DNodePZ5DNode' libmodule-nomacros.so: undefined reference to
_ZN3std6macros4copyEPZ8MContextbPZ5DNode' libmodule-nomacros.so: undefined reference to_ZN3std6macros4mnfvEPZ8MContextPc' libmodule-nomacros.so: undefined reference to
report_2D_error'
Marking the function as compile-time only, via the 'cto' attribute, should fix this problem. See https://github.com/tomhrr/dale/blob/master/doc/1-7-macros.md#functions-used-by-macros for more details.
I defined this function:
which depends on this macro:
The module containing this functions (module.dt) compiles correctly, but the file importing it generates these (main.dt) errors: libmodule-nomacros.so: undefined reference to
_ZN3std6macros7copy$2dtoEPZ5DNodePZ5DNode' libmodule-nomacros.so: undefined reference to
_ZN3std6macros4copyEPZ8MContextbPZ5DNode' libmodule-nomacros.so: undefined reference to_ZN3std6macros4mnfvEPZ8MContextPc' libmodule-nomacros.so: undefined reference to
report_2D_error'