Re: Questions and Problems With gtkmm and Visual C++ 2010



See below. In summary, one question/problem has been answered.

Reece Dunn wrote:
On 2 August 2010 12:51, Jim VA3HJ <va3hj va3hj ca> wrote:
I am attempting to use gtkmm with Visual C++ 2010. So far I have created a
property sheet to match the contents in gtkmm-vc90-d-2_4.vsprops except as
outlined in the problems and questions below:

1. How do I set AdditionalOptions="/vd2"? I have looked at each option in
the C/C++ section of the properties editor but don't see anywhere this would
get set.

"C/C++ > Command Line" ?
Command Line shows all the options that would be on the compiler call. It is read-only. In the property sheet for VC2008, there is a line AdditionalOptions="/vd2" which would be set somewhere by the properties editor for the C/C++ compiler, but where?
2. When I attempt to compile the simple test program outlined in "Using
gtkmm with Microsoft Visual Studio" I get the following error:
/c:\gtkmm\gtk\2.0\lib\gdkmm-2.4\include\gdkmmconfig.h(5): fatal error C1083:
Cannot open include file: 'pangommconfig.h': No such file or directory
/pangommconfig.h is not one of the files included by the installer.

Is the path to Pango listed in the "C/C++ > General > Additional
Include Directories" section for the Configuration you are using?
Yes, but as I stated above, there is no pangommconfig.h file installed by the installer.
3. Can I use the libraries compiled by/for VC++ 2008, or must they be
rebuilt using VC++ 2010?

In general mixing binaries from different visual studio versions is a
bad idea. It may work, but you are risking ABI changes for the
standard library classes, memory management and code generation
differences.

If the libraries expose either a C or COM API, they should be usable
between compiler versions, but it is not guaranteed.
- Reece
That's what I thought. I had hoped that I would not have to rebuild all of the gtkmm-related libraries, but I guess there is no choice other than switching to MinGW.

Jim


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]