Closed GoogleCodeExporter closed 9 years ago
by default the compiler supposes the const variable to have only an internal
scope, which means a copy of it is placed in each translation unit, leading to
this problem.
explicitly telling the compiler that it should expect more than one copy around
by using the "extern" keyword seems to work.
I still did not get answer on how to test it, so the only thing I can say is
that this patch makes it compile. I let the developers the burden of the
testing, by lack of any other choice.
Index: tinyDAV/include/tinydav/audio/tdav_speakup_jitterbuffer.h
===================================================================
--- tinyDAV/include/tinydav/audio/tdav_speakup_jitterbuffer.h (revision 867)
+++ tinyDAV/include/tinydav/audio/tdav_speakup_jitterbuffer.h (working copy)
@@ -52,7 +52,7 @@
}
tdav_speakup_jitterbuffer_t;
-const tmedia_jitterbuffer_plugin_def_t *tdav_speakup_jitterbuffer_plugin_def_t;
+extern const tmedia_jitterbuffer_plugin_def_t
*tdav_speakup_jitterbuffer_plugin_def_t;
TDAV_END_DECLS
Original comment by agouaill...@gmail.com
on 9 Apr 2013 at 1:35
alexandres-MacBook-Air:doubango agouaillard$ make
make all-recursive
Making all in tinySAK
make[2]: Nothing to be done for `all'.
Making all in tinyNET
make[2]: Nothing to be done for `all'.
Making all in tinyHTTP
make[2]: Nothing to be done for `all'.
Making all in tinyXCAP
make[2]: Nothing to be done for `all'.
Making all in tinyIPSec
make[2]: Nothing to be done for `all'.
Making all in tinySMS
make[2]: Nothing to be done for `all'.
Making all in tinySIGCOMP
make[2]: Nothing to be done for `all'.
Making all in tinySDP
make[2]: Nothing to be done for `all'.
Making all in tinyMSRP
make[2]: Nothing to be done for `all'.
Making all in tinyMEDIA
make[2]: Nothing to be done for `all'.
Making all in tinyRTP
make[2]: Nothing to be done for `all'.
Making all in tinyDAV
make[2]: Nothing to be done for `all'.
Making all in tinySIP
make[2]: Nothing to be done for `all'.
alexandres-MacBook-Air:doubango agouaillard$
Original comment by agouaill...@gmail.com
on 9 Apr 2013 at 1:35
You're right: I will add "TINYDAV_GEXTERN" (the next commit)
Original comment by boss...@yahoo.fr
on 9 Apr 2013 at 5:13
r870+
Original comment by boss...@yahoo.fr
on 9 Apr 2013 at 11:24
verified
Original comment by agouaill...@gmail.com
on 10 Apr 2013 at 1:40
Original issue reported on code.google.com by
agouaill...@gmail.com
on 6 Apr 2013 at 4:42