Jump to content
OMRON Forums

C App Names can cause "target pattern contains no `%'" error


daves

Recommended Posts

There is an annoying bug in the generation of make files which could lead to some head scratching. I will detail it here to help anyone who gets stumped by the error message, and add a bug entry:

 

Adding a c app where the name starts with an existing c app name corrupts the make file of the existing app.

 

Create a new project. Build.

 

Look at "C Language\Background Programs\capp1\capp1_debug.mak"

 

-Wl,--wrap,munmap \
-Wl,--wrap,select

RM = rm -f
SRCS = \
capp1.c
OBJS = $(SRCS:.c=.o)
PROG = "../../../Bin/Debug/capp1.out"
export CROSS_COMPILE=ppc_4xxFP-
export ARCH=powerpc

 

Add a new Background C Application called capp10. Build. There will be an error

"capp1_debug.mak:156: *** target pattern contains no `%'. Stop."

 

Now look again at "C Language\Background Programs\capp1\capp1_debug.mak"

 

-Wl,--wrap,munmap \
-Wl,--wrap,select

RM = rm -f
SRCS = \
C:/ABD/PowerPMAC/SPMM/PowerPmac3/PowerPmac3/C Language/Background Programs/capp10/capp10.c\
capp1.c
OBJS = $(SRCS:.c=.o)
PROG = "../../../Bin/Debug/capp1.out"
export CROSS_COMPILE=ppc_4xxFP-
export ARCH=powerpc

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Guest
This topic is now closed to further replies.

×
×
  • Create New...