I have STRANGE problems with libxml2..... I'v installed the library, and i whanted to compile the examples from the "http://xmlsoft.org/examples/index.html" site.... (especially the "parse1.c' and the "parse2.c"). I can compile this files without any problems - I have the "parse1.exe' file - and going after the instructions i was trying to execute this program in the following way: "parse1.exe test1.xml" [ENTER].... Then the program crash... :-(((( WHY????????
Here are some additional infos:
1. My operation system: Windows98
2. I have the Dev-C++ v4.9.7.0
3. I'v download the "libxml2-2.6.7.win32.zip" file from "http://www.zlatkovic.com/projects/libxml/" site
4. The "libxml2.dll" from "libxml2-2.6.7.win32.zip" I'v copy to "c:\windows\system" directory
5. The "*.h" files from "libxml2-2.6.7.win32.zip" I'v copy to a "c:\program files\dev-cpp\include\libxml" directory
6. The "libxml2.lib" and the "libxml2_a.lib" I'v copy to a "c:\program files\dev-cpp\lib\" directory
7. In the "Project->Project Options->Linker Opitions" I have add: "C:\Program files\Dev-Cpp\lib\libxml2.lib"
8. I'v set the path in the "Project->Project Options->Files/Directories->Library Direstories" for "C:\Program files\Dev-Cpp\lib"
9. I'v set the path in the "Project->Project Options->Files/Directories->Include Direstories" for "C:\Program files\Dev-Cpp\include\libxml"
9. In the "Project->Project Options->Compiler" I was traing to add: "-lxml2" - without any effect
10. I was trying alsow with "libxml2_a.lib" instead the 'libxml2.lib" - without any effect
What I'am doing wrong? PLEAS HELP ME!!!! I'am studying the mathematic and I'am not good in things like programming..... but i have to write a program in libxml2 and DevC++....... Pleas HELP ME!!!!!
(should I recompile the libxml2 under the gcc?, how to do this?, mayby wrong version of libxml?, mayby I should set some flags to a compiler?, where to do this?............. I'am confused HELP ME!!!!!!)
sorry for BAD English.......
THANKS FOR ANY HELP!!!!!!!!!!!!!!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
so do you expect more help after you talk like that?
take note that:
- nobody is employed to answer questions in the forum
- not everybody uses libxml2
- this is not a libxml2 forum
anyway, about your problem:
- 4.9.7.0 is VERY old (but I think that as long as your program compiles, that's not the problem)
- you gave lots of information, but you didn't mention the most important thing: your compile log
- you should use a lib*.a file, not a *.lib file for linking
Adrian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have really big problem with the libXml... my graduation work on the University of Rzeszw depends on libXml.... So I'am really confused about the intresting in my question on this forum..... Sorry for bad words.... But i see that it is a good way to interest some people in my problem..... I'v didnt mention the compile log because it looks fine...
I know that i should add the *.a file for linking... but I'v read somewer that i can alsow add the *.lib for a linker and that should work too. I have no *.a file with this libxml package... I know that i can generate it from the *.dll or *.lib file... Should i do this....(????)
Sorry for bad words.... once again.....
Thanks for ANY intresting....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
From the page linked(http://www.zlatkovic.com/libxml.en.html)
in the OP's first message:
(Under "NOTES")
"If you use Windows 95, Windows 98 or Windows ME operating systems, then you are on your own. Maybe it will work out of the box, maybe it won't. I neither use nor understand these. The binaries are supported on an operating system based on the NT-kernel, such as Windows NT, Windows 2000 and Windows XP, exclusively."
OP (also in first message):
"1. My operation system: Windows98"
I believe a forum search on libxml or libxml2 will bring up at least one useful thread on the subject....
(For future reference....)
-- Jim.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have libxml2 devpak... its not working better then the package "libxml2-2.6.7.win32.zip".... :-(
But I understand that here could be problems because I have wrong version of operation system.... (Why i didn't saw this message on the zlatkovic site?????)
(I'am studing mathematic on university.. not a programming... so i don't understand what is telling me the "Anonymous - nobody")
I'AM OFFICIALY SORRY FOR MY RUDE WORDS
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
btw, you installed Dev-C++ under Program Files, that's a bad idea
see http://www14.brinkster.com/aditsu/dev-cpp-faq.html#install
one example of bad effect is in your compile log:
-L"C:/PROGRAM" -L"FILES/DEV-CPP/lib"
that's not nice at all
if you reinstall and try the devpak (and remove all *.lib files) and you still have problems, then post the compile log that you get immediately after a *full* rebuild (ctrl-f11)
Adrian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for All people who intrests in my problem.... I'v found the solution.... so if you are using libxml and Dev-C++ .... and you have the same problem - then go here:
I have STRANGE problems with libxml2..... I'v installed the library, and i whanted to compile the examples from the "http://xmlsoft.org/examples/index.html" site.... (especially the "parse1.c' and the "parse2.c"). I can compile this files without any problems - I have the "parse1.exe' file - and going after the instructions i was trying to execute this program in the following way: "parse1.exe test1.xml" [ENTER].... Then the program crash... :-(((( WHY????????
Here are some additional infos:
1. My operation system: Windows98
2. I have the Dev-C++ v4.9.7.0
3. I'v download the "libxml2-2.6.7.win32.zip" file from "http://www.zlatkovic.com/projects/libxml/" site
4. The "libxml2.dll" from "libxml2-2.6.7.win32.zip" I'v copy to "c:\windows\system" directory
5. The "*.h" files from "libxml2-2.6.7.win32.zip" I'v copy to a "c:\program files\dev-cpp\include\libxml" directory
6. The "libxml2.lib" and the "libxml2_a.lib" I'v copy to a "c:\program files\dev-cpp\lib\" directory
7. In the "Project->Project Options->Linker Opitions" I have add: "C:\Program files\Dev-Cpp\lib\libxml2.lib"
8. I'v set the path in the "Project->Project Options->Files/Directories->Library Direstories" for "C:\Program files\Dev-Cpp\lib"
9. I'v set the path in the "Project->Project Options->Files/Directories->Include Direstories" for "C:\Program files\Dev-Cpp\include\libxml"
9. In the "Project->Project Options->Compiler" I was traing to add: "-lxml2" - without any effect
10. I was trying alsow with "libxml2_a.lib" instead the 'libxml2.lib" - without any effect
What I'am doing wrong? PLEAS HELP ME!!!! I'am studying the mathematic and I'am not good in things like programming..... but i have to write a program in libxml2 and DevC++....... Pleas HELP ME!!!!!
(should I recompile the libxml2 under the gcc?, how to do this?, mayby wrong version of libxml?, mayby I should set some flags to a compiler?, where to do this?............. I'am confused HELP ME!!!!!!)
sorry for BAD English.......
THANKS FOR ANY HELP!!!!!!!!!!!!!!!
This forum is a BIG shit! No one can help me????? Thanks!!!!!!!!!!!!!!!! :-(
so do you expect more help after you talk like that?
take note that:
- nobody is employed to answer questions in the forum
- not everybody uses libxml2
- this is not a libxml2 forum
anyway, about your problem:
- 4.9.7.0 is VERY old (but I think that as long as your program compiles, that's not the problem)
- you gave lots of information, but you didn't mention the most important thing: your compile log
- you should use a lib*.a file, not a *.lib file for linking
Adrian
I have really big problem with the libXml... my graduation work on the University of Rzeszw depends on libXml.... So I'am really confused about the intresting in my question on this forum..... Sorry for bad words.... But i see that it is a good way to interest some people in my problem..... I'v didnt mention the compile log because it looks fine...
Hear it is:
"
Compiler: Default compiler
Building Makefile: "D:\PROBY\VVVVV\Makefile.win"
Executing make...
make.exe -f "D:\PROBY\VVVVV\Makefile.win" all
gcc.exe parse1.o -o "PARSE1.exe" -L"C:/PROGRAM" -L"FILES/DEV-CPP/lib" -L"C:/Program files/Dev-Cpp/lib" "C:/Program files/Dev-Cpp/lib/libxml2.lib" -I"C:/Program files/Dev-Cpp/include/libxml" -lxml2
Execution terminated
Compilation successful
"
I know that i should add the *.a file for linking... but I'v read somewer that i can alsow add the *.lib for a linker and that should work too. I have no *.a file with this libxml package... I know that i can generate it from the *.dll or *.lib file... Should i do this....(????)
Sorry for bad words.... once again.....
Thanks for ANY intresting....
And here are the infos from the "Makefile.win":
"
# Project: parse1
# Makefile created by Dev-C++ 4.9.7.0
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = parse1.o $(RES)
LIBS = -L"C:/PROGRAM" -L"FILES/DEV-CPP/lib" -L"C:/Program files/Dev-Cpp/lib" "C:/Program files/Dev-Cpp/lib/libxml2.lib"
INCS = -I"C:/Program files/Dev-Cpp/include/libxml"
BIN = PARSE1.exe
CXXFLAGS = $(INCS) -lxml2
CFLAGS = $(INCS) -lxml2
.PHONY: all all-before all-after clean clean-custom
all: all-before PARSE1.exe all-after
clean: clean-custom
rm -f $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CC) $(OBJ) -o "PARSE1.exe" $(LIBS) $(CFLAGS)
parse1.o: parse1.c
$(CC) -c parse1.c -o parse1.o $(CFLAGS)
"
Maybe you should stay another year at the university and study programming!
From the page linked(http://www.zlatkovic.com/libxml.en.html)
in the OP's first message:
(Under "NOTES")
"If you use Windows 95, Windows 98 or Windows ME operating systems, then you are on your own. Maybe it will work out of the box, maybe it won't. I neither use nor understand these. The binaries are supported on an operating system based on the NT-kernel, such as Windows NT, Windows 2000 and Windows XP, exclusively."
OP (also in first message):
"1. My operation system: Windows98"
I believe a forum search on libxml or libxml2 will bring up at least one useful thread on the subject....
(For future reference....)
-- Jim.
maybe you should find a libxml2 devpak (I think there is one somewhere)
also, forum search is a good idea
Adrian
Thanks a lot for your help!!!!
I have libxml2 devpak... its not working better then the package "libxml2-2.6.7.win32.zip".... :-(
But I understand that here could be problems because I have wrong version of operation system.... (Why i didn't saw this message on the zlatkovic site?????)
(I'am studing mathematic on university.. not a programming... so i don't understand what is telling me the "Anonymous - nobody")
I'AM OFFICIALY SORRY FOR MY RUDE WORDS
btw, you installed Dev-C++ under Program Files, that's a bad idea
see http://www14.brinkster.com/aditsu/dev-cpp-faq.html#install
one example of bad effect is in your compile log:
-L"C:/PROGRAM" -L"FILES/DEV-CPP/lib"
that's not nice at all
if you reinstall and try the devpak (and remove all *.lib files) and you still have problems, then post the compile log that you get immediately after a *full* rebuild (ctrl-f11)
Adrian
Thanks for All people who intrests in my problem.... I'v found the solution.... so if you are using libxml and Dev-C++ .... and you have the same problem - then go here:
http://www.pokorra.de/coding/compile_libxml_mingw.html
THANKS FOR ALL!!!!!!! By!