sounds like linking the pthread library is missing. Add -lpthread to
your linker options.

On Thu, Jun 4, 2009 at 1:27 PM, Carmen <carmen.navarr...@gmail.com> wrote:
>
> Hi all,
> I'm just having some errors when compiling my first .proto file. I
> made the .proto and compile it with protoc and all goes excellent.
> Then I import the .c and .h files into my C++ project and when I
> compile all together I receive the error of the subject of this mail.
>
> My system is a gentoo linux with gcc version 4.2.4-r1 p1.1 and I'm
> using Eclipse (of course I added the protobuf to the list of libraries
> needed to compile the project).
>
> This is the output of emerge --info:
>
> Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.2.4,
> glibc-2.10.1-r0, 2.6.22 i686)
> =================================================================
>                        System Settings
> =================================================================
> System uname: Linux-2.6.22-i686-Intel-R-_Core-
> tm-2_duo_cpu_t71...@_1.80ghz-with-gentoo-2.0.1
> Timestamp of tree: Thu, 04 Jun 2009 01:00:02 +0000
> app-shells/bash:     4.0_p24
> dev-java/java-config: 1.3.7-r1, 2.1.8
> dev-lang/python:     2.4.4-r14, 2.5.4-r2, 2.6.2-r1
> dev-python/pycrypto: 2.0.1-r8
> dev-util/cmake:      2.6.4
> sys-apps/baselayout: 2.0.1
> sys-apps/openrc:     0.3.0-r1
> sys-apps/sandbox:    1.9
> sys-devel/autoconf:  2.13, 2.63-r1
> sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2,
> 1.10.2, 1.11
> sys-devel/binutils:  2.19.1-r1
> sys-devel/gcc-config: 1.4.1
> sys-devel/libtool:   2.2.6a
> virtual/os-headers:  2.6.29
> ACCEPT_KEYWORDS="x86 ~x86"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
> CHOST="i686-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/
> kde/3.5/shutdown /usr/share/config /usr/share/cursors/xorg-x11/
> default /var/lib/hsqldb"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/
> java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/
> gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/
> texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /
> etc/texmf/web2c /etc/udev/rules.d"
> CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="cvs distlocks fixpackages keeptemp keepwork parallel-fetch
> protect-owned sandbox sfperms strict unmerge-orphans userfetch
> userpriv usersandbox"
> GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/
> gentoo"
> LANG="es_ES.utf8"
> LC_ALL="es_ES.utf8"
> LDFLAGS="-Wl,-O1"
> LINGUAS="es en de"
> MAKEOPTS="-j3"
> PKGDIR="/usr/portage/packages"
> PORTAGE_CONFIGROOT="/"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --
> compress --force --whole-file --delete --stats --timeout=180 --
> exclude=/distfiles --exclude=/local --exclude=/packages"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> PORTDIR_OVERLAY="/usr/local/portage/layman/gnome /usr/local/portage/
> layman/sunrise /usr/local/portage/layman/desktop-effects"
> SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> USE="X aac acl acpi alsa berkdb bluetooth branding browserplugin bzip2
> cairo cdparanoia cdr cli cracklib crypt cups dbus divx4linux dri dts
> dv dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox font-
> server fortran gdbm gif gnome gnomedb gpm gstreamer gtk gtk2 hal iconv
> ieee1394 isdnlog java jpeg ldap libnotify mad matroska midi mikmod mmx
> mono mp3 mpeg msn mudflap ncurses nls nptl nptlonly offensive ogg
> opengl openmp pam pcmcia pcre pdf perl png ppds pppd python qt qt3
> qt3support qt4 quicktime readline reflection sdk sdl session spell spl
> sse ssl startup-notification svg sysfs tcpd theora tiff truetype
> unicode usb userlocales v4l2 vorbis win32codecs wmf x86 xinerama xml
> xorg xprint xulrunner xv xvid zlib" ALSA_CARDS="hda-intel"
> ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty
> extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul
> mulaw multi null plug rate route share shm softvol"
> APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon
> authn_dbm authn_default authn_file authz_dbm authz_default
> authz_groupfile authz_host authz_owner authz_user autoindex cache dav
> dav_fs dav_lock deflate dir disk_cache env expires ext_filter
> file_cache filter headers include info log_config logio mem_cache mime
> mime_magic negotiation rewrite setenvif speling status unique_id
> userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard
> mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
> lb216 lcdm001 mtxorb ncurses text" LINGUAS="es en de" USERLAND="GNU"
> VIDEO_CARDS="fbdev vesa fglrx"
> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
> PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
>
>
> What I'm doing wrong?
>
> Thanks in advance and best regards,
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to