From: Christian L P. <pe...@co...> - 2003-04-11 12:03:54
|
I added #include <iostream> to the src/libconfig4gnu/VirtualXMLBackendObject.cc to fix my first problem. I hit a second problem with g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"config4gnu\" -DVERSION=\"0.1.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/local/xerces-c-LINUX-c++-2_2_0//include -DPERLEXT_PATH=\"/usr/local/lib/config4gnu/perl\" -DPARSERS_PATH=\"/usr/local/libexec\" -DPARSERS_DEF_PATH=\"/usr/local/share/config4gnu/parsers\" -DSYSCONF_PATH=\"/usr/local/etc\" -DCLASS_PATH=\"/usr/local/share/config4gnu/classes\" -DFORMS_PATH=\"/usr/local/share/config4gnu/forms\" -DSCHEMAS_PATH=\"/usr/local/share/config4gnu/schemas\" -g -O2 -c BackendHelper.cc -MT BackendHelper.lo -MD -MP -MF .deps/BackendHelper.TPlo -fPIC -DPIC -o .libs/BackendHelper.lo In file included from /usr/include/c++/3.2.2/backward/fstream.h:31, from BackendHelper.cc:7: /usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. BackendHelper.cc: In function `void Cfg::save_config_file(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)': BackendHelper.cc:60: `ios' undeclared (first use this function) BackendHelper.cc:60: (Each undeclared identifier is reported only once for each function it appears in.) BackendHelper.cc:60: parse error before `::' token make[2]: *** [BackendHelper.lo] Error 1 make[2]: Leaving directory `/home/pearcec/config4gnu/src/libconfig4gnu' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/pearcec/config4gnu/src' make: *** [all-recursive] Error 1 Is there anyway to make the mailing list reply *be* the mailing list email address? -- Christian Pearce www.commnav.com On Fri, 11 Apr 2003 07:53:31 -0400 (EDT), Christian L Pearce wrote: > > Justin, Jason: > > Okay, I got configure's dependencies satisftied. (or should I say you guys did) For the record I used the following to get myself started on Red Hat 9. > > Xerces C++ : > > * Download a binary from http://xml.apache.org/xerces-c/index.html > * Untar it in /usr/local > > glib-2.0 : > > * Stock RPM's from RedHat glib2 and glib2-devel > > libsigc++ : > > * Download a tar ball from http://libsigc.sourceforge.net/stable.shtml > * rpmbuild -ta [tar ball] > > config4gnu : > > * Check out code from http://config4gnu.sf.net > * ./autogen.sh > * ./configure --with-xerces-c-root=/usr/local/xerces-c-LINUX-c++-2_2_0/ (NOTE: configure was smart enough to disable the gtk client compliation) > * make > > A couple things to note : > > * autogen complained about not having ltmain.sh, I ignored it. > - aclocal.m4:883: required file `./ltmain.sh' not found > > * make was looking for ../../libtool, I copied my /usr/bin into the root dir for config4gnu > > * I got the following compilation error : > > g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"config4gnu\" -DVERSION=\"0.1.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/local/xerces-c-LINUX-c++-2_2_0//include -DPERLEXT_PATH=\"/usr/local/lib/config4gnu/perl\" -DPARSERS_PATH=\"/usr/local/libexec\" -DPARSERS_DEF_PATH=\"/usr/local/share/config4gnu/parsers\" -DSYSCONF_PATH=\"/usr/local/etc\" -DCLASS_PATH=\"/usr/local/share/config4gnu/classes\" -DFORMS_PATH=\"/usr/local/share/config4gnu/forms\" -DSCHEMAS_PATH=\"/usr/local/share/config4gnu/schemas\" -g -O2 -c VirtualXMLBackendObject.cc -MT VirtualXMLBackendObject.lo -MD -MP -MF .deps/VirtualXMLBackendObject.TPlo -fPIC -DPIC - > VirtualXMLBackendObject.cc: In static member function `static void > Cfg::VirtualXMLBackendObject::run_parser(CfgObject*)': > VirtualXMLBackendObject.cc:84: `cout' undeclared in namespace `std' > VirtualXMLBackendObject.cc:84: `endl' undeclared in namespace `std' > VirtualXMLBackendObject.cc:85: `cout' undeclared in namespace `std' > VirtualXMLBackendObject.cc:85: `endl' undeclared in namespace `std' > VirtualXMLBackendObject.cc:86: `cout' undeclared in namespace `std' > VirtualXMLBackendObject.cc:86: `endl' undeclared in namespace `std' > VirtualXMLBackendObject.cc: In member function `virtual void > Cfg::VirtualXMLBackendObject::save()': > VirtualXMLBackendObject.cc:232: `cout' undeclared in namespace `std' > VirtualXMLBackendObject.cc:232: `endl' undeclared in namespace `std' > make[2]: *** [VirtualXMLBackendObject.lo] Error 1 > make[2]: Leaving directory `/home/pearcec/config4gnu/src/libconfig4gnu' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/pearcec/config4gnu/src' > make: *** [all-recursive] Error 1 > > Maybe this is clear for you what I did wrong? I am going to poke around with it a little bit. > > One thing of note. I noticed you didn't have any license or header information in the src file. > > Still trying to download Gentoo. > > Christian > > -- > Christian Pearce > www.commnav.com > > > On Thu, 10 Apr 2003 22:17:15 -0400, Justin Yackoski wrote: > > > > Christian, > > > > Jason and I have updated our library so that you should now be able to compile it without glibmm. You'll still need libsigc++-1.2 and glib-2.0, but hopefully you've already got those installed. Let us know if you have any trouble. > > > > Justin > > > > -- > > SkiingYAC > > Custom Solutions > > http://www.SkiingYAC.com > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > > for complex code. Debugging C/C++ programs can leave you feeling lost and > > disoriented. TotalView can help you find your way. Available on major UNIX > > and Linux platforms. Try it free. www.etnus.com > > _______________________________________________ > > Config4gnu-developer mailing list > > Con...@li... > > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > |