How to get GNU C specified in settings

I have a mixed java / C ++ project that I want to develop on a new PC. It uses the OpenCV graphics library. Everything works fine on the source PC, but when I copy the project to a new computer, I get errors indicating that eclipse is not aware of the existence of my compiler. For example, next to a string using the std namespace; he says the std character cannot be resolved.

Then I downloaded a sample project from the OpenCV library, which includes both Java and C ++ elements. It compiled and worked perfectly. Then I looked at the properties of this sample project and noticed that “GNU C” and “GNU C ++” were listed as languages ​​on the “Includes” tab (see the figure below). In the corresponding part of preferences for a project that does not compile, it only says “c, cpp”. Also many tabs are different. I suspect that this is the key to what went wrong, but I have no idea what defines the list of languages ​​that appear in this field or which tabs appear. Any ideas?

enter image description here

this project fails

: , C/++ Build > , " " " ", " " "gnu make builder". toolchain "android GCC", - "android builder". "android GCC" . Current builder "android builder", "gnu make builder". Gnu make builder, " GCC", "c, cpp".

+4
2

, / . , " " .

C/++ C/++.

, :

  • .cproject.
  • . , " " .
  • , Import -> Android Project -> Exisiting Android Code Into Workspace.
  • New -> Other -> C/C++ -> Convert to a C/C++ Project -> Specify "Project type" = Makefile project, "Toolchains" = Other Toolchain.

, GNU C, GNU ++ .

+3

" " " ", " Android" → " ".

0

Source: https://habr.com/ru/post/1538282/


All Articles