question about how to add a machine_func to eu ver. 3.11
- Posted by BRyan Aug 30, 2012
- 1466 views
I have added a machine_func to ver. 3.11 The actual function resides in execute.e and has all the necessary constants in the normal places machine.e, etc. The function returns an ATOM. -- global function foo(sequence a, sequence b) -- runs some code here return my_atom end function -- If I translate the code using ( ec.exe -wat eu.ex ) and run the translated interpreter the machine_func works fine with no problems. -- Then I COMPILE the code after editing be_machine.c and I get this error: ---------------------------------------------------------------- compiling the back-end files... linking all the files... Error! E2028: foo_ is an undefined reference file be_machine.obj(C:\1000\SOURCE\be_machine.c): undefined symbol foo_ ---------------------------------------------------------------- It appears that I am not decorating the function properly. How do I indicate to the compiler that the c code is calling a euphoria function in execute.e ?