User forums > Using Code::Blocks

Building Code::Blocks: error: ambiguous overload for 'operator[]'

<< < (2/5) > >>

oBFusCATed:
Tim: wx works 100% under linux 64bit

KirkD: do you have the -dev packages? linux-headers, full gcc. What is the output of wx-config?

KirkD:
All of my installs are x86_64 - usually i386 are also carried along.

I do have the -devel packages installed for wxGTK.  wxBase doesn't seem to have a -devel package.  If I do

yum info wxBase*

I get this:

Package wxBase is obsoleted by wxGTK, trying to install wxGTK-2.8.10-1.el5.rf.x86_64 instead
Package wxGTK-2.8.10-1.el5.rf.x86_64 already installed and latest version
Package wxBase is obsoleted by wxGTK, trying to install wxGTK-2.8.10-1.el5.rf.x86_64 instead
Package wxGTK-2.8.10-1.el5.rf.x86_64 already installed and latest version
Nothing to do


The LINUX headers (kernel-headers, kernel-devel) are also there.  I have the full GCC package also - built from scratch, full install, used to compile about a dozen other packages from source over the past week.

Output of wx-config is:

wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--release] [--version-full]
           [--list] [--selected-config] [--host=HOST] [--toolkit=TOOLKIT]
           [--universal[=yes|no]] [--unicode[=yes|no]] [--debug[=yes|no]]
           [--static[=yes|no]] [--version[=VERSION]] [--basename] [--cc]
           [--cppflags] [--cflags] [--cxxflags] [--rescomp] [--libs] [--cxx]
           [--ld] [--linkdeps] [--utility=UTIL] [LIB ...]

    wx-config returns information about the wxWidgets libraries available on
  your system.  It may be used to retrieve the information required to build
  applications using these libraries using --cppflags, --cflags,  --cxxflags
  and --libs options.

    If multiple builds of wxWidgets  are available,  you can use the options
  --prefix, --host, --toolkit, --unicode, --debug, --static, --universal and
  --version to select from them. The --selected-config option shows the name
  of the current configuration and --list shows available alternatives which
  match specified criteria. The --utility option returns the correct version
  of UTIL to use with the selected build. The --linkdeps option returns only
  static libraries for your makefile link rule dependencies.

    Optional LIB arguments (comma or space separated) may be used to specify
  the wxWidgets libraries that  you wish  to use.  The magic "std" label may
  be used to import all libraries that would be used by default if none were
  specified explicitly, e.g. wx-config --libs core,base.


Is there a specific command I should give?

-Kirk


stahta01:
wx-config --list

IIRC, The above is a common way to see which wx libs you have under Linux.

Tim S.

KirkD:
wx-config --list gives:

Default config is gtk2-unicode-release-2.8

  Default config will be used for output



I'm beginning to wonder if the wx libraries available in the RH repos aren't the complete set needed to compile Code::Blocks.

KirkD:
I've just started a build on a fresh Fedora 12 install and it appears to be going fine.  It at least got past the point where the CentOS machine failed.  Unfortunately, this is an i386 install of Fedora, so I can't say for certain that there is no difference there.  I would suspect this is a distant possibility and that there is some difference in the installed libraries.  If anyone has any guess on how to diagnose the library differences, I would be very appreciative to hear them.

-Kirk

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version