I am running the latest cygwin on Windows 7 (32-bit) and trying to create an open source project, RtAudio (it is not currently built on this platform).
One of the problems I worked with is the error on the #include <tchar.h> .
My build line:
g++ -O2 -Wall -Iinclude -DHAVE_GETTIMEOFDAY -D__WINDOWS_DS__ -c RtAudio.cpp -o RtAudio.o
Error:
tchar.h: No such file or directory
If I add / usr / include / mingw (which contains tchar.h) to the list of included paths, I get a lot more errors.
I worked on the problem without using LPCTSTR, and just overloading one function that requires it for const char* and const wchar_t* , so I could avoid including tchar.h, but is there a better way to do this
source share