I’m having a problem with Dev C++ in displaying members of a class

Asked

Viewed 815 times

1

To be more exact, when I press "." after some object, like I declare a vector:

vector<int>Random;

So far so good, so when I start typing:

Random.push_back();

Dev c++ doesn’t help me complete, I know it sounds paranoid, but is it related to the fact that I installed GCC in Dev C++ on my own? Sometimes it happens when I call a function and the compiler does not show the arguments that go in the function, who uses dev c++ knows what I’m talking about.

1 answer

3


Try enabling auto-complete option:

Tools > Edit Options > Calss browsing > Completion > Enable code-Completion

After that you can access the auto-complete option using Ctrl+space.

Tip: For complex projects, use another IDE, such as: Eclipse C/C++, as you may need to use tools that will assist your development, such as: Static Code Parser.

  • thanks my young man... about the eclipse it supports GCC 6.3.0?

  • I searched the Eclipse here, already crushed the interface, I will change everything

  • 1

    In Eclipse, if you don’t have the compiler version you want you can install it by: Help -> Install New Software. When you create the project in C/C++ you can choose the Linux GCC toolchain to link with the latest compiler installed or link another of your preference in the properties of the project, you can download the eclipse by: http://www.eclipse.org/downloads/eclipse-Packages/? osType=linux&release=Undefined and update packages installed by Help -> Check for Updates

  • Click on Install New Software and then go to where?

  • @Rhuancarlos Actually I would say to wear anything but Dev-C++.

  • I didn’t know, I’ve never had big problems with c++ dev, I’m learning yet

  • @Rhuancarlos After accessing Install New Softwar, click on Add, click on Location, enter: http://download.eclipse.org/tools/cdt/releases/9.2 and ok, select the options and click next and start installing, this is the latest stable version of CDT, I can confirm that it contains at least version GCC 6.1. You can install by a file, download the GCC at: https://ftp.gnu.org/gnu/gcc/gcc-6.3.0/ and click Add, then Archive and install. Before installing by the file, I suggest to try by the link, because it is a stable version and can have the version you want.

  • managed to install Mingw but the problem is that the eclipse is not creating the . exe

  • Another option to add externally can be seen at this link: http://stackoverflow.com/questions/9840009/c-eclipse-cdt-how-to-add-gcc-4-6-3

  • @Rhuancarlos What is the output of the compilation of the code?

  • Nothing to build for project test

  • Check out this link: http://stackoverflow.com/questions/18699782/eclipse-c-nothing-to-build-error, can solve your problem with Mingw.

Show 7 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.