Ubuntu: Position Of -lm
Ubuntu: Position Of -lm
This is a recapitulation of my "struggle" to understand why (on Ubuntu) the make-process was failing, while "making" this simple C program..
Can you spot the error in this Makefile:
--------
EXE = morse2ascii
CFLAGS += -O2 -s
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
LIBS = -lm
all:
$(CC) $(CFLAGS) -c morse2ascii.c
$(CC) $(CFLAGS) -c resample2.c
$(CC) $(CFLAGS) -o $(EXE) $(LIBS) morse2ascii.o resample2.o
install:
install -m 755 -d $(BINDIR)
install -m 755 $(EXE) $(BINDIR)/$(EXE)
.PHONY:
install
--------
This is part of my self re-edumacation to Linux (Ubuntu in particular) and its tools and processes and capabilities.
Disclaimer: This episode is neither a promotion nor a recommendation any product or service, but does reflect my personal experiences.
Disclaimer: This episode is presented with ABSOLUTELY NO WARRANTY WHATSOEVER.
Remember: you are listening to an idiot running his mouth.
Date: 18 APRIL 2020
[vokoscreen x265 ffmpeg irfanview]
Other Videos By SteveAB4EL
2020-05-02 | Classic Upload Extra Nag! |
2020-05-02 | Mowing The Grade 20200501 |
2020-05-01 | Mowing The Grade 4X-Speed |
2020-04-30 | Opening IRS Notice 1444 |
2020-04-29 | Brown Mushrooms 20200429 |
2020-04-28 | A Little Each Day 20200428 |
2020-04-27 | Aphid Skyscraper 20200422 |
2020-04-27 | Flip Phone: Lost And Recovered |
2020-04-25 | FL QSO Party 2020 |
2020-04-24 | Snowberry Clearwing Moth |
2020-04-24 | Ubuntu: Position Of -lm |
2020-04-23 | Collision Cleanup 20200421 |
2020-04-23 | MI QSO Party 2020 |
2020-04-22 | WebCam Prices Are Crazy! |
2020-04-22 | DX QSO: PD9DX - Netherlands |
2020-04-21 | Intensive Paving 20200421 |
2020-04-20 | It Is Still There! 20200420 |
2020-04-19 | Eastern Tiger Swallowtail |
2020-04-19 | Classic Upload Mess 20200419 |
2020-04-18 | Spring Thistles 20200411 |
2020-04-17 | The New Shipping Targets |