Skip to main content

Thread: Makfile error


what wrong makefile? took word for, symbol symbol froma makefile tutorial found on web.

file is

code:
cc=pgcpp cflags=-c -wall ldflags= sources=main.cpp hello.cpp factorial.cpp objects=$sources:cpp=.o) executable=hello   all: $(sources) $(executable)   $(executable):    $(objects)    $(cc) $(ldflags)  $(objects)  -o $@   .cpp.o:    $(cc) $(cflags)   $< -o $@
output

makefile:10: *** target pattern contains no `%'. stop

line 10 starts $(exec...)

appreaciated. in advance.

newport_j

quote posted newport_j view post
what wrong makefile? took word for, symbol symbol froma makefile tutorial found on web.

file is

code:
objects=$sources:cpp=.o)
your objects line should be:
code:
objects=$(sources:.cpp=.o)


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Makfile error


Ubuntu

Comments

Popular posts from this blog

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support