Re: BROKE AGAIN euc on UBUNTU 20.04 LTS

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

I've read what I could find, and I haven't found a proposed solution that I understand how to implement. What does "link with -lm" mean? And how to do it?

libm is the math library for libc. The interpreter is already linked against that and the translator links your app against libm as well.

When I look at libm with objdump or nm, it looks like those symbols are present, but the linker still says they're not. I'm unsure of why.

irv said...

I haven't compiled a program in a long time. Finding the cause of the seg-fault isn't something that interests me very much, since I discovered that binding vs. compiling shows very little difference even on a lowly Raspberry Pi 3.

Compiled version - load and display window and controls, and 2 files, ready for input - .6049 sec Interpreted version- .6845 sec Bound version - .6197 sec.

I don't think 8/100ths of a second is going to make a lot of difference :)

Yeah that's a pretty insignificant difference.

I think translating is only really necessary when A) there's a speed gain to be had, or B) you need to something advanced like linking static resources (i.e. adding an icon on Windows).

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu