Please consider registering

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
Guido Niewerth
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”

— 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
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
-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
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
typedef struct DOMDocument26 DOMDocument26;
#endif /* __cplusplus */

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

Kind regards,

August 25, 2022
18:53, EEST
Guido Niewerth
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: 518

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 130

pramanj: 86

Francesco Zambon: 78

ibrahim: 75

rocket science: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 731

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1450

Posts: 6201

Newest Members:

jadadibdin6, DiianaZof, antoniettakarn, Tor, Arktistync, floybateson9, inilarythikibia, celinamcguire5, helenblodo

Moderators: Jouni Aro: 1007, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 970, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 311, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1