Moving to command-line compiler

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Moving to command-line compiler

跳至解决方案
889 次查看
MattReed
Contributor I

The project (so far) is working well in the IDE, but we have a corporate requirement that the project be able to compile from a batch-file.  So, I have to get the command-line compiler to compile the project.

 

This is a Zigbee project, so we are including the Freescale Zigbee files. 

 

My approach is to create a file-list from the project's XML file, then feed all these files into the command-line compiler with the -M option to create a makefile.  I can then modify the makefile as needed to get the thing to compile.

 

Currently having a problem with a pragma statement.  The macphy.h file gives this error:

#pragma MESSAGE DISABLE C1420
Error:                        ^^^^^
#   end of line expected

This error is repeated on several other files.  Anyone have any ideas?

 

Thanks!

-Matt

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
513 次查看
CrasyCat
Specialist III

Hello

 

Here I would suggest you to generate the preprocessor listing for the source file you are building and check it.

I suspect the issue arises a couple of lines earlier.

 

Use option -Lp to generate the pre-processor listing.

 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
1 回复
514 次查看
CrasyCat
Specialist III

Hello

 

Here I would suggest you to generate the preprocessor listing for the source file you are building and check it.

I suspect the issue arises a couple of lines earlier.

 

Use option -Lp to generate the pre-processor listing.

 

CrasyCat

0 项奖励
回复