Re: Compiling Parmacs application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11 January 2012 12:52, Hamid Reza Khaleghzadeh wrote:
> Hi
>
> Could you tell me how parmacs application can be compiled?
> Parmacs as PThread is a library for creating multi threaded applications.
>  I have written a parmacs application and when compile it with gcc, I
> encounter with following error:
>
> /home/hamidreza/parmacs.upc.3/pthreads/parmacs.h:35:1: error: unknown
> type name ‘parmacs_barrier’
> /home/hamidreza/parmacs.upc.3/pthreads/parmacs.h:36:1: error: unknown
> type name ‘parmacs_global’
> /home/hamidreza/parmacs.upc.3/pthreads/parmacs.h:37:1: error: unknown
> type name ‘parmacs_event’
> /home/hamidreza/parmacs.upc.3/pthreads/parmacs.h:38:1: error: unknown
> type name ‘parmacs_lock’
> /home/hamidreza/parmacs.upc.3/pthreads/parmacs.h:69:1: error: unknown
> type name ‘parmacs_pid’
> /home/hamidreza/parmacs.upc.3/pthreads/parmacs.h:71:1: error: unknown
> type name ‘parmacs_timestamp’
> par.c: In function ‘main’:
> par.c:13:2: error: invalid use of void expression
> par.c:14:2: error: invalid use of void expressio
>
>
> Could you help me?

Your code has bugs, you need to fix those bugs.

For example, you need to look on line 35 of parmacs.h and see how
'parmacs_barrier' is used, and why the compiler thinks it's an invalid
type.  Is it supposed to be a type? If yes, why isn't it known? If no,
why does the compiler think you are using it as a type?

It's not really possible to give more help, because you haven't shown
how you called gcc or what the code looks like on the lines listed in
the error messages.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux