[xml] RE: Link warning on xmlFree in Visual Studio link


Excellent idea. I compare my project with the makefile and found that /D
LIBXML_STATIC was missing.
After adding it to VC the warning disappeared.

Israel Ganor

-----Original Message-----
From: Igor Zlatkovic [mailto:igor zlatkovic com] 
Sent: Saturday, February 28, 2004 5:53 PM
To: Israel Ganor; xml gnome org
Subject: Re: Link warning on xmlFree in Visual Studio link

Israel Ganor wrote:


I'm developing an application using a static lib libxml 
(libxml2_a.lib) in Visual Studio 6.0. Everything goes fine 
except for 
a warning that appears on every build:

LINK : warning LNK4049: locally defined symbol "_xmlFree" imported
(LNK4049: The symbol was both exported from and imported to the 

Any ideas how to eliminate it?

I compile with VC all the time and don't have that warning. 
Your project 
file probably doesn't define everything the makefile in win32/ does.

Check the win32/Makefile.msvc and make sure that every /D 
switch there 
is reflected in your project file.

If that fails, then read win32/readme.txt and compile from 
the command 
line. If you still get the same error, then post back, it's a bug.


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