| Summary: | Doesn't link functions in a namespace but does link to function decalered as class' static | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | vadim |
| Component: | cdt-build | Assignee: | cdt-build-inbox <cdt-build-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | Andrew Gvozdev <angvoz.dev> |
| Severity: | major | ||
| Priority: | P3 | CC: | cdtdoug |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
linking to static library Do you get the error as the result of compilation (i.e. in build console)? Yes It's compiler complaining about an error in your code. It has nothing to do with CDT. |
Build Identifier: M20100211-1343 include file contains this: namespace vm { void my_classless_function (void); class some_class { static void my_class_function (void); } }; cpp file contains this: using namespace vm; void some_function (void) { some_class::my_class_function(); my_classless_function(); // generates "undefined reference to vm::my_classless_function()" error } Reproducible: Always