Expecting macro or rule defn, found neither

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:


--------------------Configuration: Hello_World - Win32 Wismo_Target--------

Software Generation Toolkit

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.


Libraries available in out directory :


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:


#------------------------------------------------------------------------------

Include this file only one time

#------------------------------------------------------------------------------
ifndef MAKEFILE_INCLUDED
MAKEFILE_INCLUDED = YES

#------------------------------------------------------------------------------

Library module (lib) or Binary module (bin)

#------------------------------------------------------------------------------
PROCESS = bin

#------------------------------------------------------------------------------

Set the used Api for Open-AT : ADL or OAT (standard Open-AT API)

#------------------------------------------------------------------------------
API = ADL

#------------------------------------------------------------------------------

Use the old task interface (ON/OFF)

#------------------------------------------------------------------------------
USE_OLD_TASK_INTERFACE = {USE_OLD_TASK}

#------------------------------------------------------------------------------

Set GCC Call Stack factor (to increase Call Stack size automatically for GCC compiler)

#------------------------------------------------------------------------------
GCC_STACK_SIZE_FACTOR =

#------------------------------------------------------------------------------

List of source files of the library or executable to generate

#------------------------------------------------------------------------------
SRC_C_LIST =
appli.c \

#------------------------------------------------------------------------------

List of assembler files of the library or executable to generate

#------------------------------------------------------------------------------
SRC_ASM_LIST = \

#------------------------------------------------------------------------------

List of objects real names to use for making binary file

#------------------------------------------------------------------------------
EXTERNAL_OBJ_LIST = \

#------------------------------------------------------------------------------

List of objects prefixed names to use for making binary file

#------------------------------------------------------------------------------
PREFIXED_OBJ_LIST = \

#------------------------------------------------------------------------------

List of libraries real names to use for making binary file

#------------------------------------------------------------------------------
EXTERNAL_LIB_LIST = \

#------------------------------------------------------------------------------

List of libraries prefixed names to use for making binary file

#------------------------------------------------------------------------------
PREFIXED_LIB_LIST = \

#------------------------------------------------------------------------------

Add-on used library list (as TCP/IP library, for example)

#------------------------------------------------------------------------------
OTHER_LIB_LIST = \

#------------------------------------------------------------------------------

Compilation flags

#------------------------------------------------------------------------------
PP_OPT_COMMON =
OAT_API_VERSION=400 \

#------------------------------------------------------------------------------

Path for code C files

#------------------------------------------------------------------------------
PATH_C =
…/…/src \

#------------------------------------------------------------------------------

Path for code ASM files

#------------------------------------------------------------------------------
PATH_ASM = $(PATH_C)

#------------------------------------------------------------------------------

Path for include C files

#------------------------------------------------------------------------------
PATH_H =
…/…/inc
…/…/itf \

#------------------------------------------------------------------------------

Path for include ASM files

#------------------------------------------------------------------------------
PATH_I = $(PATH_H)

#------------------------------------------------------------------------------

Absolute paths for Object files

#------------------------------------------------------------------------------
PATH_EXT_OBJ = \

#------------------------------------------------------------------------------

Root paths for Object files

#------------------------------------------------------------------------------
PATH_ROOT_OBJ = \

#------------------------------------------------------------------------------

Absolute paths for Library files

#------------------------------------------------------------------------------
PATH_EXT_LIB = \

#------------------------------------------------------------------------------

Root paths for Library files

#------------------------------------------------------------------------------
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