Re: problem with euc on Mac OS Snow Leopard with 4.0 beta 2

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...
tiger0581 said...

Linking 100% gcc -o ctimer  init-.o ctimer.o main-.o get.o sequence.o sort.o text.o filesys.o dll.o machine.o memory.o types.o 0et.o /Users/rmann/euphoria 

Actually, it looks like the problem is that the linker isn't using the -m32 flag. As a workaround, try the -lflags option:

 $ euc -lflags -m32 app.ex 
I've not tested this myself, but alternatively, you can use the -makefile-full option with euc, and then add the -m32 flag to the linker flags.

Basically, you should see a line that looks something like this in the generated makefile:

LFLAGS = /usr/local/lib/eu.a -ldl -lm 

Add -m32 to this, and it should work.

Matt

Thanks. Using -makefile-full, then adding -m32 to the linker flags allowed me to compile a program.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu