[chuck-dev] chuck vs. gcc 4.3

Brandon Nickell bbnickell at gmail.com
Tue Jul 8 23:40:34 EDT 2008


There was a lot of work done on the gcc STL implementation in 4.3 --
the problem is that evidently <algorithm> was pulled in anyway without
explicitly including it by including algorithmfwd.h and the result was
pulling in half the universe prior to 4.3. The bug relevant to gcc
introducing this error message is here:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34105

Thanks,
Brandon Nickell

On Tue, Jul 8, 2008 at 8:27 AM, Fernando Lopez-Lezcano
<nando at ccrma.stanford.edu> wrote:
> I'm trying to build chuck under gcc 4.3 and failing...
>
> So, I thought, it must be an easy fix :-)
> After the first error this fixes it:
>
> ----
> --- chuck_vm.cpp~       2007-10-03 22:37:33.000000000 -0400
> +++ chuck_vm.cpp        2008-07-08 09:57:35.044314579 -0400
> @@ -49,7 +49,7 @@
>   #include <pthread.h>
>  #endif
>
> -
> +#include <algorithm>
>
>
>  //-----------------------------------------------------------------------------
>
> ----
>
> So far so good, and then the second error was defeated by:
>
> ----
> --- ugen_stk.cpp~       2007-10-04 04:44:34.000000000 -0400
> +++ ugen_stk.cpp        2008-07-08 10:03:16.910915822 -0400
> @@ -41,7 +41,7 @@
>  #include <string.h>
>  #include <time.h>
>  #include <float.h>
> -
> +#include <limits.h>
>
>
>
> ----
>
> Yes, very easy, and then the third error (there may be more) was no
> longer easy to fix:
>
> util_opsc.cpp: In member function 'bool
> UDP_Port_Listener::add(UDP_Subscriber*)':
> util_opsc.cpp:1169: error: no matching function for call to
> 'find(__gnu_cxx::__normal_iterator<UDP_Subscriber**,
> std::vector<UDP_Subscriber*, std::allocator<UDP_Subscriber*> > >,
> __gnu_cxx::__normal_iterator<UDP_Subscriber**,
> std::vector<UDP_Subscriber*, std::allocator<UDP_Subscriber*> > >,
> UDP_Subscriber*&)'
> util_opsc.cpp: In member function 'bool
> UDP_Port_Listener::drop(UDP_Subscriber*)':
> util_opsc.cpp:1188: error: no matching function for call to
> 'find(__gnu_cxx::__normal_iterator<UDP_Subscriber**,
> std::vector<UDP_Subscriber*, std::allocator<UDP_Subscriber*> > >,
> __gnu_cxx::__normal_iterator<UDP_Subscriber**,
> std::vector<UDP_Subscriber*, std::allocator<UDP_Subscriber*> > >,
> UDP_Subscriber*&)'
>
> No clue about this whatsoever and I could not get inspiration as I
> usually do from googling it or similar stuff... Must be a type thingy?
>
> I guess programming in c++ is required knowledge :-(
> Any help appreciated!
> -- Fernando
>
>
> _______________________________________________
> chuck-dev mailing list
> chuck-dev at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev
>


More information about the chuck-dev mailing list