Forum > Packages and Libraries
[SOLVED] Problem compiling SMBIOS
(1/1)
cappe:
When I compile smbios with linux it gives me these errors. How can I solve?
DWORD = FixedUInt; //Error: Identifier not found "FixedUint"
SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE = [$5F, $44, $4D, $49, $5F]; // Range check error in set constructor o duplicate set element
balazsszekely:
--- Quote ---Error: Identifier not found "FixedUint"
--- End quote ---
FixedUInt = UInt32
valdir.marcos:
--- Quote from: cappe on May 11, 2018, 11:23:29 am ---When I compile smbios with linux it gives me these errors. How can I solve?
SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE = [$5F, $44, $4D, $49, $5F]; // Range check error in set constructor o duplicate set element
--- End quote ---
Just ignore that line.
The SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE const is not used anywhere.
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---// SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE = [$5F, $44, $4D, $49, $5F];
valdir.marcos:
Testing https://github.com/RRUZ/tsmbios/tree/master/Samples%20Lazarus, the most commons errors are:
1. Missing uSMBIOS.pas in the project or in the correct directory.
2. Missing uSMBIOS unit in Uses clause:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---uses uSMBIOS;
3. Range check error in set constructor or duplicate set element on line (uSMBIOS.pas):
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE = [$5F, $44, $4D, $49, $5F];
Just ignore that line.
The SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE const is not used anywhere.
--- Code: Text [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---// SMBIOS_INTERMEDIATE_ANCHOR_STRING_VALUE = [$5F, $44, $4D, $49, $5F];
4. A wrong property in code lead to errors (MemoryDeviceInfo.dpr):
- Error: (5038) identifier idents no member "MemoryDeviceInformation"
- Error: (5067) Cannot find an enumerator for the type "<erroneous type>"
To solve, just change MemoryDeviceInformation to MemoryDeviceInfo:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---for LMemoryDevice in SMBios.MemoryDeviceInformation do
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---for LMemoryDevice in SMBios.MemoryDeviceInfo do
Navigation
[0] Message Index