You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Abraham Nelson <ab...@yahoo.com> on 2004/10/10 22:04:43 UTC

xcode compilation problem

How the heck to I get this error out of my hair (and
get cout properly recongnized) when compiling under
Xcode?? I'm using the framework as described in the
build sections for the Mac. What headers, *EXACTLY*,
do I need to include?!?!?


In file included from
Projects/Xercestest/xercesc/util/XercesDefs.hpp:206,
                 from
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:25:
Projects/Xercestest/xercesc/util/AutoSense.hpp:306:6:
#error Code requires port to current development
environment
In file included from
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:25:
Projects/Xercestest/xercesc/util/XercesDefs.hpp:382:
error: parse error before "UTF16Ch"
Projects/Xercestest/xercesc/util/XercesDefs.hpp:382:
warning: type defaults to `int' in declaration of
`UTF16Ch'
Projects/Xercestest/xercesc/util/XercesDefs.hpp:382:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/util/XercesDefs.hpp:383:
error: parse error before "UCS4Ch"
Projects/Xercestest/xercesc/util/XercesDefs.hpp:383:
warning: type defaults to `int' in declaration of
`UCS4Ch'
Projects/Xercestest/xercesc/util/XercesDefs.hpp:383:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:37:
error: parse error before '<' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:56:
warning: type defaults to `int' in declaration of
`fHash'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:56:
warning: implicit declaration of function `new'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:56:
error: `fMemoryManager' undeclared here (not in a
function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:56:
error: initializer element is not constant
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:56:
error: parse error before "HashPtr"
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:66:
warning: type defaults to `int' in declaration of
`fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:66:
error: `TVal' undeclared here (not in a function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:66:
error: parse error before ')' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:67:
warning: type defaults to `int' in declaration of
`fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:67:
error: conflicting types for `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:66:
error: previous declaration of `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:67:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:68:
error: parse error before '}' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:86:
warning: type defaults to `int' in declaration of
`fHash'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:86:
error: redefinition of `fHash'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:56:
error: `fHash' previously defined here
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:86:
error: `hashBase' undeclared here (not in a function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:86:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:93:
error: parse error before "if"
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:96:
warning: type defaults to `int' in declaration of
`fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:96:
error: conflicting types for `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:67:
error: previous declaration of `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:96:
error: `TVal' undeclared here (not in a function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:96:
error: parse error before ')' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:97:
warning: type defaults to `int' in declaration of
`fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:97:
error: conflicting types for `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:96:
error: previous declaration of `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:97:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:98:
error: parse error before '}' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:115:
warning: type defaults to `int' in declaration of
`fHash'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:115:
error: redefinition of `fHash'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:86:
error: `fHash' previously defined here
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:115:
error: `fMemoryManager' undeclared here (not in a
function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:115:
error: initializer element is not constant
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:115:
error: parse error before "HashPtr"
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:125:
warning: type defaults to `int' in declaration of
`fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:125:
error: conflicting types for `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:97:
error: previous declaration of `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:125:
error: `TVal' undeclared here (not in a function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:125:
error: parse error before ')' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:126:
warning: type defaults to `int' in declaration of
`fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:126:
error: conflicting types for `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:125:
error: previous declaration of `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:126:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:127:
error: parse error before '}' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:136:
warning: type defaults to `int' in declaration of
`fBucketList'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:136:
error: `DOMDeepNodeListPoolTableBucketElem' undeclared
here (not in a function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:136:
error: `TVal' undeclared here (not in a function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:136:
error: parse error before ')' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:152:
warning: type defaults to `int' in declaration of
`fHash'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:152:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:177:
error: parse error before '<' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:206:
warning: type defaults to `int' in declaration of
`curElem'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:206:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:207:
warning: type defaults to `int' in declaration of
`curElem'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:207:
error: `nextElem' undeclared here (not in a function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:207:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:208:
error: parse error before '}' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:211:
error: `buckInd' undeclared here (not in a function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:211:
warning: type defaults to `int' in declaration of
`fBucketList'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:211:
error: conflicting types for `fBucketList'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:136:
error: previous declaration of `fBucketList'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:211:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:212:
error: parse error before '}' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:215:
warning: type defaults to `int' in declaration of
`fIdCounter'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:215:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:216:
error: parse error before '}' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:225:
warning: type defaults to `int' in declaration of
`fHash'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:225:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:247:
error: parse error before '<' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:326:
error: `hashVal' undeclared here (not in a function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:326:
warning: type defaults to `int' in declaration of
`fBucketList'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:326:
error: conflicting types for `fBucketList'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:211:
error: previous declaration of `fBucketList'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:326:
error: `newBucket' undeclared here (not in a function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:326:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:327:
error: parse error before '}' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:337:
warning: type defaults to `int' in declaration of
`newArray'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:337:
error: `TVal' undeclared here (not in a function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:337:
error: parse error before ')' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:343:
error: parse error before '*' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:347:
warning: type defaults to `int' in declaration of
`fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:347:
error: conflicting types for `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:126:
error: previous declaration of `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:347:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:348:
warning: type defaults to `int' in declaration of
`fIdPtrsCount'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:348:
error: `newCount' undeclared here (not in a function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:348:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:349:
error: parse error before '}' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:350:
error: parse error before "retId"
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:350:
warning: type defaults to `int' in declaration of
`retId'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:350:
error: initializer element is not constant
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:350:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:351:
warning: type defaults to `int' in declaration of
`fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:351:
error: variable-size type declared outside of any
function
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:351:
error: variable-sized object may not be initialized
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:351:
error: conflicting types for `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:347:
error: previous declaration of `fIdPtrs'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:351:
error: `valueToAdopt' undeclared here (not in a
function)
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:351:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:354:
error: parse error before "return"
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:391:
warning: type defaults to `int' in declaration of
`curElem'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:391:
error: redefinition of `curElem'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:207:
error: `curElem' previously defined here
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:391:
error: invalid type argument of `->'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:391:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:392:
error: parse error before '}' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:405:
error: parse error before '<' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:426:
warning: type defaults to `int' in declaration of
`curElem'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:426:
error: redefinition of `curElem'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:391:
error: `curElem' previously defined here
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:426:
error: invalid type argument of `->'
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:426:
warning: data definition has no type or storage class
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:427:
error: parse error before '}' token
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:326:
error: storage size of `fBucketList' isn't known
{standard input}:59:FATAL:Symbol _fHash already
defined.
	                 from
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:25:
		In file included from
Projects/Xercestest/xercesc/util/XercesDefs.hpp:206,
		
Projects/Xercestest/xercesc/util/AutoSense.hpp:306:6:
#error Code requires port to current development
environment
	In file included from
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:25:
		Projects/Xercestest/xercesc/util/XercesDefs.hpp:382:
error: parse error before "UTF16Ch"
		Projects/Xercestest/xercesc/util/XercesDefs.hpp:382:
warning: type defaults to `int' in declaration of
`UTF16Ch'



		
__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now. 
http://messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: xcode compilation problem

Posted by Abraham Nelson <ab...@yahoo.com>.
Well I did finally get it to compile; it seems copying
the header files directly to the project from within
Xcode does something that makes it fail. I just have
it fetch them directly from the location where I
uncompressed the archive instead and it compiles
without errors now. Guess I should have tried that
earlier, but I really didn't know at the time what
difference it would really have made...


--- James Berry <ja...@jberry.us> wrote:

> Abraham,
> 
> Have you tried building the samples? Do they build
> for you? If so, 
> please review how they use the headers. If not, tell
> me what happens 
> for you.
> 
> There are xcode projects for the DOMPrint and
> SAXPrint samples. These 
> build fine for me.
> 
> James.
> 
> On Oct 10, 2004, at 1:04 PM, Abraham Nelson wrote:
> 
> > How the heck to I get this error out of my hair
> (and
> > get cout properly recongnized) when compiling
> under
> > Xcode?? I'm using the framework as described in
> the
> > build sections for the Mac. What headers,
> *EXACTLY*,
> > do I need to include?!?!?
> >
> >
> > In file included from
> >
> Projects/Xercestest/xercesc/util/XercesDefs.hpp:206,
> >                  from
> >
>
Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:25:
> >
>
Projects/Xercestest/xercesc/util/AutoSense.hpp:306:6:
> > #error Code requires port to current development
> > environment
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> xerces-c-dev-help@xml.apache.org
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: xcode compilation problem

Posted by James Berry <ja...@jberry.us>.
Abraham,

Have you tried building the samples? Do they build for you? If so, 
please review how they use the headers. If not, tell me what happens 
for you.

There are xcode projects for the DOMPrint and SAXPrint samples. These 
build fine for me.

James.

On Oct 10, 2004, at 1:04 PM, Abraham Nelson wrote:

> How the heck to I get this error out of my hair (and
> get cout properly recongnized) when compiling under
> Xcode?? I'm using the framework as described in the
> build sections for the Mac. What headers, *EXACTLY*,
> do I need to include?!?!?
>
>
> In file included from
> Projects/Xercestest/xercesc/util/XercesDefs.hpp:206,
>                  from
> Projects/Xercestest/xercesc/dom/impl/DOMDeepNodeListPool.c:25:
> Projects/Xercestest/xercesc/util/AutoSense.hpp:306:6:
> #error Code requires port to current development
> environment


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org