[Toybox] Build issue for OPTSTR_<cmd>

Isaac ibid.ag at gmail.com
Tue Aug 13 21:00:44 PDT 2013


On Wed, Aug 14, 2013 at 12:06:42PM +0900, Ashwini Sharma wrote:
> Hi Rob,
> 
> The build fails for OPTSTR_<cmd> usage.
> 
> Testcase: select grep in config for build.
> 
> Error:
> In file included from main.c:16:0:
> generated/newtoys.h:27:1: error: 'OPTSTR_grep' undeclared here (not in a
> function)
> make: *** [toybox] Error 1
> 
> I guess you missed to include __generated/oldtoys.h__ in __toys.h__

+#include "generated/oldtoys.h"
#include "generated/newtoys.h"

in main.c works here.
> 
> Thanks,
> Ashwini

> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net




More information about the Toybox mailing list