Re: problem with Euphoria to C translator on Mac OS 10
- Posted by mattlewis (admin) Jul 07, 2009
- 1065 views
tiger05 said...
I can't get the ecu command to work for any program I try to translate. When I run it on some programs, I get a segmentation fault and on others, I get a bus error. Even a simple program like the code below gives a bus error.
puts(1,"Testing Euphoria\n") print(1,9*2) puts(1,"\n")
Please try building in debug mode. Ideally, build the runtime library first, then translate in debug mode, and link to the debug library. Then, run under gdb, and report where it's failing.
$ cd euphoria/source $ make library EDEBUG=1 $ euc -lib ./eu.a -debug myapp.ex $ gdb myapp (gdb) $ runI don't have a Mac, but this (substitute the proper directories above) should work on all the Unix like systems supported by euphoria
Matt