BCB 2010 自带的头文件编译有会出有关问题?
BCB 2010 自带的头文件编译有会出问题???
DBXJSONReflect.hpp 文件。
我新建一个工程,头文件添加后,编译,有以下问题:
[BCC32 Error] DBXJSONReflect.hpp(61): E2311 Non-virtual function '_fastcall TConverter__1<TJSONValue *>::TConverter__1()' declared pure
Full parser context
Unit1.cpp(6): #include Unit1.h
Unit1.h(10): #include c:\program files\embarcadero\rad studio\7.0\include\vcl\DBXJSONReflect.hpp
DBXJSONReflect.hpp(28): namespace Dbxjsonreflect
DBXJSONReflect.hpp(286): class TJSONConverter
Unit1.cpp(6): #include Unit1.h
Unit1.h(10): #include c:\program files\embarcadero\rad studio\7.0\include\vcl\DBXJSONReflect.hpp
DBXJSONReflect.hpp(28): namespace Dbxjsonreflect
DBXJSONReflect.hpp(53): decision to instantiate: TConverter__1<TJSONValue *>
--- Resetting parser context for instantiation...
[BCC32 Error] DBXJSONReflect.hpp(287): E2029 'TConverter__1<TJSONValue *>' must be a previously defined class or struct
Full parser context
Unit1.cpp(6): #include Unit1.h
Unit1.h(10): #include c:\program files\embarcadero\rad studio\7.0\include\vcl\DBXJSONReflect.hpp
DBXJSONReflect.hpp(28): namespace Dbxjsonreflect
DBXJSONReflect.hpp(286): class TJSONConverter
[BCC32 Error] DBXJSONReflect.hpp(317): E2356 Type mismatch in redeclaration of 'TJSONConverter'
Full parser context
Unit1.cpp(6): #include Unit1.h
Unit1.h(10): #include c:\program files\embarcadero\rad studio\7.0\include\vcl\DBXJSONReflect.hpp
DBXJSONReflect.hpp(28): namespace Dbxjsonreflect
[BCC32 Error] DBXJSONReflect.hpp(286): E2344 Earlier declaration of 'TJSONConverter'
Full parser context
Unit1.cpp(6): #include Unit1.h
Unit1.h(10): #include c:\program files\embarcadero\rad studio\7.0\include\vcl\DBXJSONReflect.hpp
DBXJSONReflect.hpp(28): namespace Dbxjsonreflect
------解决方案--------------------
应该是命名空间的问题!
------解决方案--------------------
已经用2010做几个工程的路过
------解决方案--------------------
https://forums.embarcadero.com/thread.jspa?threadID=28126&tstart=75
------解决方案--------------------
楼主的RAD2010可曾打补丁?
DBXJSONReflect.hpp 文件。
我新建一个工程,头文件添加后,编译,有以下问题:
[BCC32 Error] DBXJSONReflect.hpp(61): E2311 Non-virtual function '_fastcall TConverter__1<TJSONValue *>::TConverter__1()' declared pure
Full parser context
Unit1.cpp(6): #include Unit1.h
Unit1.h(10): #include c:\program files\embarcadero\rad studio\7.0\include\vcl\DBXJSONReflect.hpp
DBXJSONReflect.hpp(28): namespace Dbxjsonreflect
DBXJSONReflect.hpp(286): class TJSONConverter
Unit1.cpp(6): #include Unit1.h
Unit1.h(10): #include c:\program files\embarcadero\rad studio\7.0\include\vcl\DBXJSONReflect.hpp
DBXJSONReflect.hpp(28): namespace Dbxjsonreflect
DBXJSONReflect.hpp(53): decision to instantiate: TConverter__1<TJSONValue *>
--- Resetting parser context for instantiation...
[BCC32 Error] DBXJSONReflect.hpp(287): E2029 'TConverter__1<TJSONValue *>' must be a previously defined class or struct
Full parser context
Unit1.cpp(6): #include Unit1.h
Unit1.h(10): #include c:\program files\embarcadero\rad studio\7.0\include\vcl\DBXJSONReflect.hpp
DBXJSONReflect.hpp(28): namespace Dbxjsonreflect
DBXJSONReflect.hpp(286): class TJSONConverter
[BCC32 Error] DBXJSONReflect.hpp(317): E2356 Type mismatch in redeclaration of 'TJSONConverter'
Full parser context
Unit1.cpp(6): #include Unit1.h
Unit1.h(10): #include c:\program files\embarcadero\rad studio\7.0\include\vcl\DBXJSONReflect.hpp
DBXJSONReflect.hpp(28): namespace Dbxjsonreflect
[BCC32 Error] DBXJSONReflect.hpp(286): E2344 Earlier declaration of 'TJSONConverter'
Full parser context
Unit1.cpp(6): #include Unit1.h
Unit1.h(10): #include c:\program files\embarcadero\rad studio\7.0\include\vcl\DBXJSONReflect.hpp
DBXJSONReflect.hpp(28): namespace Dbxjsonreflect
------解决方案--------------------
应该是命名空间的问题!
------解决方案--------------------
已经用2010做几个工程的路过
------解决方案--------------------
https://forums.embarcadero.com/thread.jspa?threadID=28126&tstart=75
------解决方案--------------------
楼主的RAD2010可曾打补丁?