Can't build hello world in C++ with Code::Blocks (20.03), OS: Linux [closed] - c++

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I am looking to learn a new language, C++, but I experience some difficulties with Code::Blocks 20.03 (CB). I am currently running CB on my DELL XPS 13-9360 with Linux, Ubuntu 20.04.1 LTS. I installed CB with the instructions on this site: http://ubuntuhandbook.org/index.php/2020/03/install-codeblocks-20-03-ubuntu-18-04/ using sudo apt install codeblocks codeblocks-contrib.
Now, I create a new project on CB, keeping the default options (with GNU GCC Compiler), but when I try to build the main.cpp file (hello world), there is this error message:
obj/Debug/main.o: no such file or directory
error: no input files.
You can also see the properties of my project for Debug and advanced options:
Build
Advanced
Here is my installed packages list (got it with dpkg --list | grep c++):
Packages_list
Thanks already for any help you could bring me, and let me know if there is some missing information that you need to help me.
L.R.

I'm afraid you were bitten by this code::blocks bug, which seems to have been plaguing Code::Blocks for a while now:
#993 Will not compile sources on build if path contains international characters
You can try renaming your homework directory from "École" to "Ecole" to see if that fixes it.

Related

fatal error: folder/include: No such file or directory [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have coded in visual studio before just fine but I have recently tried to try out visual studio code, I tried to first do a simple hello world but every time I try to compile my code within visual studio code I get Test1.cpp:13:1: fatal error: folder/include: No such file or directory
}
^
compilation terminated. my only guess is I've installed MinGW incorrectly however I have reinstalled it multiple times and it seems to be running as I can call its version in the command prompt any help would be great.
Please share the code that you have written!
You can also try to compile the .cpp file in cmd and run it with command-
-> g++ filename.cpp -o filename.exe
-> filename.exe
P.S. These commands should be written in the same directory where you have created these files. Eg. C:\Users\HP\Desktop\CPP Files>g++ helloWorld.cpp -o helloWorld.exe
C:\Users\HP\Desktop\CPP Files>helloWorld.exe
The error says that folder/include cannot be found. This could be is a configuration error. Check your configuration to properly provide existing folder with absolute path in the visual studio.

Why is airmon-ng missing from my aircrack-ng installation? [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 days ago.
Improve this question
So I've attempted to install the aircrack-ng library on my Mac. I've followed the instructions outlined by the aircrack-ng docs and by the README file on the Github repository. When I run,
aircrack-ng --help
I get the list of options, etc... like I should. But when I run,
airmon-ng
I get
zsh: command not found: airmon-ng
I've run both commands as root and in the aircrack-ng directory. I've tried installing both the stable version linked by the aircrack-ng docs and the version directly from Github. Other commands like airebase-ng and aircrack-ng work (at least they result in output), but for some reason airmon-ng doesn't. Also, inside the aircrack-ng directory, I found scripts named "aircrack-ng", "airbase-ing", etc... but there weren't any files named "airmon-ng." The commands I used in the setup were:
git clone https://github.com/aircrack-ng/aircrack-ng
cd aircrack-ng
autoreconf -i
./configure --with-experimental
I tried it once with
make
make install
and then repeated the whole process again and tried using
gmake
and both times I get the same error. I'm incredibly confused why airmon-ng appears to be missing. Any help is appreciated :) Thanks.
My bad, I finally found the answer in a similar StackOverflow question that actually got recommended to me since I asked this question.
The reality is that there is no airmon-ng command on the MacOS installation; I was looking for something that didn't exist. On MacOS, there's an alternative command called airport (that's built into the OS) that you can use instead.

How do I compile Qt Application under Manjaro KDE? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
Complete noob right here, I'm learning c++ and I saw some tutorial somewhere with instructions to compile the Qt application example from the command line, then I noticed the path from the tutorial was not correct, I want to learn how to compile Qt from command line, and maybe even do some makefiles to automate the process, at least I want to get started ...It seems like the qt libraries are already installed within my system since it is using the KDE desktop environment, but I don't know how should I link or what paths should I include as arguments. Please guide me, remember I'm a complety noob but I really want to learn.
This is the tutorial I'm talking about http://zetcode.com/gui/qt5/introduction/
When you build, Qt Creator does three things only: it invokes qmake, then make, then runs the target. That's all.
Suppose your project is in ~/src/project. Here's how you would build it properly using a shadow build folder:
$ mkdir -p ~/src/project-build
$ cd ~/src/project-build
$ qmake ~/src/project
$ make -j

c++ Qt running code with opncv [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I am new to Qt and don't know yet how to really use it correctly.
I am trying to run this code : (in the up right corner - download)
https://googledrive.com/host/0By56j-W37_RAYS1DcVl3MnFRZGc/index.html
in the website written :
"Technical Requirements : OpenCV 2.4.5 ... Qt 5.0.2 (32 bit) ... Qt Creator 2.7.0 (included with the indicated version of Qt) ... Additionally, in order to compile the OpenCV source code and install it, you will need CMake.
I have downloaded Qt5.3.0 , I have opencv 2.4.8 (worked and tested) , have CMake installed and also have VS2012.
in the zip file (source) , there is many files (cpp,h,ui,pro,user ....).
The problem is that I don't know which files should be deleted and what files should be edited (to compile in my environment) - and how to compile it (in Qt Creator or VS) ?
If anyone ,who's familiar with Qt, can take a fast look on the zip file to tell me what to do it will be great.
I will very appreciate help with this,
Thanks
Application.pro seems to be the main project file.
Open it with QtCreator.
You may want to open Application.pro with a text editor first and adjust following lines, and specify the path where you installed OpenCV and the respective version (replace 245 with 248).
INCLUDEPATH += C:/OpenCV/include
DEPENDPATH += C:/OpenCV/include
LIBS += -LC:/OpenCV/bin
LIBS += -lopencv_calib3d245
...
LIBS += -lopencv_videostab245d

Compiling process for Qt [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I'm attempting to get Qt setup to run a simple hello world example, but I can't get the compilation setup right for the IDE (QtCreator). When I attempt to build by pressing the build button, I am getting the following error message:
Qt creator needs a compiler setup to build. Configure a compiler in the kit options
So I noticed that I had nothing setup for the compiler. I then downloaded a MinGW compiler and it seems the IDE managed to recognize it automatically. Still, when I attempt to build I am getting the same error message.
The truth is that I really don't know the process of compilation either from the command line or in other IDEs. I've read that there might be an issue with paths? I'm running on Windows. I would be extremely grateful if someone could explain what I may be doing wrong and what issue I may be having with building in QtCreator.
You will need to do the following steps for QtCreator:
1) Go to Settings > Build and Run > Kits.
2) Check if the auto-detection is correct. It is probably not if you have issues, so you will need to either set up manually or rreinstall QtCreator to see if the problem goes away. If it is not detected, you will have a read exclamation mark.
3) Add a new Kit.
4) Type a name.
5) You need to choose the proper "Qt version".
6) You need to choose the compiler.
7) Select the "Make Default" option.
As for command line, you should be able to do something like this to build a simple dummy main.cpp:
main.cpp
int main() {}
and then you can run the following commands in the (msys/cygwin/etc) prompt:
qmake -project && qmake && make