Skip to content

Posts from the ‘Misc Errors’ Category

19
Jul

Error: Makefile:: *** missing separator. Stop.

If you get the following error when trying to compile an app using a Makefile:

Makefile:14: *** missing separator.  Stop.

Then the problem is you need two tabs in front of $(CC) line (see the following example):

BINDIR=${prefix}/bin
MANDIR=${prefix}/man
man1dir=$(MANDIR)/man1
 
#CC=clang++ -g
CC=clang++ -g -O3 -mavx
CFLAGS=-pipe -Wall -O
LDFLAGS=-lSDL2main -lSDL2 -I/opt/local/include -L/opt/local/lib
 
all: a.o
 
a.o: main.cpp
	$(CC) $(LDFLAGS) main.cpp -fPIC -o test_app

Note that you will need two tabs, not one, not spaces. On some OSes it might work with one tab.

11
Jul

bjam: command not found

If you get his error

bjam: command not found

when trying to run bjam utility from boost that means you do not have it installed. Install it using mac ports with the following command (of course you must have mac ports installed on your OSX system):

sudo port install boost-jam