Why I can not see project files in Dev-C++? - dev-c++

When I create a project in Dev-C++ 5.9.2 save it and open it's *.dev file there is no file below it in the project tree but I can compile and run it!

I am using 5.9.2 and even I create Empty Project there is unsaved file that after compilation ask you to save it.
So be sure you are looking into tree Project and no Classes or Debug.
If you are looking into Project there should be +
However if it runs with black window and you still don't see project files post a screenshot please

Related

How can I get "go to definition" working in a JUCE project?

I'm trying to get "go to definition" working for a JUCE project created with Projucer. I've tried both CLion and Visual Studio Code, but they can't seem to find definitions that live in the JUCE libraries.
I'm on Ubuntu. Is there a blessed path for this? I'm normally a vim user, but I'm willing to try any IDE.
I've just figured this out!
In VS Code go View and Command Palette and type C/C++: Edit Configurations (UI) which will take to the IntelliSense Configurations page. Under Include path, on a new line, specify the path to JUCE e.g. ~/JUCE/**.
Note: The two stars are needed to tell VS Code to look through subdirectories.
This will create a hidden folder .vscode in your project folder with this configuration.
You will need to repeat these steps for each project you make.
Definitions and code completion should now work.
To compile your code, in your project folder go Builds then LinuxMakefile and in a terminal run the command make. Finally, go to the builds folder and run your project ./exampleProject.
You need to add the JUCE/modules folder to your search path, not the top-level JUCE/ folder!
If you're using the Projucer, you'll also need to add the JuceLibrarySource/ folder to your search path.
What I ended up doing was using FRUT to convert my project from a Projucer project to a CMake project. CLion was able to understand the CMake project, and thus, the "go to definition" and autocomplete features started working.

Compile Single file in a project in netbeans

I am using NetBeans Ide 8.2 on ubuntu 16
I am learning C and C++ programming hence the program i make are not related and when I try to create multiple file in a project the include multiple main() function which return error
error: multiple main function found
I want to create separate file for each program but I don't want to create separate project for all the program.
please suggest me a way & I am sorry for my language , I hope i am able to make you understand my problem.
To have multiple main files in a single Netbeans project:
Under the Projects tab in the left, double-click on your project to show its contents.
Double-click on the Source Files folder to show its contents
Right-click on the earlier main file (most-likely main.cpp) and select Properties.
Under the Item Configuration tab, check the Excluded from build option and click on Ok.
Right-click on the Source Files folder, select New and click on C++ Main File. This will create a new main file in the same project.
Now, when you build and run your project, it will compile the new main file, and the old one will be ignored.
Tip: It is a good idea to give unique names to the main files, to avoid name clashes.

I can't find the .exe file that qt-creator is supposed to be making

This is my first time using Qt-creator and I just got done coding my program and I want to put it on a USB and use it on a different computer but when I go to where my project is located at C:\Qt\Tools\QtCreator\bin\Calculator
I don't see any .exe files the only files i see are a
1 .pro file,
2. another .pro file,
3 .cpp file,
4 .cpp file,
5 .h file,
6 .ui file,.
I have built the project in Qt-creator and everything runs fine and my program works without any errors when i run it inside of Qt-creator. I do not have a debug or release folder like some people say I should.
so my question is, where can I find/create the .exe file for my project?
Most probably you have done a shadow build, that means you build isn't located at your source.
You can find out where your build is located when you open the Projects Mode in creator. On the top should be marked your project. Then select the Build & Run tab. Select your Kit and switch to the build settings. Locate the Build directory in the opened page.
That should be the location where your binaries are build.

How to always compile a file?

I have a Qt project with QML files. Whenever I change these files, I have to manually right click the .qrc (resources) file and recompile it.
How do I tell visual studio to always compile a certain file, not only when it thinks it has changed?
(Here are similar questions others have asked for eclipse and flashdevelop)
I encountered the same problem while building qt apps using Qt Creator.(Especially while using QML files as resources.) I solved the problem using a little hack.
Created a batch file say touch.bat in my source directory.
This batch file contains a single line copy qml.qrc /B+ ,,/Y where qml.qrc is the resource file name.
Opened my project in QtCreator and went to Project->Build Steps->Add Build Step->Custom process step and entered touch.bat
Whenever the project build starts, the qml.qrc is touched. The build system thinks that qml.qrc is modified and builds it.
You can modify this hack for Visual Studio also.(I have not tried). Try adding touch.bat as a build step in Visual studio. The idea is to fool the build system to think that your .qrc is modified.
I guess this is a known bug which remains unresolved. Check this bug report.
Thanks.

C++ eclipse building error

I'm programming with Galileo on Ubuntu.
My project is compiled through the terminal fine. But for the nice features of eclipse I decided to use eclipse. So I copied and pasted everything inside an eclipse project directory. Then I refreshed the project in the project explorer and everything was found by eclipse. (EDITED) But a red mark (the error mark) is shown on the project icon and when I build the project no binary file is created.
And the last thing is that all the files inside the project have no errors!
what's the problem?
Presumably it is a makefile project. Have you set up the Eclipse IDE to use make with the correct make arguments?
Have you set up the path for the include and lib directories that you need?
Right click on the project in the tree viewer and bring up the preferences dialog and make sure.
There is a console output tab on the Eclipse IDE. What does that say?
There is also a Problems tab that sorts the compiler output. What is on this?
There could well be a problem with building it a a whole project, maybe a link error? More likely it has not been set up properly for eclipse.
Are you using helios? Autotools?