| View previous topic :: View next topic |
| Author |
Message |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Sat Apr 11, 2009 1:56 am Post subject: expected specifier-qualifier-list |
|
|
I wan tto port libmpeg3-1.5.4 but i'm stuck here tith this code.
| Code: | joris@joris-desktop:~/pspprojects/libmpeg3-1.5.4$ make
psp-gcc -I./include -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -DHAVE_CSS -D_PSP_FW_VERSION=150 -c -o audio/ac3.o audio/ac3.c
In file included from audio/ac3.c:5:
./mpeg3private.h:651: fout: expected specifier-qualifier-list before ‘pthread_mutex_t’
./mpeg3private.h:671: fout: expected specifier-qualifier-list before ‘pthread_t’
./mpeg3private.h:705: fout: expected specifier-qualifier-list before ‘pthread_mutex_t’ |
This is the part of the source:
| Code: |
typedef struct
{
unsigned char *data; /* Buffer for holding the slice data */
int buffer_size; /* Size of buffer */
int buffer_allocation; /* Space allocated for buffer */
int current_position; /* Position in buffer */
uint32_t bits;
int bits_size;
pthread_mutex_t completion_lock; /* Lock slice until completion */
int done; /* Signal for slice decoder to skip */
} mpeg3_slice_buffer_t;
/* Each slice decoder */
typedef struct
{
void *video; /* mpeg3video_t */
mpeg3_slice_buffer_t *slice_buffer;
int thread_number; /* Number of this thread */
int current_buffer; /* Buffer this slice decoder is on */
int buffer_step; /* Number of buffers to skip */
int last_buffer; /* Last buffer this decoder should process */
int fault;
int done;
int quant_scale;
int pri_brk; /* slice/macroblock */
short block[12][64];
int sparse[12];
pthread_t tid; /* ID of thread */
pthread_mutex_t input_lock, output_lock, completion_lock;
} mpeg3_slice_t; |
Whatś wrong here? _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Sat Apr 11, 2009 3:13 am Post subject: |
|
|
| You need to include the pthread header (also assuming you have the PSP pthread port installed too). |
|
| Back to top |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Sat Apr 11, 2009 5:35 am Post subject: |
|
|
| Insert_witty_name wrote: | | You need to include the pthread header (also assuming you have the PSP pthread port installed too). |
Yeah... that was it
Wrong thread port _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
|