Ascii-fluid-simulation-deobfuscated icon indicating copy to clipboard operation
Ascii-fluid-simulation-deobfuscated copied to clipboard

Compile issue

Open H1N1-dev opened this issue 4 years ago • 0 comments
trafficstars

If i use this command: gcc asciiFluidSimulation.c -o asciiFluidSimulation, then compiler raise error like:

/usr/bin/ld: /tmp/ccqo7MZU.o: in function «main»: asciiFluidSimulation.c:(.text+0x367): undefined reference to «cabs» /usr/bin/ld: asciiFluidSimulation.c:(.text+0x3c0): undefined reference to «floor» /usr/bin/ld: asciiFluidSimulation.c:(.text+0x5e2): undefined reference to «cabs» /usr/bin/ld: asciiFluidSimulation.c:(.text+0x63b): undefined reference to «floor» /usr/bin/ld: asciiFluidSimulation.c:(.text+0xa4a): undefined reference to «cabs»

But, if i add -lm to command, then program compile without errors. gcc asciiFluidSimulation.c -lm -o asciiFluidSimulation

H1N1-dev avatar Nov 09 '21 13:11 H1N1-dev