From: Justin Y. <ju...@sk...> - 2003-04-15 15:37:33
|
Christian, You wouldn't be chance be using SWIG 1.1? I searched google and people seem to be reporting that same error on line 292 with SWIG 1.1. We've been using 1.3.16, and I seem to recall some sort of problem with SWIG 1.1 we had that made us use 1.3.x. I'd suggest either upgrading SWIG, or downloading a release I just added which has the SWIG stuff already generated. To download the release, go to http://sourceforge.net/project/showfiles.php?group_id=62306 Justin On Tue, 15 Apr 2003 09:30:24 EDT "Christian L Pearce " <pe...@co...> wrote: > Ok I see why you are using gcc 2.95. I updated my code. Everything > compiled with the new fixes you added. I am now running into a > problem with the SWIG part of the project. I haven't invested any > time into understanding the problem. I figured I would post it to see > if you guys any and starting ideas for me. > > 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 > -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE > -I../../../src/libconfig4gnu -g -O2 -c config4gnu_wrap.cxx-MT > config4gnu_wrap.lo -MD -MP -MF .deps/config4gnu_wrap.TPlo -fPIC -DPIC > -o .libs/config4gnu_wrap.lo config4gnu_wrap.cxx: In function `char* > SWIG_GetPtr(SV*, void**, char*)': config4gnu_wrap.cxx:292: `sv_undef' > undeclared (first use this function) config4gnu_wrap.cxx:292: (Each > undeclared identifier is reported only once for > each function it appears in.) > config4gnu_wrap.cxx: In function `void _swig_create_magic(SV*, char*, > int > (*)(SV*, MAGIC*), int (*)(SV*, MAGIC*))': > config4gnu_wrap.cxx:411: invalid conversion from `int (*)(SV*, > MAGIC*)' to `int > (*)(PerlInterpreter*, SV*, MAGIC*)' > config4gnu_wrap.cxx:412: invalid conversion from `int (*)(SV*, > MAGIC*)' to `int > (*)(PerlInterpreter*, SV*, MAGIC*)' > config4gnu_wrap.cxx: In function `int > _wrap_set_CfgBuiltin_PRIMITIVE(SV*, > MAGIC*)': > config4gnu_wrap.cxx:469: `CfgBuiltin' undeclared (first use this > function) config4gnu_wrap.cxx:469: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_val_CfgBuiltin_PRIMITIVE(SV*, > MAGIC*)': > config4gnu_wrap.cxx:480: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_LINK(SV*, > MAGIC*)': config4gnu_wrap.cxx:494: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_LINK(SV*, > MAGIC*)': config4gnu_wrap.cxx:505: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_LIST(SV*, > MAGIC*)': config4gnu_wrap.cxx:519: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_LIST(SV*, > MAGIC*)': config4gnu_wrap.cxx:530: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_NORMAL(SV*, > MAGIC*)': > config4gnu_wrap.cxx:544: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_NORMAL(SV*, > MAGIC*)': > config4gnu_wrap.cxx:555: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_set_CfgBuiltin_IMPORT(SV*, > MAGIC*)': > config4gnu_wrap.cxx:569: parse error before `::' token > config4gnu_wrap.cxx: In function `int _wrap_val_CfgBuiltin_IMPORT(SV*, > MAGIC*)': > config4gnu_wrap.cxx:580: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_set_CfgBuiltin_SINGLE_LINE_STRING(SV*, MAGIC*)': > config4gnu_wrap.cxx:594: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_val_CfgBuiltin_SINGLE_LINE_STRING(SV*, MAGIC*)': > config4gnu_wrap.cxx:605: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_set_CfgBuiltin_BOOLEAN(SV*, > MAGIC*)': > config4gnu_wrap.cxx:619: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_val_CfgBuiltin_BOOLEAN(SV*, > MAGIC*)': > config4gnu_wrap.cxx:630: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_set_CfgBuiltin_PROPERTY(SV*, > MAGIC*)': > config4gnu_wrap.cxx:644: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_val_CfgBuiltin_PROPERTY(SV*, > MAGIC*)': > config4gnu_wrap.cxx:655: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_set_CfgBuiltin_SECTION(SV*, > MAGIC*)': > config4gnu_wrap.cxx:669: parse error before `::' token > config4gnu_wrap.cxx: In function `int > _wrap_val_CfgBuiltin_SECTION(SV*, > MAGIC*)': > config4gnu_wrap.cxx:680: parse error before `::' token > config4gnu_wrap.cxx: In function `void > boot_config4gnu(PerlInterpreter*, CV*)': config4gnu_wrap.cxx:1507: > declaration of C function `void > boot_config4gnu(PerlInterpreter*, CV*)' conflicts with > config4gnu_wrap.cxx:426: previous declaration `void > boot_config4gnu(CV*)' here config4gnu_wrap.cxx: In function `void > boot_config4gnu(PerlInterpreter*, CV*)': config4gnu_wrap.cxx:1575: > `sv_yes' undeclared (first use this function) make[3]: *** > [config4gnu_wrap.lo] Error 1 make[3]: Leaving directory > `/home/pearcec/config4gnu/src/wrappers/perl5' make[2]: *** > [all-recursive] Error 1 make[2]: Leaving directory > `/home/pearcec/config4gnu/src/wrappers' make[1]: *** [all-recursive] > Error 1 make[1]: Leaving directory `/home/pearcec/config4gnu/src' > make: *** [all-recursive] Error 1 > > -- > Christian Pearce > www.commnav.com > > > On Mon, 14 Apr 2003 09:32:23 -0400, Jason Long wrote: > > > > I think gcc 3+ is less backwards compatible with its header files. > > Mainly I have to go through the source and make sure every time I > > use a standard template library class I qualify it using the std > > namespace. > > > > We're currently using 2.95 because that's what Gentoo was using when > > we built our computers. Switching would require recompiling all of > > our dependent libraries... libsigc++, glibmm, gtkmm, Xerces, etc. > > > > I fixed the error that you mentioned in your email. I wsa able to > > verify that it compiles with gcc 3.2, but I can only assume it will > > correctly link against other libraries compiled with gcc 3+. > > > > Jason > > > > Index: src/libconfig4gnu/BackendHelper.cc > > =================================================================== > > RCS file: > > /cvsroot/config4gnu/config4gnu/src/libconfig4gnu/BackendHelper.cc,v > > retrieving revision 1.10 > > diff -u -p -r1.10 BackendHelper.cc > > --- src/libconfig4gnu/BackendHelper.cc 11 Apr 2003 14:35:14 -0000 > > 1.10+++ src/libconfig4gnu/BackendHelper.cc 14 Apr 2003 13:23:50 -0000 > > @@ -56,9 +56,9 @@ Cfg::load_config_file(std::string filena > > void > > Cfg::save_config_file(std::string output, std::string filename) > > { > > - ofstream file; > > + std::ofstream file; > > filename = rewrite_filename(filename); > > - file.open(filename.c_str(), ios::out); > > + file.open(filename.c_str(), std::ios::out); > > assert(file.is_open()); > > > > file << output; > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > -- SkiingYAC Custom Solutions http://www.SkiingYAC.com |