C++Builder – Linkerfehler mit Shellctrls beim Kompilieren mit Clang [Duplikat]C++

Programme in C++. Entwicklerforum
Anonymous
 C++Builder – Linkerfehler mit Shellctrls beim Kompilieren mit Clang [Duplikat]

Post by Anonymous »

Ich verwende C++Builder 11.3. Ich möchte ein Projekt kompilieren, das für den „klassischen“ Borland-Compiler geschrieben wurde. Ich möchte es mit dem modernen Clang-Compiler kompilieren.
Ich habe die meisten Fehler entfernt, aber ich erhalte immer noch Fehler mit Shellctrls:

Code: Select all

[ilink32 Error] Error: Unresolved external '__InitExceptBlockLDTC' referenced from C:\USERS\PUBLIC\DOCUMENTS\EMBARCADERO\STUDIO\22.0\DCP\BCBSHLCTRLS.LIB|shellctrls
[ilink32 Error] Error: Unresolved external '_vector_new_ldtc_(void *, unsigned int, unsigned int, unsigned int, void *, unsigned int, void *)' referenced from C:\USERS\PUBLIC\DOCUMENTS\EMBARCADERO\STUDIO\22.0\DCP\BCBSHLCTRLS.LIB|shellctrls
[ilink32 Error] Error: Unresolved external '_ThrowExceptionLDTC(void *, void *, void *, void *, unsigned int, unsigned int, unsigned int, unsigned char *, void *)' referenced from C:\USERS\PUBLIC\DOCUMENTS\EMBARCADERO\STUDIO\22.0\DCP\BCBSHLCTRLS.LIB|shellctrls
[ilink32 Error] Error: Unresolved external '_CatchCleanup()' referenced from C:\USERS\PUBLIC\DOCUMENTS\EMBARCADERO\STUDIO\22.0\DCP\BCBSHLCTRLS.LIB|shellctrls
[ilink32 Error] Error: Unresolved external '__Return_unwind' referenced from C:\USERS\PUBLIC\DOCUMENTS\EMBARCADERO\STUDIO\22.0\DCP\BCBSHLCTRLS.LIB|shellctrls

Code: Select all

//---------------------------------------------------------------------------

#ifndef PDBFileFindXE2H
#define PDBFileFindXE2H
//---------------------------------------------------------------------------
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include "SpolecneXE2.h"
#include 
#include 
#include 
#include "shellctrls.h"
int __stdcall CompareFunc(long, long, long);
//---------------------------------------------------------------------------
// Pomocná struktura pro načtení informací z binárních souborů *.pdb SH a DSH
struct TPdbFileHeader
{
int Instalace;   // class TDshParamSetData
char Misto[50];
char Hut[50];
char Stroj[50];
char Verze[50];
char Text1[50];
char Text2[50];
char Text3[50];
char Komentar[50];
int Jazyk;
int Typ;
double Datum;
};
//---------------------------------------------------------------------------
class TOknoPDBFile : public TForm
{
__published:    // IDE-managed Components
TFilterComboBox *FilterComboBox1;
TLabel *Label1;
TMemo *Memo1;
TBitBtn *bt_open;
TLabel *Label2;
TBitBtn *bt_cancel;
TListView *ListView1;
TImageList *ImageList1;
TSpeedButton *SpeedButton1;
TSpeedButton *SpeedButton2;
TShellTreeView *ShellTreeView1;
TShellListView *ShellListView1;

void __fastcall FilterComboBox1Change(TObject *Sender);
void __fastcall ListView1Click(TObject *Sender);
void __fastcall ListView1Change(TObject *Sender, TListItem *Item,
TItemChange Change);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall ShellTreeView1Change(TObject *Sender, TTreeNode *Node);
void __fastcall FormShow(TObject *Sender);
void __fastcall SpeedButtonClick(TObject *Sender);
private:    // User declarations
TJazyk FJazyk;
AnsiString FText1;
bool FEncryptMode;
AnsiString FSelectedFile;
int FSelectedNodeIndex;
TDevice FDeviceType;
TStringList *FMask;
AnsiString __fastcall GetFileName();
void __fastcall SetPath(AnsiString);
void __fastcall SetCryptoFilter(bool);
AnsiString __fastcall GetSelectedFile();
bool __fastcall FindFile(UnicodeString);
public:     // User declarations
__fastcall TOknoPDBFile(TComponent* Owner,TJazyk jazyk);
__property AnsiString SelectedFile = {read=GetSelectedFile};
__property TDevice DeviceType = {read=FDeviceType};
__property AnsiString InitialPath = {write=SetPath};
__property bool CryptoFilter = {read=FEncryptMode,write=SetCryptoFilter};
};
//---------------------------------------------------------------------------
//extern PACKAGE TOknoPDBFile *OknoPDBFile;
//---------------------------------------------------------------------------
#endif
Ich habe versucht, TShellTreeView in einem leeren Projekt zu verwenden, habe es mit Clang kompiliert und es funktioniert.
Ich habe auch versucht, ein neues Projekt einzurichten und alle Module in das neue Projekt zu verschieben, aber es funktioniert nicht.
Wie kann ich das Problem beheben?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post