Installation Question for libxml & Borland C++ 5 Compiler



 DEVELOP > c-Plus-Plus > Installation Question for libxml & Borland C++ 5 Compiler

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "Kenneth Gomez"
Date: 03 Dec 2004 06:25:25 PM
Object: Installation Question for libxml & Borland C++ 5 Compiler
Hello,
I have tried many avenues (web search, borland website, libxml
website) before deciding to post here.
I'm trying to install libxml2 on windows ME to work with my Borland
C++ 5 Compiler (command line).
Read through the installation guides from xmlsoft.org.
Downloaded libxml2, libinconv-1.9.1 and zlib.
Followed the instructions for the zlib installation. However, it seems
that libinconv can only be compiled using Microsoft Visual C++. Is
there an alternative method for a Borland C++ 5 (command line) user
like me?
Using the example, tree1.c from xmlsoft and compiling like this, I get
the following errors :

bcc32 -a -c tree1.c

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
tree1.c:
Warning W8004 tree1.c 33: 'cur_node' is assigned a value that is never
used in function print_element_names
Warning W8004 tree1.c 54: 'root_element' is assigned a value that is
never used in function main
Warning W8004 tree1.c 53: 'doc' is assigned a value that is never used
in function main

bcc32 tree1.obj zdllbor.lib

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_xmlCheckVersion' referenced from
C:\PROG\KEN\C\TREE1.OBJ
Error: Unresolved external '_xmlReadFile' referenced from
C:\PROG\KEN\C\TREE1.OBJ
Error: Unresolved external '_xmlDocGetRootElement' referenced from
C:\PROG\KEN\C\TREE1.OBJ
Error: Unresolved external '_xmlFreeDoc' referenced from
C:\PROG\KEN\C\TREE1.OBJ
Error: Unresolved external '_xmlCleanupParser' referenced from
C:\PROG\KEN\C\TREE1.OBJ
In my Borland's bin directory, I have 2 comfiguration files, bcc32.cfg
and ilink32.cfg which have the following lines :
bcc32.cfg -->
-I"c:\prog\Borland\Bcc55\include"
-L"c:\prog\Borland\Bcc55\lib;C:\prog\Borland\BCC55\Include\libxml"
ilink32.cfg -->
-L"c:\Borland\Bcc55\lib;C:\prog\Borland\BCC55\Include\libxml"
What else must I do in order to get tree1.c to compile cleanly?
Your advise is very much appreciated.
Thank you.
Cheers,
Kenneth Gomez.
.

User: "Thomas Matthews"

Title: Re: Installation Question for libxml & Borland C++ 5 Compiler 03 Dec 2004 08:51:50 PM
Kenneth Gomez wrote:

Hello,

I have tried many avenues (web search, borland website, libxml
website) before deciding to post here.

I'm trying to install libxml2 on windows ME to work with my Borland
C++ 5 Compiler (command line).

This newsgroup does not discuss the implementations of various
compilers and libraries. My suggestion is to ask in a Borland
newsgroup and CC to a Windows ME newsgroup. See the FAQs in my
signature for proper newsgroups.
[snip]


What else must I do in order to get tree1.c to compile cleanly?

Be aware that there is no standard for library formats. There
is no requirement that one library format work with any compiler.
Also search the newsgroups and the web for "name mangling". There
is no requirement that a library of one platform work with a
compiler on another one.


Your advise is very much appreciated.

Compilers are allowed to mangle identifier names so that each
overloaded function has a unique symbol. This allows C++ compilers
to use the library machinery of a C compiler. There is no
standard or requirement for name mangling. For example, Borland
may have one method for mangling that is incompatible with Microsoft,
Metaware or Comeau. A library compiled with the Metaware compiler
may have name mangling that is incompatible with Borland's compiler.
Most library vendors will deliver a binary library for use with
a specific compiler or deliver the source code. My advice is
to talk to the library vendor.


Thank you.


Cheers,
Kenneth Gomez.

--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
.
User: "Kenneth Gomez"

Title: Re: Installation Question for libxml & Borland C++ 5 Compiler 04 Dec 2004 09:35:32 AM
Hello Thomas,
Thank you very much for replying. I will try the appropriate group. I
did send to the xml group but there was no reply. I am at a loss here.
Since I am doing this alone, I dont have any other place to refer to.
I do not know if it is the way I link the include and lib files or
whether it is a problem with the libxml library.
I will try as you have mentioned.
Thank you.
Regards,
Kenneth.
On Sat, 04 Dec 2004 02:51:50 GMT, Thomas Matthews
<Thomas_MatthewsSpamBotsSuck@sbcglobal.net> wrote:

Kenneth Gomez wrote:

Hello,

I have tried many avenues (web search, borland website, libxml
website) before deciding to post here.

I'm trying to install libxml2 on windows ME to work with my Borland
C++ 5 Compiler (command line).

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library

Cheers,
Kenneth Gomez.
.



  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER