Compiler error when building zApp as shared library

Article ID: 861
Last updated: 05 Feb, 2008
Article ID: 861
Last updated: 05 Feb, 2008
Revision: 1
Views: 4635
Posted: 03 Sep, 1997
by Dean J.
Updated: 05 Feb, 2008
by Dean J.
Problem


When building zApp as a shared library I get the following compilation error:
Borland C++ 5.0 for Win32 Copyright (c) 1993, 1996 Borland International

........srczntwin.cpp:
Error D:
ewzappworkspacesWIN95BORLAND
w/xpslist.cc 482: Illegal structure operation in function
RWTPtrSlistIterator::findNext(const zPageDef *)

Error D:
ewzappworkspacesWIN95BORLAND
w/xpslist.cc 523: Illegal structure operation in function
RWTPtrSlistIterator::removeNext(const zPageDef *)

*** 2 errors in Compile ***



Cause


There is an error in each of the files zntwin.cpp and tab.hpp.


Action


In the file zntwin.cpp change the following lines:

#if defined(__BORLANDC__)
RWTPtrSlist dummy2; //template instantiation error
#endif
To these:

 #if defined(__BORLANDC__) && defined(Z_NATIVE_NBD) RWTPtrSlist dummy2;   //template instantiation error
#elif defined(__BORLANDC__)
RWTPtrSlist dummy2;
#endif
And in the file tab.hpp find the class zPageDef and add the line indicated below:

class Z_DLLSPEC zPageDef {
public:
zPageDef(const zResId&,int id);
. . .
// ADD THIS LINE
int operator==(const zPageDef& pd ) { return ( pd.getId() == _id ) ? 1 : 0; }
void setAllowApply(int trueFalse);
int allowApply() const;
. . .
This article was:   Helpful | Not helpful
Report an issue
Article ID: 861
Last updated: 05 Feb, 2008
Revision: 1
Views: 4635
Posted: 03 Sep, 1997 by Dean J.
Updated: 05 Feb, 2008 by Dean J.

Others in this category