No Image

Ilink32 error error unable to perform link

СОДЕРЖАНИЕ
668 просмотров
10 марта 2020

I am trying to develop a dll in C++ builder xe, and I need to parse an XML file and for that I use the parser of C++ builder xe which generate a code that allows me to manipulate the xml file . The problem is I got errors at the compilation caused by generated code. here is what looks like the generated code:

the errorsI get is :

I think the mistake is the include in one of the generated file causes the problem. any ideas?

1 Answer 1

I’ve resolve the probleme by unchecking the linker option "Dynamic RTL", in the project options, and "Link with runtime packages"; in the packages options. I don’t know what is the relationship between this and the intial problem.

Not the answer you’re looking for? Browse other questions tagged xml parsing c++builder or ask your own question.

Related

Hot Network Questions

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

site design / logo © 2019 Stack Exchange Inc; user contributions licensed under cc by-sa 4.0 with attribution required. rev 2019.11.15.35459

[ILINK32 Error] Error: Unresolved external ‘TForm1::’ referenced from D:PROGRAMSKURSDEBUGPROJECT1.OBJ
[ILINK32 Error] Error: Unable to perform link

Впервые сталкиваюсь с подобным. Можете объяснить, отчего это?

Код TForm1:
#include
#include
#pragma hdrstop

struct Notes
<
char Name[60]; // фамилия имя отчество
char Phone[16]; // телефон
int Age; // возраст
>;

//—————————————————————————
void __fastcall TForm1::Memo1Change(TObject *Sender)
<
// Если файл NoteBook.dat не существует, в Меmo1 посылается сообщение
if(!FileExists("NoteBook.dat"))
<
Memo1->Text="NoteBook.dat file does not exist";
Button1->Enabled=false;
>
>
//—————————————————————————
void __fastcall TForm1::Button1Click(TObject *Sender)
<
Notes Note1;
// Получение значений из полей ввода
if((Edit1->Text!="")&&(Edit2->Text!="")&&(Edit3->Text!=""))
temp=Edit1->Text;
strcpy(Note1.Name, temp.c_str());
temp=Edit3->Text;
strcpy(Note1.Phone, temp.c_str());
Note1.Age=Edit2->Text.ToInt();

Читайте также:  Esr метр мастер кит

// открытие файла для чтения
fstream file("NoteBook.dat", ios::binary | ios::in | ios::out);
char str[80];
file.seekg(0); //указатель на первую запись

Окончательно запутался. Я так понял, TForm1 потерялся и попутался.

Добавляю:
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
<
// Если файл NoteBook.dat не существует, в Меmo1 посылается сообщение
if(!FileExists("NoteBook.dat"))
<
Memo1->Text="Файл NoteBook.dat не существует";
Button1->Enabled=false;
>
>

Он мне выдает: [BCC32 Error] Unit1.cpp(27): E2136 Constructor cannot have a return type specification выделяя : TForm(Owner)

Иногда, при компиляции проектов, в RAD STUDIO С++ программа не запускается, пишет ошибку. Вы проверяете проект. Код правильный, но ошибка все равно есть и ругается ilink32 Error.

Например, такие ошибки:

[ILINK32 Error] Error: Unresolved external

[ILINK32 Warning] Warning: Public symbol

[ILINK32 Error] Error: Unresolved external

[ILINK32 Error] Error: Unable to perform link

Данная проблема связана с самим файлом ilink32.exe

Чтобы больше не "танцевать с бубном", есть пропатченные файлы для RAD STUDIO 10.

Для RAD STUDIO 10 B erlin: https://cloud.mail.ru/public/LQg5/noJRD9C46 (файл ilink32-10.1.exe переименовать в ilink32.exe и скопировать в папку с заменой)

Файл ilink32.exe в RAD STUDIO 10 лежит тут:

для 64 битной ОС

C:Program Files (x86)EmbarcaderoStudio17.0in

Комментировать
668 просмотров
Комментариев нет, будьте первым кто его оставит

Это интересно
Adblock
detector