Moving to command-line compiler

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Moving to command-line compiler

Jump to solution
804 Views
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

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
428 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
429 Views
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 Kudos
Reply