Hi,
can anybody help me with this message?
“make.exe: …/…/Hello_World.mak: line 4: Error – Expecting macro or rule defn, found neither”
I am trying to build hello world sample project for target mode in visual C++.
Hi,
can anybody help me with this message?
“make.exe: …/…/Hello_World.mak: line 4: Error – Expecting macro or rule defn, found neither”
I am trying to build hello world sample project for target mode in visual C++.
Hi,
could you share with us which version of OpenAT you are using?
Also, how does this line look like?
Best Regards,
Jan
Hi,
thanks for your interest.
The version of openAT is 4.00.b04. The same project works fine in remote mode, but when I am trying to build it in target mode I get the following output at the build window:
SGT_VER = v1.2.11
SGT_DIR = /cygdrive/C/OpenAT/Tools/SGT/v1.2.11
Scripts path for SGT :
/cygdrive/C/OpenAT/Tools/SGT/v1.2.11/script_sgt
Type help_sgt for a list of SGT commands
/cygdrive/c/ct51
Check environment settings…
Launch a full library or binary process
make.exe: …/…/Hello_World.mak: line 4: Error – Expecting macro or rule defn, found neither
Find errors occurred when using SGT
Analyze errors in Log files
Analyze errors in tmp files if they exists.
End process.
Hello_World - 1 error(s), 0 warning(s)
If I try to compile only the “Hello_World.c” file I am getting a message that “no compile tool is accosiated with the file extension”
Any suggestions?
Best Regards,
Ioannis
Hi Ioannis,
It is quite normal, that you can’t build single files. Even if they would compile separately, you wouldn’t have a downloadable binary…
Unfortunatly, I haven’t worked with OpenAT 4 yet, so I didn’t come across this problem… Maybe somebody else here has?
Could you check for the file Hello_World.mak and tell us what is written in line 4? Maybe this helps to find out what the problem is…
Best Regards,
Jan
Hi Jan,
I have deleted the Hello_World.mak file but here is another mak file with the same problem:
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
ifndef MAKEFILE_INCLUDED
MAKEFILE_INCLUDED = YES
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
PROCESS = bin
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
API = ADL
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
USE_OLD_TASK_INTERFACE = {USE_OLD_TASK}
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
GCC_STACK_SIZE_FACTOR =
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
SRC_C_LIST =
appli.c \
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
SRC_ASM_LIST = \
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
EXTERNAL_OBJ_LIST = \
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
PREFIXED_OBJ_LIST = \
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
EXTERNAL_LIB_LIST = \
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
PREFIXED_LIB_LIST = \
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
OTHER_LIB_LIST = \
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
PP_OPT_COMMON =
OAT_API_VERSION=400 \
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
PATH_C =
…/…/src \
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
PATH_ASM = $(PATH_C)
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
PATH_H =
…/…/inc
…/…/itf \
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
PATH_I = $(PATH_H)
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
PATH_EXT_OBJ = \
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
PATH_ROOT_OBJ = \
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
PATH_EXT_LIB = \
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
PATH_ROOT_LIB = \
endif
The line 4 is: ifndef MAKEFILE_INCLUDED
Regards,
Ioannis
Oh! That looks OK to me…
I have no idea why it doesn’t do the trick…
Best Regards,
Jan
Hi Jan,
Probably, I will ask wavecom directly.
Thanks anyway.
Regards,
Ioannis