E219 Error when compiling C code in eclipse - c

When compiling a header file containing the following extract
#include <_Reg/IfxGpt12_reg.h>
#include <_Impl/IfxGpt12_cfg.h>
#include <Port/Std/IfxPort.h>
The following error is shown
ctc E219: ["..\0_Src\4_McHal\Tricore_PinMap\IfxGpt12_PinMap.h" 32/1]
cannot open #include file "_Reg/IfxGpt12_reg.h"
However, the header files do exist in the directory! Is this a toolchain problem?

Related

FirebaseHttpClient_Esp8266.cpp:8:25: fatal error: ESP8266WiFi.h: No such file or directory

These are the header files I am using
#include <FirebaseArduino.h> // firebase library
#include <DNSServer.h>
#include <WiFiManager.h>
#include <WiFi.h>
#include <Servo.h>
Error:FirebaseHttpClient_Esp8266.cpp:8:25: fatal error: ESP8266WiFi.h: No such file or directory
I am using esp32 and selected FireBeetle-ESP32
the code complies properly when I change the board to esp8266(generic) but I want to upload this code on esp32
I looked through the internet and added wifi.h to see it works or not but again same result

How do you include FreeRTOS header files in different source files in an Espressif IDF Eclipse project

Upon creating an ESPRESSIF project in Eclipse, I see the following includes already exists in main.
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_syst"
#include "esp_wifi.h"
#include "esp_event.h"
#include "esp_log.h"
#include "nvs_flash.h"
#include "lwip/sockets.h"
I guess the included files are referenced by the path defined in IDF_PATH. But how do you go about using these files in any other source file? The same include won't work.
// file1.c
#include "lwip/sockets.h" // Unresolved inclusion: "lwip/sockets.h"
Below is the snapshot of the properties. I don't see a C/C++ build section for some reason otherwise I know there's an option to put the file paths in there which could then just be used by any source file without specifying the relative path.
For reference: I followed this tutorial -> https://github.com/espressif/idf-eclipse-plugin/blob/master/README.md#create-a-new-project until Compiling the Project

TURBO C++: Unable to open include file stdio.h

I am trying to compile a simple C program using TUrbo C++ 3.2. But getting the following error: Unable to open include file 'STDIO.h'
I do have these files in INCLUDE library.
Cant help you if you dont post your code. Check if you use #include <cstdio> (not #include "cstdio" or #include <cstdio.h> or #include "cstdio.h".
#include <cstdio> will always work.

#include "unpipc.h" in c no such file or directory

#include "unpipc.h"
I am trying to use #include "unpipc.h" with cygwin but it gives me an error not such file or directory
I tried to write it as #include <unpipc.h> but still the error occur.
the code is in C language.
As has been noted, that is not a standard file
$ curl 'cygwin.com/cgi-bin2/package-grep.cgi?text=1&arch=x86_64&grep=unpipc.h'
Found 0 matches for unpipc.h

embed ruby code in C

I know there's severals post about this, but i'm stack
here's my C code
#include </usr/include/ruby-1.9.1/ruby/ruby.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
ruby_init();
rb_eval_string("puts 'hello'");
ruby_finalize();
return 0;
}
i've got the following error when compile it in sublime text 2
In file included from /Users/pierrebaille/Code/Ruby/embedRuby/embedRubyFirst.c:1:
/usr/include/ruby-1.9.1/ruby/ruby.h:1481:24: error: ruby/subst.h: No such file or directory
[Finished in 0.1s with exit code 1]
thanks for your help
You should not hard-code the full path of a header file like
#include </usr/include/ruby-1.9.1/ruby/ruby.h>
proper is
#include <ruby.h>
and told your gcc to search the header file via CFLAGS and libariy via LD_FLAGS, simply command without makefile could be:
gcc -o demo.exe -I/path/to/ruby/headers rubydemo.c -L/path/to/ruby/lib -lruby-libary-name
One of you files you're including in turn includes ruby/subst.h, , but it appears that ruby is not in your path, which is why you have this in your code:
#include </usr/include/ruby-1.9.1/ruby/ruby.h>
Instead of hardcoding paths you should simply add "/some_path/" to your compiler path(s) setting, where some_path contains the folder ruby as a child. Now your own include turns into:
#include <ruby/ruby.h>

Resources