Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » include a library(include a library (arpa/inet.h) and (sys/socket.h))
include a library [message #1854661] Thu, 01 September 2022 14:11 Go to next message
ITAY BERKOVITCH is currently offline ITAY BERKOVITCHFriend
Messages: 1
Registered: September 2022
Junior Member
Greetings,
I am new to ECLIPSE and I am doing a project in Socket Programming.
I need the library
<sys/socket.h>
<arpa/inet.h>
But it won't let me use them.
It says: "unresolved inclusion".

if relevant
I use Windows 11. The project is on Nios II.

I'm really new in the field and would appreciate some help.
Re: include a library [message #1854687 is a reply to message #1854661] Fri, 02 September 2022 12:21 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
NIOS II is a processor architecture, so it seems that you are attempting to cross-compile some network code for it.

You need an operating system with associated run-time libraries on the target processor to use the headers you mentioned. There is a difference between static and dynamic libraries how to use them.

Please note that the headers in the Windows system are not usable for cross-compiled code.

Have you succeeded to compile and run a simple 'Hello world' application for the target processor? If not, that is the way to start.


--

Tauno Voipio
Previous Topic:std::swap not recignized
Next Topic:Custom Register View
Goto Forum:
  


Current Time: Fri Apr 19 22:07:52 GMT 2024

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

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

Back to the top