Hi,
I am getting a compile error with planners with the latest TMS pack and c++builder 2010. The error I get is
[BCC32 Error] Planner.hpp(3855): E2303 Type name expected
Full parser context
Unit1.cpp(6): #include Unit1.h
Unit1.h(10): #include C:\Users\shawn\Documents\borland\TMS Component Pack\Builder2010\Planner.hpp
Planner.hpp(52): namespace Planner
Planner.hpp(3775): class TPlanner
I can cause the error to happen if I create a new project and put a planner object on the main form.
Any ideas?
Thanks
Isn't there more context to this error? This seems to be the beginning of a compiler log but I suspect the actual error line is missing?
That's the full of the compile error.
The form has just a TPlanner object on it and nothing else. Here is the header file for the unit:
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
class TForm1 : public TForm
__published: // IDE-managed Components
private: // User declarations
public: // User declarations
__fastcall TForm1(TComponent Owner);
//---------------------------------------------------------------------------
extern PACKAGE TForm1 Form1;
//---------------------------------------------------------------------------
The .cpp file is:
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#pragma package(smart_init)
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent Owner)
//---------------------------------------------------------------------------
When I compile the project that's when I get the error.
What exactly is on line 3855 of your Planner.hpp file?
Also, just to be sure, I did a complete uninstall of TMS and C++Builder and then installed both again. I still get the same issue.
This was fixed in TMS Component Pack v8.4.1.0 that is available for download now.