Can't find BaseWaveAppLayer.h: no such file or directory - veins

I have the following includes in TutorialAppl.h:
#include "veins/modules/application/ieee80211p/BaseWaveApplLayer.h"
#include "veins/modules/mobility/traci/TraCIMobility.h"
#include "veins/modules/mobility/traci/TraCICommandInterface.h"
When I tried to build the project, there is a fatal error:
Description Resource Path Location Type fatal error:
veins/modules/application/ieee80211p/BaseWaveApplLayer.h: No such file
or directory TutorialAppl.h /VeinsTutorial/src line 11 C/C++ Problem
I am using veins 4.6. The project is under the root directory of Project Explorer.
what should I do , thank you very much!

Related

Fatal error: sciplot/sciplot.hpp: No such file or directory in c++

I am issues using sciplot. I've installed it in my project folder using
git clone https://github.com/sciplot/sciplot --recursive
From the installations in the website: https://sciplot.github.io/installation/
Chose this installation because I don't understand how to use the others.
So, when I #include <sciplot/sciplot> in my file I'm getting this error:
main.cpp:4:10: fatal error: sciplot/sciplot.hpp: No such file or directory 4 | #include <sciplot/sciplot.hpp>
Then I tried #include "sciplot/sciplot". Same error but with this #include "sciplot/sciplot/sciplot" it was able to access the header file sciplot.hpp but then I would get this error.
In file included from main.cpp:4: sciplot/sciplot/sciplot.hpp:38:10: fatal error: sciplot/Canvas.hpp: No such file or directory 38 | #include <sciplot/Canvas.hpp>
Etc if I update the Canvas.hpp but then it would be an error with Figure.hpp
So now I wanted to try out there examples in the sciplot/examples folder and used the make function to try to make one of the examples and I would get this error.
make example-sine-functions g++ example-sine-functions.cpp -o example-sine-functions example-sine-functions.cpp:27:10: fatal error: sciplot/sciplot.hpp: No such file or directory 27 | #include <sciplot/sciplot.hpp>
So I would like to know what would be my best solution for this problem. Am I going to have to update every single header file or if there's a better way to install and set up the sciplot environment please let me know with the most detail you can give.
PS: using ubuntu linux.
Thanks!

fatal error: gst/gst.h: No such file or directory #include <gst/gst.h>

I am trying to install GStreamer on windows for writing a C++ code but after installing the files
gstreamer-1.0-devel-msvc-x86_64-1.18.3.msi
and
gstreamer-1.0-msvc-x86_64-1.18.3.msi
from https://gstreamer.freedesktop.org/data/pkg/windows/ and it installs correctly. But when I run the example code basic-tutorial-1.c from gst-docs repo it says
fatal error: gst/gst.h: No such file or directory #include
<gst/gst.h>
I am just getting started using GStreamer so any help would be hugely appreciated! :)
This is what I did:
D:\gst-docs\gst-docs\examples\tutorials> gcc .\basic-tutorial-1.c
.\basic-tutorial-1.c:1:10: fatal error: gst/gst.h: No such file or directory #include <gst/gst.h>
^~~~~~~~~~~ compilation terminated.
The header file is located in the directory: C:\gstreamer\1.0\msvc_x86_64\include\gstreamer-1.0\gst after installing using the installer files.
Edit: I did try other guides on StackOverflow but none seem to work for me.

Error: Cannot open include file: 'MQTTAsync.h': No such file or directory

OS -Windows 10 x64
Library mqtt
Microsoft Visual Studio Community 2017 Version 15.9.15
Programming Language - C++17
Installed paho-mqtt paho-mqttpp3 paho-mqttpp3[ssl] using vcpkg
I am creating a c++ program using mqtt.
But whenever I am using below given header
#include <mqtt/async_client.h>
It is giving following error
d:\vcpkg\installed\x64-windows\include\mqtt\async_client.h(27): fatal error C1083: Cannot open include file: 'MQTTAsync.h': No such file or directory
But MQTTAsync.h file is available on the given location
D:\vcpkg\installed\x64-windows\include\paho-mqtt
I had followed below link by creating new console project
https://github.com/Microsoft/vcpkg/issues/1848
Still issue is not getting resolved
Verify the correct name in your vcpkg-directory.
In my case that would be C:\Users\USERNAME\vcpkg\installed\x64-windows\include\paho-mqtt
Here you will see that the header file you are looking for is actually called MQTTAsync.h
To add it in your project you will have to change your inlcude to #include <paho-mqtt/MQTTAsync.h>

missing an existing c file. fatal error: g/protobuf-c/protobuf-c.h: No such file or directory

I'm working on an android app with native code (using JNI).
I try to build my c project in eclipse and get this error:
/Users/e/MyWorkspace/Client/src/android/java/jni/../../../protobuf/w/inbox.pb-c.h:6:42: fatal error: g/protobuf-c/protobuf-c.h: No such file or directory
this is inbox.pb-c.h:6:42:
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
#ifndef PROTOBUF_C_inbox_2eproto__INCLUDED
#define PROTOBUF_C_inbox_2eproto__INCLUDED
42: #include <g/protobuf-c/protobuf-c.h>
PROTOBUF_C_BEGIN_DECLS
searching with mac's index I see this file exist.
That's weird as it compliation stopped to work a few hour ago all the sudden without me touching this file.
how can I solve this?

"No such file or directory" error in ubuntu 12.04 eclipse

everybody, I'm a fresh in c++, when I try to build a project and a error happens in the follow codes:
#ifndef GAMEPLAYEREX_H_
#define GAMEPLAYEREX_H_
#include "GamePlayer.h"
class GamePlayerEx : virtual public GamePlayer
{
public:
GamePlayerEx(int = 0);
virtual ~GamePlayerEx(void);
......
and the error information is:
In file included from ../GameEngine/GameMoudle/GamePlayerEx.cpp:8:0:
../GameEngine/GameMoudle/GamePlayerEx.h:11:24: fatal error: GamePlayer.h: No such file or directory
compilation terminated.
my project directory is like the follow image, I don't wanner use #include "../GamePlayer.h".
so, somebody know how to configure in project and let it work? Thanks!
If you're using gcc (or most other command line compilers), you can set the include path to include arbitrary directories, such as with:
gcc -I.. myfile.cpp
This will search those directories for the include files.
If you're using an IDE, there'll be IDE or project settings you can modify. For example, this link for Eclipse Galileo CDT shows how to set up an include path for a given project.