Operating System - HP-UX
1827849 Members
1968 Online
109969 Solutions
New Discussion

Re: problem when linking xercesc using gcc

 
SOLVED
Go to solution
jiangyi_1
Advisor

problem when linking xercesc using gcc

hello every one!I have problem when linking xercesc with my program using gcc(3.3.2) under hpux11.00.the xercesc binary is compiled by aCC , i download it from apache.org.when linking, gcc report ,usatisfied symbol, all the symbol unsatisified are from xercesc.Is the problem caused by the xerces binary compiled by aCC?
7 REPLIES 7
jiangyi_1
Advisor

Re: problem when linking xercesc using gcc

the same program was successfully compiled under redhat linux 9 with xerces-c and gcc,but when i try to compile it in hpux use gcc,it report me unsatisfied symbol.it looks like the error may be casued by namespace xercesc_2_5.the error was attached. Anyone can help me to link my program ?
T G Manikandan
Honored Contributor

Re: problem when linking xercesc using gcc

I would suggest you to try dowloading the source and then compiling them using the gcc compiler.

T G Manikandan
Honored Contributor

Re: problem when linking xercesc using gcc

Are you sure that you are using GNU version of make.

you can get GNU make at
http://hpux.cs.utah.edu/hppd/hpux/Gnu/make-3.80/
jiangyi_1
Advisor

Re: problem when linking xercesc using gcc

yes, i am using gmake & gcc together.I had download the xerces c soruce, but i cannot compile it with gcc, there are errors.before compile it ,i do "./runConfigure -php-11 -cgcc -xg++" first, and gmake it. but i doesnt works. but I can compile it with make and aCC successful.Another question, when i use aCC to link my program , it reports "unresovled symbol main"? I have main function, the same program works fine under linux.
T G Manikandan
Honored Contributor

Re: problem when linking xercesc using gcc

Did you download the xerces binary from the site

That was built using the aCC version A03.13.

Then if you are using a different version of aCC then it would cause problems.

T G Manikandan
Honored Contributor
Solution

Re: problem when linking xercesc using gcc

Do try this one

this binary was built using gcc3.2

http://hpux.cs.utah.edu/hppd/hpux/Development/Libraries/xerces_c-1.6.0/

Revert
jiangyi_1
Advisor

Re: problem when linking xercesc using gcc

Thank you very much :)I have successful compiling all the source with aCC and xerces-c.may be the best choice under hpux is aCC, though gcc is very good enougth.