hi,
the macro OSS_SPARTAN_AWARE conditionally
declares the following :-
extern void
_oss_run_SOED_on_INTEL_X86_LINUX_20(void);
in the generated C
file, where it then goes on to call this function, again conditionally, i.e. if
OSS_SPARTAN_AWARE is
defined.
my problem is that
inspite of all my efforts, somehow when i link my program (using other
3rd party libs too), with libasn1code.so (or .a for that matter), all other
symbols s.a. ossPrint() get resolved, except this one. what could be the problem
? i've tried compiling/linking in following manner...
g++ -D_GNU_SOURCE -pthread -Wall -fexceptions -ansi
-pedantic -I
/home/dutta/ASN1_tools/Clang/ossasn1/linux-glibc2.2.trial/6.1.2/include/ -I .
MyAppMain.o MyTank.o -o MyTankApp MyAppMain.C
-L/home/dutta/ASN1_tools/Clang/ossasn1/linux-glibc2.2.trial/6.1.2/lib
-lasn1code -Wl,-rpath -L/opt/garbo/lib-lGarbo -lgarbo -lpthread -lm -ldl
-Wl,-a,shared
BERdec.o: In function `_ossinit_NC_IS41Dsms(ossGlobal *)':
BERdec.o(.text+0x7f): undefined reference to `_oss_run_SOED_on_INTEL_X86_LINUX_20(void)'
collect2: ld returned 1 exit status
i've generated the C
file using the following options:-
asn1 ../../asn1dflt.linux-x86 BERdec.asn
-ber
note that i don't
have this problem when i compile the sample problem.
any
ideas/pointers/hints ??
thanks & regards,
Banibrata Dutta
Hewlett-Packard ISO Pvt. Ltd,
29, Cunningham Road,
Bangalore
- 560052, India.
Tel: +91-80-22051796