help-snacc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help re: compiling SNACC examples


From: Manju C Shekhar
Subject: Help re: compiling SNACC examples
Date: Tue, 20 Nov 2001 11:11:51 -0800

Hello Folks,
    I recently downloaded a copy of SNACC from the Getronics web site,
compiled  and installed it. I'm running RedHat  7.1 release., gcc 2.96.

The first thing I did was try  compiling the example programs,
but got the following errors. (The output is for the simple/ directory)
blitz:/users/manju/ASN1/SNACC/c++-examples/simple>make
../../maketail:60: dependencies: No such file or directory
touch dependencies
make depend
make[1]: Entering directory
`/users/manju/ASN1/SNACC/c++-examples/simple'
====== making (creating) p-rec.h ======
../../compiler/snacc -C -novolat -u ../../asn1specs/asn-useful.asn1
../../asn1specs/p-rec.asn1
if [ x"dependencies" != x ]; then\
          touch newdep;\
          makedepend -f newdep -I../.. -I../../c++-lib/inc  -DMAKEDEPEND

-I/usr//lib/g++-include -I/usr/local/include
-I/usr/lib/gcc-lib/i386-redhat-linux/2.96/include p-rec.C   genber.C
example.C;\
          mv newdep dependencies;\
          rm -f newdep.bak;\
        fi
cpp: genber.C: No such file or directory
cpp: No input files
cpp: example.C: No such file or directory
cpp: No input files
Appending dependencies to newdep
cp dependencies deps
for dir in def-obj indef-obj; do\
          < dependencies sed -e 's:^\(.*\.o\):'"$dir"'/\1:' >> deps;\
        done
mv deps dependencies
make[1]: Leaving directory `/users/manju/ASN1/SNACC/c++-examples/simple'

====== making (creating) def-obj/p-rec.o ======
make LENFLAG= `echo def-obj | sed -e 's:/$::'` p-rec.o
make[1]: Entering directory
`/users/manju/ASN1/SNACC/c++-examples/simple'
mkdir def-obj
====== making (creating) p-rec.o ======
c++ -I../.. -I../../c++-lib/inc  -g -O2 -DVDADER_RULES
-fhandle-exceptions -c -o p-rec.o p-rec.C
cc1plus: warning: -fhandle-exceptions has been renamed to -fexceptions
(and is now on by default)
In file included from p-rec.C:11:
p-rec.h:45: syntax error before `;'
p-rec.h:46: syntax error before `;'
p-rec.h:47: syntax error before `;'
p-rec.h:72: field `dateOfBirth' has incomplete type
p-rec.h:159: syntax error before `;'
p-rec.h:161: field `dateOfHire' has incomplete type
p-rec.C: In method `AsnLen Name::BEncContent (AsnBuf &)':
p-rec.C:126: `familyName' undeclared (first use this function)
p-rec.C:126: (Each undeclared identifier is reported only once for each
function it appears in.)
p-rec.C:132: `initial' undeclared (first use this function)
p-rec.C:138: `givenName' undeclared (first use this function)
p-rec.C: In method `AsnLen ChildInformation::BEncContent (AsnBuf &)':
p-rec.C:377: `dateOfBirth' undeclared (first use this function)
p-rec.C: In method `void ChildInformation::Print (ostream &) const':
p-rec.C:503: parse error before `?'
p-rec.C:508: confused by earlier errors, bailing out
make[1]: *** [p-rec.o] Error 1
make[1]: Leaving directory `/users/manju/ASN1/SNACC/c++-examples/simple'

make: *** [def-obj/p-rec.o] Error 2
blitz:/users/manju/ASN1/SNACC/c++-examples/simple>


On closer examination, it seems that ChoiceUnion is defined to nothing.
If I tried to compile any arbitrary .asn file by just calling snacc
<asn_file>
it works fine.
Only, none of the example programs seem to be compiling.
I'd highly appreciate it, if  anyone could help me resolve this issue,


Thanks & regards
Manju Shekhar
San Jose, CA








reply via email to

[Prev in Thread] Current Thread [Next in Thread]