LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   glibmm problem (https://www.linuxquestions.org/questions/linux-newbie-8/glibmm-problem-179978/)

zmieff 05-10-2004 12:07 PM

glibmm problem
 
hi

i'm trying to compile glibmm.

when i type in "make", I get some errors:

Code:

g++ -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"glibmm\" -Dglibmm_COMPILATION -DG_DISABLE_DEPRECATED -I../../glib -I../../glib -I../../pango -I../../pango -I../../atk -I../../atk -I../../gdk -I../../gdk -I../../gtk -I../../gtk -I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT spawn.lo -MD -MP -MF .deps/spawn.Tpo -c spawn.cc  -fPIC -DPIC -o .libs/spawn.o
In file included from spawn.cc:3:
../../glib/glibmm/spawn.h:39: syntax error before `;' token
../../glib/glibmm/spawn.h:144: type specifier omitted for parameter `Pid'
../../glib/glibmm/spawn.h:144: syntax error before `*' token
../../glib/glibmm/spawn.h:153: type specifier omitted for parameter `Pid'
../../glib/glibmm/spawn.h:153: syntax error before `*' token
../../glib/glibmm/spawn.h:163: type specifier omitted for parameter `Pid'
../../glib/glibmm/spawn.h:163: syntax error before `*' token
../../glib/glibmm/spawn.h:169: type specifier omitted for parameter `Pid'
../../glib/glibmm/spawn.h:169: syntax error before `*' token
../../glib/glibmm/spawn.h:195: `Pid' was not declared in this scope
../../glib/glibmm/spawn.h:195: syntax error before `)' token
spawn.cc:74: type specifier omitted for parameter `Pid'
spawn.cc:74: syntax error before `*' token
spawn.cc: In function `void Glib::spawn_async_with_pipes(...)':
spawn.cc:79: `child_setup' undeclared (first use this function)
spawn.cc:79: (Each undeclared identifier is reported only once for each
  function it appears in.)
spawn.cc:84: `working_directory' undeclared (first use this function)
spawn.cc:85: `argv' undeclared (first use this function)
spawn.cc:86: `envp' undeclared (first use this function)
spawn.cc:87: `flags' undeclared (first use this function)
spawn.cc:90: `child_pid' undeclared (first use this function)
spawn.cc:91: `standard_input' undeclared (first use this function)
spawn.cc:91: `standard_output' undeclared (first use this function)
spawn.cc:91: `standard_error' undeclared (first use this function)
spawn.cc: At global scope:
spawn.cc:102: type specifier omitted for parameter `Pid'
spawn.cc:102: syntax error before `*' token
spawn.cc: In function `void Glib::spawn_async_with_pipes(...)':
spawn.cc:106: redefinition of `void Glib::spawn_async_with_pipes(...)'
spawn.cc:78: `void Glib::spawn_async_with_pipes(...)' previously defined here
spawn.cc:106: redefinition of `void Glib::spawn_async_with_pipes(...)'
spawn.cc:78: `void Glib::spawn_async_with_pipes(...)' previously defined here
spawn.cc: At global scope:
spawn.cc:130: type specifier omitted for parameter `Pid'
spawn.cc:130: syntax error before `*' token
spawn.cc:154: type specifier omitted for parameter `Pid'
spawn.cc:154: syntax error before `*' token
spawn.cc: In function `void Glib::spawn_async(...)':
spawn.cc:155: redefinition of `void Glib::spawn_async(...)'
spawn.cc:131: `void Glib::spawn_async(...)' previously defined here
spawn.cc:155: redefinition of `void Glib::spawn_async(...)'
spawn.cc:131: `void Glib::spawn_async(...)' previously defined here
spawn.cc: At global scope:
spawn.cc:273: `Pid' was not declared in this scope
spawn.cc:273: syntax error before `)' token
spawn.cc: In function `void Glib::spawn_close_pid(...)':
spawn.cc:275: `pid' undeclared (first use this function)
spawn.cc:275: `g_spawn_close_pid' undeclared (first use this function)
make[5]: *** [spawn.lo] Error 1
make[5]: Leaving directory `/home/zmieff2/progs/gtkmm/glibmm-2.4.1/glib/glibmm'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/zmieff2/progs/gtkmm/glibmm-2.4.1/glib/glibmm'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/zmieff2/progs/gtkmm/glibmm-2.4.1/glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/zmieff2/progs/gtkmm/glibmm-2.4.1/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/zmieff2/progs/gtkmm/glibmm-2.4.1'
make: *** [all] Error 2

what is wrong??

thanks

calble 05-10-2004 02:01 PM

The problem is that the compiler can not find the library you are using in your program. That is what all the undeclared errors are. for more help compiling programs using gtkmm go to http://http://www.gtkmm.org/docs/gtk...html#id2428682


All times are GMT -5. The time now is 09:12 AM.