Two common warnings in linux Programming

Source: Internet
Author: User
Tags gtk
Two common warnings in linux programming-general Linux technology-Linux programming and kernel information. (Xdown: 3134): Gtk-WARNING **: gtkliststore. c: 793: Invalid column number 134548166 added to iter (remember to end your list of columns with a-1)

A common error occurs during linux programming. However, this warning information allows you to analyze the problem based on experience.

In fact, the crux of the above warning is that the declared variable type does not match the input variable type.

For example, when declaring or defining a function, declare the following function:

Void function (float a, int B)

If the following parameters are passed during the call:

Function (13, 12 );

A similar problem occurs because the compiler considers 13 to be of the int type rather than the float type, so the Type Mismatch occurs.

The solution can change 13 to 13.0 or force type conversion. You only need to change 13 to float type.

(Xdown: 3716): Gtk-CRITICAL **: gtk_tree_view_column_cell_layout_add_attribute: assertion 'info! = NULL 'failed'

This is a warning when using treeview. Generally, the problem is that the display content is specified because no display position is specified. For example, this problem occurs when the order of the two statements is reversed.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.