Anonymous namespaces are given an auto-generated name, but currently this isn't unique enough. For example, take two .bas modules, both containing this:
namespace sub f() end sub end namespace
It gives a linker error:
$ fbc 3.bas 4.bas 4.o: In function `.LT_0004::F()': (.text+0x0): multiple definition of `.LT_0004::F()' 3.o:(.text+0x0): first defined here
http://www.freebasic.net/forum/viewtopic.php?p=176830#p176830
Diff:
Anyway I still do not see what could be done with these anonymous namespaces, in version FreeBASIC!
See previous discussion at topic "namespace problem" http://www.freebasic.net/forum/viewtopic.php?f=3&t=10650) and from post http://www.freebasic.net/forum/viewtopic.php?p=176593#p176593
Last edit: fxm (freebasic.net) 2015-12-27