Thread start functions and external C linkage (VDR starts it's threads "incorrectly")

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jonas Munsin schrieb:
> Shouldn't a nameless namepsace be used here? gcc 3.4.3 does not like 
> extern "C" static
> at all (error: multiple storage classes in declaration of ...). i.e., in 
> thread.c:
> 
> namespace {
>     extern "C" void *StartThread(cThread *Thread)
>     {
>     ....
>     }
> }


Yes, that works, too (except that gcc 2.95 that is still used for linvdr 
doesn't care about namespaces ;) )

Regarding standard C++, I guess the anonymous namespace would be the 
most preferable solution.

Greetings,
Sascha Volkenandt


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux