Hi all. I try to run this sources throught cint7:
The sources are atached.
CDataFile is from here: alturl.com/ihpj
This compiles in vs2008 without problems.
cint.exe -IC:\cint\main -IC:\cint\inc -IC:\cint\include -IC:\cint\stl DataFile.cpp main.cpp
Error: Too many ‘}’ DataFile.cpp(369)
What can cause this error? Is there a list of unsupported or problematic keywords?
Indeed I can reproduce your problem, I am not sure exactly what the problem is. Would you be able to par down your test to the minimum needed to reproduce the problem?
Thanks,
Philippe.
PS. Note that the cint executable should not need to be told where the cint header are and ‘cint DataFile.cpp main.cpp’ should be sufficient.
// supress warnings (pop statement at end)
//#pragma warning(push)
//#pragma warning(disable:4786) // 255 char truncation in VC6
//#pragma warning(disable:4702) // unreachable code in std::vector (VC7)[/code]
I changed the code at top and bottom of DataFile.h.
Now cint gives me:
C:\Users\Lis\Documents\work\CDataFile_src>cint.exe -IC:\cint\main -IC:\cint\inc
-IC:\cint\include -IC:\cint\stl DataFile.cpp main.cpp
#error win32api.dll is not ready. Run 'setup.bat' in %CINTSYSDIR%\lib\win32api d
irectory if you use WinNT/95.
I try to compile the win32api and see what happens.
Greets Louis.
I forgotten that I added a directory file scan who needs windows.h.
I removed the filescan function, and cint seem to process the example file but only with exceptions.
C:\Users\Lis\Documents\work\CDataFile_src>cint.exe -IC:\cint\main -IC:\cint\inc
-IC:\cint\include -IC:\cint\stl DataFile.cpp main.cpp
Error: Cannot call exception::exception(df.m_szError.c_str()) in current scope (
2) src\func.cxx:2827 DataFile.cpp(409)
Possible candidates are...
(in exception)
exception.dll -1:-1 0 public: exception exception::exception(void);
exception.dll -1:-1 0 public: exception exception::exception(const exceptio
n& x);
Error: illegal pointer to class object e 0x0 87 DataFile.cpp(379)
And after changing to another csv file:
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application’s support team for more information.
C:\Users\Lis\Documents\work\CDataFile_src>[/code]
I will upload new sources later.
EDIT:
It seems the first file can not be read. At least that’s what happens if I compile this programm with visual studio.
The second file can be read, it contains about 2000 lines, maybe this causes cint to crash.
EDIT:
The testfile distributed in the archive below is read in the compiled version. Cint crashes with the error above.
[code]# DataFile.cpp
399
400 // make sure data columns are equal to nVars
401 // in order to prevent mis-aligned data
402 inFile.ignore(MAX_LINE_BUFFER,’\n’);FILE:DataFile.cpp LINE:402 cint.exe>
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application’s support team for more information.
FILE:DataFile.cpp LINE:418 cint.exe> [/code]