[Expat-discuss] Using the Win32 binary DLL?

Greg Martin Greg.Martin at TELUS.COM
Wed Jul 9 08:24:57 EDT 2003


Did you add it to the Project->Settings->Link pane. If not select the General choice in the drop down list and add expat lib to the Object/library modules: text field. If the lib isn't in a system directory the lib path can be added by selecting the input drop down selection and adding the path to
the appropriate text field.

-----Original Message-----
From: warren henning [mailto:w_k_henning at hotmail.com]
Sent: Tuesday, July 08, 2003 5:37 PM
To: expat-discuss at libexpat.org
Subject: [Expat-discuss] Using the Win32 binary DLL?


I'm using Visual C++ 6.

I looked at the expat documentation (\Doc\reference.html) and it said "you 
may download the Win32 binary package that contains the "expat.h" include 
file and a pre-built DLL." This is precisely what I am attempting to do.

I tried to build the example program, outline, using only the binary dll 
(libexpat.dll) by making a new project in a different directory with 
libexpat.directory in the same directory as the outline.c file i copied and 
pasted to the new directory. The copied C file was added to the project. Not 
knowing exactly what to do, I also added the libexpat.dll into the workspace 
so that it appeared in the file list. I don't know if that does anything at 
all.

I attempted to buidl using the above configuration and got unresolved 
external symbol errors like so:

dlltest.obj : error LNK2001: unresolved external symbol 
__imp__XML_GetCurrentLineNumber
dlltest.obj : error LNK2001: unresolved external symbol 
__imp__XML_ErrorString
dlltest.obj : error LNK2001: unresolved external symbol 
__imp__XML_GetErrorCode

etc etc. All the XML parser stuff. I looked at the error message 
documentation and it didn't give any indication of what could have caused 
the problem. I searched with Google to no avail.

I zipped up the actual project directory with all the relevant files. It is 
a 245kb zip archive that can be downloaded at:

http://wkh.daysbackwhen.com/dlltest.zip

If someone wanted to download that, fix the problem(s), zip the files back 
up, and email the fixed project all zipped up as an email attachment, that'd 
be ideal.

(However if someone wishes to offer written help instead that's also 
appreciated.)

Any help is appreciated, thanks in advance.

-Warren

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


_______________________________________________
Expat-discuss mailing list
Expat-discuss at libexpat.org
http://mail.libexpat.org/mailman/listinfo/expat-discuss





More information about the Expat-discuss mailing list