First up sorry if I am missing something obvious but I am unable to compile the very latest revision 802. Not really had much troubles before. The process falls over when it comes to the templates and I end up with the an error message for each of the templates along the lines of:
templates.cpp:45:41: error: 'STR_T_S_4CHAN' was not declared in this scope
Compile still fails even with NO Templates in the MAKEFILE
Any help would be greatly appreciated
Thanks
Can't compile Rev 802, Error with Templates
- MikeB
- 9x Developer
- Posts: 18010
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Can't compile Rev 802, Error with Templates
Not sure why it fails with NO templates selected.
What command line are you using to MAKE?
Rev 802 is a source file only release, no hex files and, as you have found, there are slight problems with it.
To get templates.cpp to compile add
#include "language.h"
after
#include "templates.h"
I'm very close to putting up r803 which is a full release with hex files.
Release contents are detailed here: http://openrcforums.com/forum/viewtopic ... 810#p57440.
Mike.
What command line are you using to MAKE?
Rev 802 is a source file only release, no hex files and, as you have found, there are slight problems with it.
To get templates.cpp to compile add
#include "language.h"
after
#include "templates.h"
I'm very close to putting up r803 which is a full release with hex files.
Release contents are detailed here: http://openrcforums.com/forum/viewtopic ... 810#p57440.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Can't compile Rev 802, Error with Templates
Hi Mike Thanks for the quick reply. To compile I have a .bat file (compile.bat) with simply
make -f makefile
The makefile is edited such that
HELI = YES
TEMPLATES = NO
NOPOTSCROLL =
PHASES =
N2F = NO
Thing is I want the templates normally I only tried to leave them out to see if I could get the compiled hex file. I normally have the makefile as
HELI = NO
TEMPLATES = YES
I added the #include "templates.h" line and everything worked from command line with " make" and "make -f makefile"
Thank you again for your quick reply and problem solving
Cheers
Kevin
make -f makefile
The makefile is edited such that
HELI = YES
TEMPLATES = NO
NOPOTSCROLL =
PHASES =
N2F = NO
Thing is I want the templates normally I only tried to leave them out to see if I could get the compiled hex file. I normally have the makefile as
HELI = NO
TEMPLATES = YES
I added the #include "templates.h" line and everything worked from command line with " make" and "make -f makefile"
Thank you again for your quick reply and problem solving
Cheers
Kevin