Через несколько дней я пытаюсь преобразовать проект из Borland C ++ 6 в Embarcadero XE3, и я до сих пор не знаю, что делать сейчас.
У меня много ошибок типа «E2293) ожидаемый», но я знаю, что это не причина, по которой моя программа не работает.
В Borland 6 все работает нормально, но здесь у меня много ошибок. Как я могу решить проблему с system.types.hpp, posix.systypes.hpp и posix.dlfcn.hpp?
[bcc32 Error] System.Types.hpp(511): E2293 ) expected
Kons.cpp(3): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\vcl.h
vcl.h(10): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\windows\vcl\basepch0.h
basepch0.h(63): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\System.Types.hpp
System.Types.hpp(38): namespace System
System.Types.hpp(40): namespace Types
[bcc32 Error] Posix.SysTypes.hpp(20): E2209 Unable to open include file 'pthread.h'
KonsHydExpres.cpp(3): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\vcl.h
vcl.h(10): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\windows\vcl\basepch0.h
basepch0.h(68): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\System.SysUtils.hpp
System.SysUtils.hpp(19): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\Posix.Dirent.hpp
Posix.Dirent.hpp(18): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\Posix.SysTypes.hpp
[bcc32 Error] Posix.SysTypes.hpp(63): E2257 , expected
KonsHydExpres.cpp(3): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\vcl.h
vcl.h(10): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\windows\vcl\basepch0.h
basepch0.h(68): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\System.SysUtils.hpp
System.SysUtils.hpp(19): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\Posix.Dirent.hpp
Posix.Dirent.hpp(18): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\Posix.SysTypes.hpp
Posix.SysTypes.hpp(23): namespace Posix
Posix.SysTypes.hpp(25): namespace Systypes
[bcc32 Error] Posix.Dlfcn.hpp(20): E2209 Unable to open include file 'dlfcn.h'
KonsHydExpres.cpp(3): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\vcl.h
vcl.h(10): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\windows\vcl\basepch0.h
basepch0.h(68): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\System.SysUtils.hpp
System.SysUtils.hpp(20): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\Posix.Dlfcn.hpp
[bcc32 Error] Posix.Dlfcn.hpp(27): E2257 , expected
KonsHydExpres.cpp(3): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\vcl.h
vcl.h(10): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\windows\vcl\basepch0.h
basepch0.h(68): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\System.SysUtils.hpp
System.SysUtils.hpp(20): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\Posix.Dlfcn.hpp
Posix.Dlfcn.hpp(23): namespace Posix
Posix.Dlfcn.hpp(25): namespace Dlfcn
образец исходного кода:
#include <vcl.h>
#pragma hdrstop
#include "OProgramie.h"#include "About.h"//#include<string>
#include "CommandLine.h"#include "MenuLoader.h"
//---------------------------------------------------------------------
#pragma resource "*.dfm"TAboutBox *AboutBox;
//---------------------------------------------------------------------__fastcall TAboutBox::TAboutBox(TComponent* AOwner)
: TForm(AOwner)
{
vector<AnsiString> v = Split(AppDate," ");
AnsiString d = v[0]+"/"+v[1]+"/"+v[2];
Memo1->Lines->Strings[3] = d;
Memo1->Lines->Strings[8] = menu.GetCaption("About","1");
try{
ProgramIcon->Picture->LoadFromFile(ExtractFileDir(Application->ExeName)+"\\icon\\bhmw.jpg");
}catch(...){}
}
//---------------------------------------------------------------------
void __fastcall TAboutBox::OKButtonClick(TObject *Sender)
{
Close();
}
Задача ещё не решена.