Re: [K3d-development] Quick & Easy Question About Splitting Code Up
Brought to you by:
barche
From: Alex C. <alx...@gm...> - 2008-07-29 16:05:18
|
Hi Gang. Don't worry about this. I have found out the problem. It seems I was being too liberal with the old Find & Replace. Cheers, -Alex Alex Curtis wrote: > Hi, > > Its now grabbing every source file. However Im Getting some strange > errors. I must have spent many hours last night trying to figure them > out. Any thoughts guys? > > /home/alex/k3d/k3dDevel/k3dsdk/ngui/text.h: In member function ‘const > k3d::string_t libk3dngui::text::generic_model_t<data_t>::value() [with > data_t = const std::basic_string<char, std::char_traits<char>, > std::allocator<char> >]’: > /home/alex/k3d/k3dDevel/modules/ngui_material_manager_panel/panel.cpp:2144: > instantiated from here > /home/alex/k3d/k3dDevel/k3dsdk/ngui/text.h:97: error: ‘const struct > std::basic_string<char, std::char_traits<char>, std::allocator<char> > >’ has no member named ‘internal_value’ > /home/alex/k3d/k3dDevel/k3dsdk/ngui/text.h: In member function ‘void > libk3dngui::text::generic_model_t<data_t>::set_value(const > k3d::string_t&) [with data_t = const std::basic_string<char, > std::char_traits<char>, std::allocator<char> >]’: > /home/alex/k3d/k3dDevel/modules/ngui_material_manager_panel/panel.cpp:2144: > instantiated from here > /home/alex/k3d/k3dDevel/k3dsdk/ngui/text.h:102: error: ‘const struct > std::basic_string<char, std::char_traits<char>, std::allocator<char> > >’ has no member named ‘set_value’ > /home/alex/k3d/k3dDevel/k3dsdk/ngui/text.h: In member function > ‘sigc::connection > libk3dngui::text::generic_model_t<data_t>::connect_changed_signal(const > sigc::slot<void, sigc::nil, sigc::nil, sigc::nil, sigc::nil, > sigc::nil, sigc::nil, sigc::nil>&) [with data_t = const > std::basic_string<char, std::char_traits<char>, std::allocator<char> >]’: > /home/alex/k3d/k3dDevel/modules/ngui_material_manager_panel/panel.cpp:2144: > instantiated from here > /home/alex/k3d/k3dDevel/k3dsdk/ngui/text.h:107: error: ‘const struct > std::basic_string<char, std::char_traits<char>, std::allocator<char> > >’ has no member named ‘changed_signal’ > /home/alex/k3d/k3dDevel/k3dsdk/ngui/entry.h: In member function ‘const > k3d::string_t libk3dngui::entry::generic_model_t<data_t>::value() > [with data_t = const std::basic_string<char, std::char_traits<char>, > std::allocator<char> >]’: > /home/alex/k3d/k3dDevel/modules/ngui_material_manager_panel/panel.cpp:2144: > instantiated from here > /home/alex/k3d/k3dDevel/k3dsdk/ngui/entry.h:89: error: ‘const struct > std::basic_string<char, std::char_traits<char>, std::allocator<char> > >’ has no member named ‘internal_value’ > /home/alex/k3d/k3dDevel/k3dsdk/ngui/entry.h: In member function ‘void > libk3dngui::entry::generic_model_t<data_t>::set_value(const > k3d::string_t&) [with data_t = const std::basic_string<char, > std::char_traits<char>, std::allocator<char> >]’: > /home/alex/k3d/k3dDevel/modules/ngui_material_manager_panel/panel.cpp:2144: > instantiated from here > /home/alex/k3d/k3dDevel/k3dsdk/ngui/entry.h:94: error: ‘const struct > std::basic_string<char, std::char_traits<char>, std::allocator<char> > >’ has no member named ‘set_value’ > /home/alex/k3d/k3dDevel/k3dsdk/ngui/entry.h: In member function > ‘sigc::connection > libk3dngui::entry::generic_model_t<data_t>::connect_changed_signal(const > sigc::slot<void, sigc::nil, sigc::nil, sigc::nil, sigc::nil, > sigc::nil, sigc::nil, sigc::nil>&) [with data_t = const > std::basic_string<char, std::char_traits<char>, std::allocator<char> >]’: > /home/alex/k3d/k3dDevel/modules/ngui_material_manager_panel/panel.cpp:2144: > instantiated from here > /home/alex/k3d/k3dDevel/k3dsdk/ngui/entry.h:99: error: ‘const struct > std::basic_string<char, std::char_traits<char>, std::allocator<char> > >’ has no member named ‘changed_signal’ > > 2144: Is the K3D_MODULE_START(Registry) / K3D_MODULE_END bit > > Thanks For Your Help, > > Cheers, > -Alex > > > Timothy M. Shead wrote: >> Alex Curtis wrote: >> >>> I'm starting to re-organise my code into separate files. Its >>> starting to get too cumbersome shoved into one file. >>> >>> I have split some of the components into a .h and .cpp. However I >>> get a crash (no feedback in terminal) when I use a .cpp and .h. But >>> if I just put the complete class code into just a .h and include it >>> in the main panel cpp. everything works fine. >>> >> To clarify on Carlos' suggestion - the current build system uses a >> file-globbing operation at configure-time to build the list of >> sources for a plugin. That's convenient because you don't have to >> explicitly list all the sources in your CMakeLists.txt. However, it >> means that new sources aren't "noticed" by the build until you re-run >> cmake. If you haven't done that, your plugin gets built, but hasn't >> been linked with any of the symbols in your new sources, which causes >> problems at runtime. >> >> Cheers, >> Tim >> >> > > |