Ahoj,
netusite, kde by mohla chyba v tomhle makefile?
CC = g++
CFLAGS = -Wall -pedantic -ansi -O0 -ggdb
OBJ = program.o function.o
program : $(OBJ)
$(CC) $(CFLAGS) $(OBJ) -o program
program.o : function.h program.cpp
$(CC) $(CFLAGS) -c program.cpp
function.o : function.h function.cpp
$(CC) $(CFLAGS) -c function.cpp
program.cpp ma #include "function.h"
function.cpp ma #include "function.h"
"Preklad" make konci chybou: Line 7: Unexpected end of line seen.
Dekuji