Author Topic: problem with installing code blocks  (Read 6415 times)

Offline parisa_k

  • Multiple posting newcomer
  • *
  • Posts: 23
problem with installing code blocks
« on: August 10, 2008, 01:58:24 pm »
Hi,
I`ve recently installed code blocks, but I have some problems in using it:

1- in new "new projects" window I have chosen wxWidgets...at the begining when I haven`t add any object to forrm , if  I run the project ...the following errors are shown
/usr/local/include/wx-2.8/wx/hashmap.h||In member function ‘wxLongToLongHashMap_wxImplementation_HashTable::Node** wxLongToLongHashMap_wxImplementation_HashTable::GetNodePtr(const long int&) const’:|
/usr/local/include/wx-2.8/wx/hashmap.h|714|warning: dereferencing type-punned pointer will break strict-aliasing rules|
/usr/local/include/wx-2.8/wx/clntdata.h||In member function ‘wxShadowObjectMethods_wxImplementation_HashTable::Node** wxShadowObjectMethods_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:|
/usr/local/include/wx-2.8/wx/clntdata.h|20|warning: dereferencing type-punned pointer will break strict-aliasing rules|
/usr/local/include/wx-2.8/wx/clntdata.h||In member function ‘wxShadowObjectFields_wxImplementation_HashTable::Node** wxShadowObjectFields_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:|
/usr/local/include/wx-2.8/wx/clntdata.h|25|warning: dereferencing type-punned pointer will break strict-aliasing rules|
/usr/local/include/wx-2.8/wx/gdicmn.h||In member function ‘wxStringToColourHashMap_wxImplementation_HashTable::Node** wxStringToColourHashMap_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:|
/usr/local/include/wx-2.8/wx/gdicmn.h|544|warning: dereferencing type-punned pointer will break strict-aliasing rules|
/usr/local/include/wx-2.8/wx/image.h||In member function ‘wxImageHistogramBase_wxImplementation_HashTable::Node** wxImageHistogramBase_wxImplementation_HashTable::GetNodePtr(const long unsigned int&) const’:|
/usr/local/include/wx-2.8/wx/image.h|136|warning: dereferencing type-punned pointer will break strict-aliasing rules|
/usr/local/include/wx-2.8/wx/hashmap.h||In member function ‘wxLongToLongHashMap_wxImplementation_HashTable::Node** wxLongToLongHashMap_wxImplementation_HashTable::GetNodePtr(const long int&) const’:|
/usr/local/include/wx-2.8/wx/hashmap.h|714|warning: dereferencing type-punned pointer will break strict-aliasing rules|
/usr/local/include/wx-2.8/wx/clntdata.h||In member function ‘wxShadowObjectMethods_wxImplementation_HashTable::Node** wxShadowObjectMethods_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:|
/usr/local/include/wx-2.8/wx/clntdata.h|20|warning: dereferencing type-punned pointer will break strict-aliasing rules|
/usr/local/include/wx-2.8/wx/clntdata.h||In member function ‘wxShadowObjectFields_wxImplementation_HashTable::Node** wxShadowObjectFields_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:|
/usr/local/include/wx-2.8/wx/clntdata.h|25|warning: dereferencing type-punned pointer will break strict-aliasing rules|
/usr/local/include/wx-2.8/wx/gdicmn.h||In member function ‘wxStringToColourHashMap_wxImplementation_HashTable::Node** wxStringToColourHashMap_wxImplementation_HashTable::GetNodePtr(const wxString&) const’:|
/usr/local/include/wx-2.8/wx/gdicmn.h|544|warning: dereferencing type-punned pointer will break strict-aliasing rules|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_sequence_set'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_sequence_sort_iter'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_sequence_get_begin_iter'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_option_context_new'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_uri_list_extract_uris'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_option_group_set_translation_domain'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_key_file_get_locale_string'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_bookmark_file_get_modified'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_unlink'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_key_file_free'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_option_group_new'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_slice_alloc0'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_bookmark_file_get_title'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_intern_static_string'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_key_file_get_groups'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_option_group_set_parse_hooks'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_filename_display_name'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_option_context_free'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_markup_printf_escaped'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_bookmark_file_get_applications'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_object_interface_install_property'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_sequence_new'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_option_context_parse'|
/usr/local/lib/libwx_gtk2_adv-2.8.so||undefined reference to `g_assert_warning'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_strv_get_type'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_sequence_get_end_iter'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_atomic_int_compare_and_exchange'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_sequence_free'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_sequence_swap'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_bookmark_file_move_item'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_key_file_get_start_group'|
/usr/lib/libpango-1.0.so.0||undefined reference to `g_once_init_enter_impl'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_type_class_add_private'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_get_user_config_dir'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_key_file_get_string'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_get_language_names'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_bookmark_file_get_app_info'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_key_file_get_keys'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_key_file_get_integer'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_option_group_add_entries'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_key_file_set_boolean'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_mapped_file_free'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_str_has_suffix'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_once_init_enter'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_option_context_set_help_enabled'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_option_context_add_main_entries'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_ptr_array_foreach'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_bookmark_file_get_mime_type'|
/usr/lib/libgtk-x11-2.0.so.0||undefined reference to `g_initially_unowned_get_type'|
/usr/lib/libgdk_pixbuf-2.0.so.0||undefined reference to `g_ascii_strtoll'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 9 warnings ===|



it seems that the problem is with some header files that cannot be found at running time.....

but I don`t know how to solve it ...I`d be thankful if any one can help.........

2- Is there any tutorial and sample programs for using Code Blocks..I`d be thankful if you could introduce me some.....


thanks

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: problem with installing code blocks
« Reply #1 on: August 10, 2008, 04:29:57 pm »
This is really an compiler GCC and GTK-x11 library issues. I suggest turning on full compiler logging inside Code::Blocks and posting the results to here and/or to an site that handles GCC GTK-x11 linking issues.

http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S

PS: I would guess you failed to link the an required GTK or GLib library.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline parisa_k

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: problem with installing code blocks
« Reply #2 on: August 16, 2008, 06:09:34 am »
I know that the problem is with some libraries and I have installed wxWidgets-2.8.7 ,wxGTK-2.8.8 but it still has problems......I need a simple help what should I exactly do to solve the problem?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: problem with installing code blocks
« Reply #3 on: August 16, 2008, 07:01:39 am »
I know that the problem is with some libraries and I have installed wxWidgets-2.8.7 ,wxGTK-2.8.8 but it still has problems......I need a simple help what should I exactly do to solve the problem?

Did you try installing the dev version of the GTK and GLib Libs?

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline parisa_k

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: problem with installing code blocks
« Reply #4 on: August 18, 2008, 06:49:11 am »
I have installed them but the problem is still remained...I `m thinking that maybe the problem is in the way I`m using codeblocks....I used
new projets...WxWidgets project...frame based...

I haven`t add any object to it (the form is empty) and just`ve run it (F9)...

the running is halted and the erorr list is like above........

I`ve installed codeblocks on FC8

please help me know where is the problem

Offline parisa_k

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: problem with installing code blocks
« Reply #5 on: August 19, 2008, 07:22:24 am »
could anyone tell me which packages and libraries should be installed before running code::blocks  8.02 ...what are the exact names and versions?

Offline parisa_k

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: problem with installing code blocks
« Reply #6 on: August 20, 2008, 09:26:59 am »
my problem is solved...thanks for your help