Hi Vithal,

At 01.12 12/05/2004 +0100, vithal sripada wrote:
hi
 the machine on which i'm working is as follows......

Machine hardware:   sun4u
OS version:         5.9
Processor type:     sparc
Hardware:           SUNW,Sun-Blade-1000

and when i've typed

> gcc $version
gcc: tcsh: No such file or directory
gcc: 6.12.00: No such file or directory
gcc: (Astron): No such file or directory
gcc: 2002-07-23: No such file or directory
gcc: (sparc-sun-solaris): No such file or directory
gcc: options: No such file or directory
gcc: 8b,nls,dl,al,rh,color,filec: No such file or directory
gcc: no input files

You should type "gcc --version" to get the version of your compiler



i've downloaded the binary version and extracted versoin is currently in my home directory and name of the folder is "xerces"


echo $HOME
/home/vsripada

so my .cshrc looks like this

set path = ($path $HOME/xerces/bin)

setenv XERCESCROOT '$HOME'/xerces/include

as far as i understood XERCESCROOT should point out to directory where all the include files are present so is this correct. ??? as the simple SAXPrint.cpp program includes some files from
xercesc/util folder

No, XERCESCROOT should point to $HOME/xerces, with no quotes, like in


setenv XERCESCROOT $HOME/xerces


setenv XERCESCOUT '$HOME'/xerces


this XERCESCOUT has been defined after seeing the Makefile.in that comes along with sample prgm.....as in that file this variable has been used to for specfying where object and exectuables should be placed......as compiling it....

You can avoid defining this variable



setenv LD_LIBRARY_PATH $XERCESCOUT/lib this points to lib directory

Change it to be


setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:$XERCESCROOT/lib


setenv CLASSPATH '$LD_LIBRARY_PATH':'$LD_LIBRARY_PATH':'$CLASSPATH'
setenv CLASSPATH '$XERCESCOUT'/lib/libxerces-c.so:'$XERCESCOUT'/lib/libxerces-c.so.25:'$XERCESCOUT'/lib/libxerces-c.so.25.0:'$LD_LIBRARY_P$

As I told you, CLASSPATH is only used by Java program, why do you want to define it?



explicitly specfying the class path for the 3 files in the lib directory.....


when i go to bin directory and give a xml file ....it prints me the file.....

but when i want to compile the sample prgm file present in SAXPrint directory...i'm getting problem.....i've a very basic doubt...how do i make use of makefile.in present in the SAXPrint ........

should i simply type ...Makefile.in or

do i need to make some changes to it (the makefile.in) ......?

You need to build a Makefile from Makefile.in, using:


./runConfigure -p solaris
gmake

Alberto



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to