Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
UA & Classic SDK: Bcc32 Error in MsXml2.h
August 25, 2022
18:35, EEST
Avatar
Guido Niewerth
Member
Members
Forum Posts: 13
Member Since:
August 23, 2022
sp_UserOfflineSmall Offline

IDE Version: RAD Studio 10.1 Berlin
SDK Version : 7.5.0 Build 802 Evaluation Edition

I don´t know what happended, maybe you can help me. Everything was fine and I was able to compile my sample project until now. I reduced the relevant code to this:

.h file:
— begin of file —
#ifndef include_bugH
#define include_bugH

#include “ProsysOPC.UaServer.Nodes.hpp”

#endif
— end of file —

.cpp file:
— begin of file —
#pragma hdrstop

#include “include_bug.h”
— end of file —

And this is the compiler output:
bcc32c command line for “include_bug.cpp”
c:\program files (x86)\embarcadero\studio\18.0\bin\bcc32c.exe -cc1 -D _DEBUG -D WINDOWS -n .\Win32\Debug -I “E:\tmp\OPC UA” -I “c:\program files
(x86)\embarcadero\studio\18.0\include\windows\vcl” -I E:\3rd\Sentrol\include -I forms -I “E:\tmp\OPC UA” -I “E:\tmp\OPC UA\forms” -isystem
“c:\program files (x86)\embarcadero\studio\18.0\include\windows\crtl\DE” -isystem “c:\program files
(x86)\embarcadero\studio\18.0\include\windows
tl\DE” -isystem “c:\program files (x86)\embarcadero\studio\18.0\include” -isystem “c:\program files
(x86)\embarcadero\studio\18.0\include\dinkumware64″ -isystem “c:\program files (x86)\embarcadero\studio\18.0\include\windows\crtl” -isystem
“c:\program files (x86)\embarcadero\studio\18.0\include\windows\sdk” -isystem “c:\program files (x86)\embarcadero\studio\18.0\include\windows
tl”
-isystem “c:\program files (x86)\embarcadero\studio\18.0\include\windows\vcl” -isystem C:\Users\Public\Documents\Embarcadero\Studio\18.0\hpp\Win32
-isystem “c:\program files (x86)\embarcadero\studio\18.0\include\boost_1_55” -isystem “e:\3rd\DevArt UniDAC\Include\Win32” -isystem
e:\3rd\DevExpress\Library\RS24 -isystem e:\3rd\dOPC\lib240 -isystem “e:\3rd\MicroOlap PostgreSQL DAC\Packages\RAD Studio 10.1 Berlin” -isystem
e:\3rd\QuickReports\QR5include\Win32 -isystem “e:\3rd\Steema TeeCharts\compiled\Delphi24.win32\Include” -isystem “e:\3rd\ZipForge\Lib\Delphi 10.1 and
C++ Builder 10.1 (Berlin)” -isystem e:\ocs -isystem e:\ocs\graphics -isystem E:\3rd\Sentrol\include -isystem
C:\Users\Public\Documents\Embarcadero\Studio\18.0\hpp\Win32 -g -fno-limit-debug-info -fborland-extensions -fdiagnostics-format borland -nobuiltininc
-nostdsysteminc -triple i686-pc-win32-omf -emit-obj -cxx-abi borland -ffunction-sections -fexceptions -fcxx-exceptions -fseh -mdisable-fp-elim
-fno-spell-checking -fno-use-cxa-atexit -fno-threadsafe-statics -main-file-name include_bug.cpp -x c++ -std=c++11 -O0 -fmath-errno -tM -tW -o
.\Win32\Debug\include_bug.obj -auto-dependency-output -MT .\Win32\Debug\include_bug.obj include_bug.cpp

[bcc32c Error] MsXml2.h(629): elaborated type refers to a typedef
[bcc32c Hint] MSXML2_TLB.hpp(325): declared here
Failed
Elapsed time: 00:00:04.4

This is the relevant line of code in MsXml2.h:
— snippet begin —
#ifndef __DOMDocument26_FWD_DEFINED__
#define __DOMDocument26_FWD_DEFINED__

#ifdef __cplusplus
typedef class DOMDocument26 DOMDocument26; << Line in question
#else
typedef struct DOMDocument26 DOMDocument26;
#endif /* __cplusplus */

#endif /* __DOMDocument26_FWD_DEFINED__ */
— snippet end —
What can I do?

Kind regards,
Guido

August 25, 2022
18:53, EEST
Avatar
Guido Niewerth
Member
Members
Forum Posts: 13
Member Since:
August 23, 2022
sp_UserOfflineSmall Offline

I managed to fix it myself:

Before including “ProsysOPC.UaClasses.hpp” or “ProsysOPC.UaServer.Nodes.hpp” I need to include “ProsysOPC.UaServer.hpp”.
It fixed the error, at least for me.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
48 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_gallery

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1