Getting SMAC projects to build in CW Special Edition

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

Getting SMAC projects to build in CW Special Edition

4,196 Views
AndrewD
Contributor I
Hello all.

Is there a release of SMAC 4.2 that has examples that can compile in CodeWarrior Special edition?  I keep running into the 32 file limit problem. 

I remember that when I was working on my internship last year that I could build the examples, but I think that was SMAC 4.1.

I can't really upgrade to the full edition because this is for my school's Senior Design project and as a lowly student, I can't afford to purchase a license.

Thanks for any help!


Message Edited by AndrewD on 2007-09-17 07:49 PM
Labels (1)
0 Kudos
Reply
7 Replies

1,474 Views
JimDon
Senior Contributor III
Here is a possible work around.

Suppose you have
myfile1.c, myfile2.c, myfile3.c

remove these from the project and create
myfiles.c
In myfiles.c:
#include "myfile1.c"
#include "myfile2.c"
#include "myfile3.c"

Then add myfiles.c to the project.
Also .CMD file and another files in the project count, so you could remove some of those as well.


0 Kudos
Reply

1,474 Views
bigmac
Specialist III
Hello Jim,
 
Would not the #include files need to be part of the project, and therefore within the file count?  Otherwise, the files would not be found by the preprocessor/compiler.  I would suspect that the content of the three files would need to be incorporated into a single file in order to reduce the file count.
 
Andrew, the following thread may be of interest - the 32 file limit can be eliminated with CW V6.0.
 
Regards,
Mac
 


Message Edited by bigmac on 2007-09-18 01:29 PM
0 Kudos
Reply

1,474 Views
AndrewD
Contributor I
This worked.  Thank you very much!
0 Kudos
Reply

1,474 Views
JimDon
Senior Contributor III
Andrew,
For the sake of others reading this thread what worked?

I know for a fact that using includes as I mentioned works because I have done it serveral times.

.c files included in this manner appear to the compiler as though you have combined them into a single file.
If you don't normally do this in your .h files:
#ifdef _MYINCLUDES_H
#define _MYINCLUDES_H
...(stuff to inlcude)
...

#endif
You may have to.

0 Kudos
Reply

1,474 Views
AndrewD
Contributor I
Per the thread that BigMac posted, I copied and pasted this line into my license.dat file for CodeWarrior 5.7 and was able to build the SMAC 4.2 projects.

FEATURE Win32_CWIDE_Unlimited metrowks 5.9 permanent uncounted 8AEDAEE5CC12 VENDOR_STRING="CodeWarrior IDE 4.2 or later, Windows" HOSTID=ANY ck=190
0 Kudos
Reply

1,474 Views
JimDon
Senior Contributor III
cool - thanks.
I didn't know what SMAC 4.2 was so I didn't immediately realize it was CW 6.0.
0 Kudos
Reply

1,474 Views
JimDon
Senior Contributor III
Mac,
Thankfully, no. It seems that only files in the project (i.e added to and visible in the IDE) count.

At least that has been my experience with the HC12 version.
Does it make sense? Not really, but then why should map files and cmd files count?




Message Edited by JimDon on 2007-09-18 08:22 AM
0 Kudos
Reply