The following C++ application compiles and runs successfully within Eclipse CDT but the IDE is still reporting an error stating:
Could not resolve function wprintf
#include <stdio.h>
#include <wchar.h>
int main()
{
wprintf(L"Hello world");
return 0;
}
The directory /usr/include (where wchar.h resides) is definitely listed within the Include path as otherwise the application would not compile. Hitting F3 on wprintf reports:
Could not find symbol 'wprintf' in index
This is my set up:
- openSUSE 11.4
- Eclipse IDE for Java Developers (Indigo Service Release 2 - Build 20120216-1857)
- Eclipse CDT v8.0.2.201202111925
Does anyone know how I can get Eclipse CDT to resolve this function correctly?