Moving to command-line compiler

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Moving to command-line compiler

ソリューションへジャンプ
1,236件の閲覧回数
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 解決策
860件の閲覧回数
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 返信
861件の閲覧回数
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 件の賞賛
返信