Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

pthread based application + Simple_Socket_Server Example

Altera_Forum
Honored Contributor II
1,088 Views

i am trying to implement TCP based Chat Programm on Altera ESDK board. 

 

for this i have write a TCP based Server and Client on linux (ubuntu 12.04 LTS) machine and successfully connect them, i am using pthread over there. 

 

now i am trying to build same application on nios-ii platform and add the following to "Simple Socket Server" Example. 

 

1. #include <pthread.h> 

 

2. in main program 

 

pthread_t myThread; 

create_pthread( &myThread,NULL, myfunction,NULL); 

 

3. function to be called outside the "simple_socket_server" example 

 

void *myfunction() {} 

 

after building the code my simple_socket_server example generate a error saying 

 

error: 'pthread_t' undeclared (first use in the function) 

 

 

1. is ptherad not supported by nios-ii ...? 

2. is any other way to create thread or parallel programming on nios-ii...? 

 

 

 

Regards 

kaushal
0 Kudos
0 Replies
Reply