spawn_async_with_pipes for Windows (still trying to work)
- From: "Paulo Flabiano Smorigo" <pfsmorigo gmail com>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: spawn_async_with_pipes for Windows (still trying to work)
- Date: Wed, 24 Sep 2008 09:18:45 -0300
Hi everybody,
I still trying to get spawn_async_with_pipes work with gtkmm for windows. I tried a different aproach and the error know is another.
My code:
typedef std::vector<std::string> strv_t;
strv_t vector (1);
vector[0] = "\"c:/windows/NOTEPAD.EXE\"";
std::string filename = Glib::build_filename(vector);
Glib::spawn_async_with_pipes("\"c:/\"", filename, Glib::SpawnFlags(0), sigc::slot<void>(), &m_intPlayerPID, &m_intPlayerIn, &m_intPlayerOut, &m_intPlayerError);
The error:
../../../../global/gtkmm-2.4/include/glibmm/arrayhandle.h: In function `typename Tr::CType* Glib::Container_Helpers::create_array(For, size_t, Tr) [with For = "" char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Tr = Glib::Container_Helpers::TypeTraits<std::string>]':
../../../../global/gtkmm-2.4/include/glibmm/arrayhandle.h:83: instantiated from `static const typename Tr::CType* Glib::Container_Helpers::ArraySourceTraits<Tr, Cont>::get_data(const Cont&, size_t) [with Tr = Glib::Container_Helpers::TypeTraits<std::string>, Cont = std::string]'
../../../../global/gtkmm-2.4/include/glibmm/arrayhandle.h:375: instantiated from `Glib::ArrayHandle<T, Tr>::ArrayHandle(const Cont&) [with Cont = std::string, T = std::string, Tr = Glib::Container_Helpers::TypeTraits<std::string>]'
core/Player.cpp:166: instantiated from here
../../../../global/gtkmm-2.4/include/glibmm/arrayhandle.h:62: error: call of overloaded `to_c_type(const char&)' is ambiguous
../../../../global/gtkmm-2.4/include/glibmm/containerhandle_shared.h:306: note: candidates are: static const char* Glib::Container_Helpers::TypeTraits<std::string>::to_c_type(const std::string&) <near match>
../../../../global/gtkmm-2.4/include/glibmm/containerhandle_shared.h:307: note: static const char* Glib::Container_Helpers::TypeTraits<std::string>::to_c_type(const Glib::ustring&) <near match>
../../../../global/gtkmm-2.4/include/glibmm/containerhandle_shared.h:308: note: static const char* Glib::Container_Helpers::TypeTraits<std::string>::to_c_type(const char*) <near match>
make: *** [../release/core/Player.o] Error 1
I use notepad just to test... I plan to use mplayer...
Thanks in advance...
Paulo Flabiano Smorigo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]