Error message linking a C++ Builder 10.1 Berlin project - c++builder

[ilink32 Error] Error: Unresolved external '__fastcall System::Variant::Exec(System::AutoCmd&, int) const' referenced from
I am getting the above error message when I am trying to use the new 32-bit compiler in C++ Builder 10.1 Berlin instead of the classic compiler.
This same piece of code compiles successfully using the classic compiler.
I know something is probably missing (a lib?), but what?
Any idea?

Related

Error after with compiling an existing program using JVCL HID device [duplicate]

This question already has answers here:
How to resolve “Unit JclCompression was compiled with a different version of sevenzip.IOutArchive”?
(1 answer)
F2051 Unit JclUnitVersioning was compiled with a different version of System.Contnrs.TObjectList.Remove
(3 answers)
Closed 1 year ago.
I have just installed JEDI Library and VCL on Delphi 10.4.2. When attempting to compile an existing working program which uses Jedi HIDCtrl I get the error...
[dcc32 Fatal Error] Hid.pas(896): F2051 Unit JvHidControllerClass was compiled with a different version of Hid.THIDDAttributes
How can I resolve this?
It turns out that I have the WINSOFT Native HID which I find is used in a trial form by the jvHIDControllerClass. After removing the existing WINSOFT product it now compiles without error.

GraphicEx with Delphi 10.1 Berlin

I installed GraphicEx (a Delphi image loader library) in Delphi 7, and it worked fine.
Now, when I try to install it in Delphi 10.1 Berlin, I get errors:
[dcc32 Error] JPG.pas(1136): E2065 Unsatisfied forward or external declaration: 'jpeg_reset_huff_decode'
[dcc32 Error] JPG.pas(1258): E2065 Unsatisfied forward or external declaration: '#jfwrite'
[dcc32 Error] JPG.pas(1258): E2065 Unsatisfied forward or external declaration: '#jfflush'
[dcc32 Error] JPG.pas(1258): E2065 Unsatisfied forward or external declaration: '#jfread'
[dcc32 Fatal Error] GraphicEx.pas(613): F2063 Could not compile used unit 'JPG.pas'
So, how can I use GraphicEx in Delphi 10.1 Berlin?
As described on the page to which you link, this library has not been updated to the latest versions of Delphi. However, you will most likely find that you do not need it any more. Recent Delphi versions have out of the box support for JPEG and PNG images formats.
Resolve your problem by removing references to this library and using the built in image format support.
If you are using the library for the more esoteric image formats that it offers then you will need to update it to work with the your version of Delphi.
In the first instance, the compilation errors that you report are simply down to your not having added the necessary folders to your search path. The object files that define those functions are found in the 3rd party\LibJPG\obj folder. You must add that to your search path. When you do that you will get another error. Keep resolving them one by one.

Delphi Undeclared identifier ansistring

I use delphi xe8.
I get an error when compile my programm on step
CyrStr = type AnsiString(1251)
"Undeclared identifier ansistring"
What library I need to use?
You are probably compiling for a target that doesn't support AnsiString. The mobile compilers don't support AnsiString while the desktop compilers do.

Linker error LNK2019 (unresolved symbol) with OpenCV 2.4, CvBlob library, and Visual Studio 2012 RC

I've spent the last hour or two trying to hunt this problem down and can't seem to get it right. I am using OpenCV with MS VS 2012 RC, and to this point it has worked quite well (one bug dealing with the newer Mat container, but fine otherwise). I have a previously written application I am trying to port (from GCC/G++), which used the cvblob.dll library from here. I have recompiled the cvblob library with VS2012 (my previous version was compiled with MinGW and worked flawlessly), and managed to create both a DLL and an import library .LIB.
The application compiles properly, but the one spot where I use the cvblob library is now my source of error, because the linker cannot find the symbol for the cvLabel function in the library. This is the complete error message I get from VS2012:
ConsoleApplication1.cpp
1> Generating Code...
1>imageinput.obj : error LNK2019: unresolved external symbol _cvLabel referenced in function "public: class std::vector,class std::allocator > > _thiscall ImageInput::getROI(class cv::Mat,class cv::Mat)" (?getROI#ImageInput##QAE?AV?$vector#V?$Rect#H#cv##V?$allocator#V?$Rect_#H#cv###std###std##VMat#cv##0#Z)
1>C:\Users\Jake\Documents\Visual Studio 2012\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe : fatal error LNK1120: 1 unresolved externals
I'm not certain whether this is a problem with the cvblob library itself, my current binary for it, or just the process I used to compile it. I will gladly furnish any information I can upon request. Thanks in advance for your advice!
You obviously didn't link needed library in project settings. Try to add all OpenCV/CvBlob libs in linker properties of your prooject. See docs.
Also look at this discussion.

Delphi TeeChart - print preview and save dialog

I'm using the built in TeeChart in Delphi XE for graphs.
When I just put a graph on a form, I have all these options to export/save or print preview, but those aren't there at runtime.
I want to add a button for a save dialog and a print preview (right now I just have it doing Chart1.Print and Chart1.SaveToBitmapFile)
I googled around and I found this link: http://www.steema.com/support/faq/NewVCL/FAQ_VCL_DIALOGS.htm
So I added EditChar to Uses and added the line
EditChart(Self,Chart1 );
but when I try to compile, it gives me errors:
[DCC Error] E1026 File not found: 'TeeBackImage.DFM'
[DCC Error] E1026 File not found: 'TeeEmbossEditor.DFM'
[DCC Error] E1026 File not found: 'TeeMargins.DFM'
[DCC Error] E1026 File not found: 'TeeMouseCursor.DFM'
[DCC Error] E1026 File not found: 'TeeStringsEditor.DFM'
Also I've added Uses TeePrevi, but it says ChartPreview is an undeclared identifier
Does anyone know what's going on? Creating a chart and printing/saving works fine, and the errors seem to happen when I add Uses EditChar
Thanks
I am using Delphi XE2 with TeeChart Standard (as included with XE2)
I added "VCLTee.TeeEdiGene, VCLTee.EditChar" to the uses list and then I added the lines:
ChartPreview(Self,Chart1);
and
EditChart(Self,Chart1 );
to my code to bring up the preview and edit dialogs. It seems to work OK
Run-time chart editor, print preview & exporting dialogs are not available in TeeChart VCL Standard, which is the version shipped in Delphi, and therefore necessary units are not included. To be able to do so you'll need TeeChart Professional VCL. Here you'll find the TeeChart landing page for RAD Studio users with a grid comparing Std and Pro versions, access to the fully functional Pro evaluation version, etc.

Resources