Tuesday, July 14, 2009

I am using parser generator 2 to compile a file using C++ borland 6.?

using parser generator,when i am compiling the files with C++ borland 6,i face problem with heared and include files..and the error is:cant include %26lt;.....h%26gt; forexample..or another is:ERROR must use c++ ..or something like this.


may i kow if i should do any copy %26amp; paste files between parser and borland in include folders or..can some one help me to do the projects?i realy will be thank ful..i need to read characters from a file and define the TOKENs or lexical errors

I am using parser generator 2 to compile a file using C++ borland 6.?
Fully qualify your path names (not doc.txt, but C:\Documents and Settings\Administrator\My Documents\doc.txt). This guarantees that a "file not found" is a file that doesn't exist there.





An unsafe way around getting rid of those ERROR: Must use C++ is including (before the libraries) a #define __cplusplus line. That should work, considering that the safety responsible for that mechanism is:


#ifndef __cplusplus


#error Must use C++


#endif


No comments:

Post a Comment