Hello
1- Cannot find Header file
Where is the header file located on your disk?
Is it located in the same folder as the source file?
If this is the case, you need to add the path to your .h file to the User path.
This is done as follows:
- Click right on the project name in the CodeWarrior Project view
- Select Properties.
- Switch to C/C++ Build > Settings > ColdFire Compiler > Input page.
- Click on the first icon to the left after User Path.
- Specify the path to your .h file. If it is located in your project's Sources sub-directory, specify "${ProjDirPath}\Sources" there.
- Click on OK to save the changes
2- Error 'expression syntax error'
For this one it might be interesting to look at the preprocessing listing file.
- Open the source file in an edit window
- Click right inside of the window
- Select Preprocess. A new windows opens displaying the preprocessor listing.
- Check content of ths file. All macros and header files are expanded here so it might be easier to catch what is not working.
CrasyCat