Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Unresolved inclusion(Unresolved inclusion while developing under Windows for Linux)
Unresolved inclusion [message #1797811] Tue, 06 November 2018 18:50 Go to next message
Bern Hein is currently offline Bern HeinFriend
Messages: 1
Registered: November 2018
Junior Member
Hello,

I'm using my eclipse enviroment on a windows pc while i am developing something for a linux machine.
That my sound a little bit strange but there is no way to change that, now. It is because I use the programm logi.cad, wich bases on eclipse.

Does someone know how to solve the problem with the unresolved inclusions? That is needed particular for the following header files:

#include <sys/socket.h>   
#include <linux/if.h>
#include <linux/if_ether.h>
#include <linux/if_packet.h>
#include <sys/ioctl.h>

#include <netinet/in.h>
#include <arpa/inet.h>

#include <netdb.h>
#include <linux/ip.h>
#include <linux/icmp.h>

Re: Unresolved inclusion [message #1797833 is a reply to message #1797811] Wed, 07 November 2018 08:31 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Since you are cross compiling for Linux under Windows,
you will need to use a compiler and linker compatible with your target.
You also will need to install Linux headers and libraries somewhere on your build (Windows) machine.
Then link them to your project in Eclipse.
This can be problematic when using third party libraries created for Linux.
It might be easier to install Linux under a VM on your Windows machine if only for the directory structure.

Re: Unresolved inclusion [message #1798026 is a reply to message #1797833] Sat, 10 November 2018 20:33 Go to previous message
Hannes Vogt is currently offline Hannes VogtFriend
Messages: 6
Registered: July 2018
Junior Member
You could also try to use a linux docker container to build and run your code on windows. I tried it for a very simple project and it looked quite promising.
Previous Topic:How to solve "Undefined reference to function" ?
Next Topic:Trying to build CDT in Eclipse IDE for Eclipse Committers
Goto Forum:
  


Current Time: Fri Apr 26 06:17:38 GMT 2024

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

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

Back to the top