[CoLoCo] TA SPRING help? [gaming/compiling question]

Andrew keen101 at gmail.com
Thu Oct 2 02:48:02 BST 2008


Yeah, I will keep that in mind for future reference. Thanks

-Andrew

On Wed, Oct 1, 2008 at 4:14 PM, Scott Scriven <ubuntu-us-co at toykeeper.net>wrote:

> * Andrew <keen101 at gmail.com> wrote:
> > anyway, i have made progress. I had to use scons. I've never
> > used it before.
>
> Yeah, scons is one of the more popular alternatives to 'make'.
>
> > but, i got an error. do you know how to fix it?
> >
> > rts/System/AutohostInterface.cpp: In member function 'void
> > AutohostInterface::SendPlayerJoined(unsigned char, const std::string&)
> const':
> > rts/System/AutohostInterface.cpp:81: error: 'strncpy' was not declared in
> this
> > scope
>
> It seems to be using 'strncpy', which is not defined.  This
> generally means an #include file was omitted, which is usually
> easy to fix.  For custom symbols, you could search the source
> tree for its header file, with rgrep.  But this one is provided
> by standard libraries, so we just need to find the right standard
> header to add.
>
> One way is to 'grep strncpy /usr/include/*.h', but I prefer to
> look in the docs.  First, 'apt-get install manpages-dev' to get
> the basic docs for development...  then try 'man strncpy'.
>
> Anyway, it should explain what the function does and which header
> to include.  Then you can probably just add a line to the top of
> the failing source file, such as: #include <string.h>
> Afterward, it should compile, or at least get farther before
> failing again.
>
> Or, you might find that line already exists, and is effectively
> commented out by a false #ifdef or similar preprocessor
> statement.  If so, that probably means your build flags aren't
> completely correct, or that you've found a build bug.
>
> Anyway, I hope this helps next time you run into something
> similar.  :)
>
>
> -- Scott
>
> --
> Ubuntu-us-co mailing list
> Ubuntu-us-co at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-co
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-us-co/attachments/20081001/c53d012b/attachment.htm 


More information about the Ubuntu-us-co mailing list