Re: problem with Euphoria to C translator on Mac OS 10

new topic     » goto parent     » topic index » view thread      » older message » newer message
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) $ run 
I don't have a Mac, but this (substitute the proper directories above) should work on all the Unix like systems supported by euphoriayou'll need to run the configure script in the source dir if you haven't already. The runtime library doesn't require any translation.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu