Главная страница | назад





Article #16968: Undefined Symbols and namespaces

 Question and Answer Database
FAQ1968C.txt Undefined Symbols and namespaces
Category :C/C++ Language Issues
Platform :All
Product :C++Builder 1.x
Question:
Why do I get an undefined symbol for a symbol that is defined
in a namespace?
Answer:
When trying to use a class or function that is declared in a
namespace, you must first either specify that you are using that
namespace ("using namespace FOO;"), or resolve the namespace scope
by prefixing the symbole with the correct namespace
FOO::foo.doIt();).
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99