Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » conflicting types for ... by C project compilation
conflicting types for ... by C project compilation [message #1739534] Tue, 02 August 2016 17:30
Martin Dida is currently offline Martin DidaFriend
Messages: 2
Registered: August 2016
Junior Member
index.php/fa/26658/0/index.php/fa/26655/0/Hello everybody

I am new in C/C++ CDT. Recently I started doing some programming stuff with PINE64 embedded system. For this purpose I downloaded Debian distribution to install on board. As I wanted to mount rootfs through via NFS service I also installed Debian's filesystem (for this PINE64 board) on my Ubuntu 14.04 trusty distribution.

I wanted to start with simple GPIO working on board. Just let blink or light LED.

When I compile the code I get these errors: for example "conflicting types for u_int64_t" with info that "previous declaration of u_int64_t was here ... <path to declaration> (see pic below)

index.php/fa/26655/0/

As I want to work with GPIOs, I have to include "gpio.h" file from rootfs for dedicated board PINE64, as include paths (chosen default by CDT according to aarch64-linux-gnu-cpp) do not contain this header file. Thus, I add the path to directory containing this file "gpio.h" in my project in eclipse (see pic below)

index.php/fa/26658/0/

However, as in this included directory is also same named file "types.h" (most of conflicts are from types from this header file), however with different definition as in default include directories (included by CDT according to aarch64-linux-gnu-cpp). Thus I am sure this can cause errors.

Hence, my question sounds. How can I include directory from different location (in this case root fs for my board) and not to experience these include conflicts? Either, how can I remove them?

For developing I use Eclipse Kepler, host machine is Ubuntu 14.04 trusty and development board PINE64+

Thank you very much beforehand. Martin Smile
Previous Topic:Main() is suspended upon debugging: Is this normal?
Next Topic:Problem using libraries with stm32 µC
Goto Forum:
  


Current Time: Sat May 11 21:45:34 GMT 2024

Powered by FUDForum. Page generated in 0.03080 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top