Code: Block Usage Under Ubuntu

Source: Internet
Author: User

Code: Block is a C/C ++ IDE that coshould run on different OS, Windows, Linux and Mac OS. comparing to the VS under the windows, it is less powerful. but it will help you a lots, and improve the your work efficient if you were not an Linux coding expert. graphics IDE always appear a lots of charming compared to the white text and black ground window.

 

File-> New-> Project

A new project cocould be created as the above menu selection path.

Too templates project templates, right? But do not worry, each template is just a "HelloWord" sample. You cocould code your project as your feature as more as possible.

 

Add Include directory, "Project"-> "Build Option"

 

Add link libraries directory, Project-> Build Options:

Add link libraries, Project-> Build Options:

 

Add Pre-process Macros, Project-> Build Options:

 

Goto File, Alt + G

 

Something more
  • A) On the Ubuntu OS, the file path is case sensitive; The file path in # include command is case sensitive in Code: Block;
  • B) Do not mix. cpp and. c source files in Code: Block project. otherwise you will come into SS some strange function calling link errors. you will see a error happen when you use a std: vector in. c source file.
  • C) Do not add suffix for link libraries. For example, when you want to link OpenGL library, you need to add libGL instead of libGL. so.

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.