Hi Keith!
Keith Mendoza wrote:
You have to set Eclipse to do "-l xerces-c" and set the "-L <path to
libxerces-c.so>". I noticed that currently Eclipse is executing
-L"C:\cygwin\home\lars\xerces-c-src_2_8_0\include" that should be something
along the line of -L"C:\cygwin\home\lars\xerces-c-src_2_8_0\lib".
Thanks - as irony has it, I finished solving this problem the very
second that your reply arrived in my inbox - was about to post my
solution :) However, I do not have any libxerces-c.so file or folder
under cygwin / xerces lib folder.
What I did right now was that I included -lcygxerces-c28 and set the
searchpath to - as you correctly pointed out - the lib subfolder:
>>>
g++ -L"C:\cygwin\home\lars\xerces-c-src_2_8_0\lib" -o"readNetwork.exe"
./src/main.o -lcygxerces-c28
Info: resolving xercesc_2_8::XMLUni::fgXercescDefaultLocale by
linking to __imp___ZN11xercesc_2_86XMLUni22fgXercescDefaultLocaleE
(auto-import)
Finished building target: readNetwork.exe
>>>
That worked fine, however I had to copy cygxerces-c28.dll to the
Windows\System32 folder in order for the executable to run.
After your suggestion I had another look at the lib-folder and discovered
libxerces-c.dll.a.lnk
being a shortcut linking to
libxerces-c2_8_0.dll.a.lnk
being a shortcut linking to
libxerces-depdom28.dll.a
with the end result that I am very confused now 8-)
However, linker also works with -llibxerces-c or -lxerces-c - so I guess
I'll use -lxerces-c being the most generic library name.
Thanks for the help, now the last thing remaining is:
How do I "correctly" configure and make xerces so that the include files
end up in /usr/include and the library files in /usr/lib?
But hey - at least I can get started on parsing XML files now - so
thanks a lot for your effort!
Best Regards,
Lars