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 vithal sripada <vi...@yahoo.co.uk> on 2004/05/12 06:02:24 UTC

do i have to use makefile.in to compile ?

hi 
   i wanted to know wether i have to use makefile.in to compile the sample prgms......the object files in /bin are executing fine but when i try to execute the files in sample directory i get the following error........
 
> gcc SAXPrint.cpp
SAXPrint.cpp:147:42: xercesc/util/PlatformUtils.hpp: No such file or directory
SAXPrint.cpp:148:41: xercesc/util/TransService.hpp: No such file or directory
SAXPrint.cpp:149:41: xercesc/parsers/SAXParser.hpp: No such file or directory
In file included from /usr/local/include/c++/3.3.2/backward/iostream.h:31,
                 from SAXPrint.hpp:91,
                 from SAXPrint.cpp:150:
/usr/local/include/c++/3.3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from SAXPrint.hpp:94,
                 from SAXPrint.cpp:150:
SAXPrintHandlers.hpp:101:42: xercesc/sax/HandlerBase.hpp: No such file or directory
SAXPrintHandlers.hpp:102:49: xercesc/framework/XMLFormatter.hpp: No such file or directory
In file included from SAXPrint.hpp:94,
                 from SAXPrint.cpp:150:
SAXPrintHandlers.hpp:106: error: syntax error before `:' token
SAXPrintHandlers.hpp:117: error: destructors must be member functions
SAXPrintHandlers.hpp:125: error: parse error before `*' token
SAXPrintHandlers.hpp:130: error: parse error before `*' token
SAXPrintHandlers.hpp:141: error: parse error before `*' token
SAXPrintHandlers.hpp:143: error: parse error before `*' token
SAXPrintHandlers.hpp:147: error: parse error before `*' token
SAXPrintHandlers.hpp:153: error: parse error before `*' token
SAXPrintHandlers.hpp:159: error: parse error before `*' token
SAXPrintHandlers.hpp:166: error: parse error before `&' token
SAXPrintHandlers.hpp:167: error: parse error before `&' token
SAXPrintHandlers.hpp:168: error: parse error before `&' token
SAXPrintHandlers.hpp:177: error: parse error before `*' token
SAXPrintHandlers.hpp:184: error: parse error before `*' token
In file included from SAXPrint.cpp:150:
SAXPrint.hpp:107: error: parse error before `*' token
SAXPrint.hpp:114: error: ISO C++ forbids defining types within return type
SAXPrint.hpp:114: error: destructors must be member functions
SAXPrint.hpp:114: error: return type specification for destructor invalid
SAXPrint.hpp: In function `void StrX()':
SAXPrint.hpp:115: error: `XMLString' undeclared (first use this function)
SAXPrint.hpp:115: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
SAXPrint.hpp:115: error: parse error before `::' token
SAXPrint.hpp: At global scope:
SAXPrint.hpp:122: error: non-member function `const char* localForm()' cannot 
   have `const' method qualifier
SAXPrint.hpp: In function `const char* localForm()':
SAXPrint.hpp:123: error: `fLocalForm' undeclared (first use this function)
SAXPrint.hpp: At global scope:
SAXPrint.hpp:126: error: parse error before `private'
SAXPrint.hpp:136: error: syntax error before `&' token
SAXPrint.cpp:183: error: syntax error before `::' token
SAXPrint.cpp:185: error: syntax error before `::' token
SAXPrint.cpp: In function `void usage()':
SAXPrint.cpp:194: error: parse error before `<<' token
SAXPrint.cpp: In function `int main(int, char**)':
SAXPrint.cpp:224: error: `XMLPlatformUtils' undeclared (first use this 
   function)
SAXPrint.cpp:224: error: parse error before `::' token
SAXPrint.cpp:227: error: parse error before `&' token
SAXPrint.cpp: At global scope:
SAXPrint.cpp:235: error: parse error before `if'
SAXPrint.cpp:238: error: syntax error before `::' token
SAXPrint.cpp:243: error: parse error before `for'
SAXPrint.cpp:243: error: `argC' was not declared in this scope
SAXPrint.cpp:243: error: parse error before `;' token
SAXPrint.cpp:243: error: syntax error before `++' token
SAXPrint.cpp:253: error: syntax error before `::' token
SAXPrint.cpp:270: error: syntax error before `::' token
SAXPrint.cpp:309: error: syntax error before `::' token
SAXPrint.cpp:327: error: syntax error before `::' token
SAXPrint.cpp:330: error: ISO C++ forbids declaration of `xmlFile' with no type
SAXPrint.cpp:330: error: conflicting types for `int xmlFile'
SAXPrint.cpp:184: error: previous declaration as `char*xmlFile'
SAXPrint.cpp:330: error: `argV' was not declared in this scope
SAXPrint.cpp:337: error: syntax error before `*' token
SAXPrint.cpp:338: error: syntax error before `->' token
SAXPrint.cpp:339: error: syntax error before `->' token
SAXPrint.cpp:340: error: syntax error before `->' token
SAXPrint.cpp:341: error: syntax error before `->' token
SAXPrint.cpp:349: error: parse error before `try'
SAXPrint.cpp:352: error: syntax error before `->' token
SAXPrint.cpp:353: error: syntax error before `->' token
SAXPrint.cpp:354: error: syntax error before `->' token
SAXPrint.cpp:355: error: ISO C++ forbids declaration of `errorCount' with no 
   type
SAXPrint.cpp:355: error: redefinition of `int errorCount'
SAXPrint.cpp:331: error: `int errorCount' previously defined here
SAXPrint.cpp:355: error: `parser' was not declared in this scope
SAXPrint.cpp:356: error: parse error before `}' token
SAXPrint.cpp:363: error: ISO C++ forbids declaration of `errorCode' with no 
   type
SAXPrint.cpp:363: error: redefinition of `int errorCode'
SAXPrint.cpp:348: error: `int errorCode' previously defined here
SAXPrint.cpp:364: error: parse error before `}' token
SAXPrint.cpp:376: error: syntax error before `::' token
> 

i've set class path as specified ...i'm even able to make use of the object files as told above by passing an xml file as an input..............
 
can u guyzz where am i going worng ? 
 
should use makefile.in that is present in the folder ?
 
or can use the gcc command ?
 
if i have to use makefile.in so i need to make some changes to it ? if no how do i execute the makefile.in ? just type makefile.in ? 
 
when i typpe makefile.in i get the following ?
 
> Makefile.in 
PLATFORM: Command not found.
COMPILER: Command not found.
GCC: Command not found.
GXX: Command not found.
CXXFLAGS: Command not found.
CFLAGS: Command not found.
LDFLAGS: Command not found.
THREADS: Command not found.
EXTRA_LIBS: Command not found.
PREFIX: Command not found.
/usr/local/netpbm/include: Permission denied.
/usr/local/netpbm/include: Permission denied.
APP_NAME=SAXPrint: Command not found.
XERCESCOUT: Undefined variable.
> 

any kind of advice or help is appreciated 
 
raja

		
---------------------------------
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now