<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: pthread and compile error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-and-compile-error/m-p/4929236#M558277</link>
    <description>Besides -pthread option in compiler and linker as describe in newsgroup and DECthread manual i added following to compiler flag to resolve my compilation error,&lt;BR /&gt;&lt;BR /&gt;-D_POSIX_C_SOURCE=199506L&lt;BR /&gt;&lt;BR /&gt;I found useful explanation in /usr/include/pthread.h</description>
    <pubDate>Tue, 27 Sep 2005 04:51:39 GMT</pubDate>
    <dc:creator>Kevin Tan</dc:creator>
    <dc:date>2005-09-27T04:51:39Z</dc:date>
    <item>
      <title>pthread and compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-and-compile-error/m-p/4929235#M558276</link>
      <description>Platform: Dec Alpha v5.1&lt;BR /&gt;&lt;BR /&gt;Had written an application using POSIX thread. Eventhough I had include the required -pthread flag into the C compiler (cc), the compiler complains the following error.&lt;BR /&gt;&lt;BR /&gt;cc: Error: /usr/include/pthread.h, line 971: Ill-formed parameter type list. (parmtyplist)&lt;BR /&gt;typedef void    __pthreadExtDestructorFunc_t (void*, pthread_t, pthread_key_t);&lt;BR /&gt;-----------------------------------------------------^&lt;BR /&gt;&lt;BR /&gt;cc: Error: /usr/include/pthread.h, line 1277: Error parsing parameter list. Found "*" when expecting one of: ",", ")". (notexpecting)&lt;BR /&gt;extern int pthread_mutex_setprioceiling (pthread_mutex_t*, int, int*);&lt;BR /&gt;--------------------------------------------------------^&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cc: Error: /usr/include/pthread.h, line 1303: Error parsing parameter list. Found "*" when expecting one of: ",", ")". (notexpecting)&lt;BR /&gt;extern int pthread_condattr_init (pthread_condattr_t*);&lt;BR /&gt;----------------------------------------------------^&lt;BR /&gt;&lt;BR /&gt;(pls ignore the error point --^)&lt;BR /&gt;&lt;BR /&gt;and many other pthread_ type having the similar error message.  From the error message, seem that these pthread_ types are not define.&lt;BR /&gt;&lt;BR /&gt;Think the C compiler in DEC v5.1 support threaded program, as the manual mention the -pthread flag.&lt;BR /&gt;&lt;BR /&gt;Had read newsgroups and DCEThread guide, but found nothing useful.&lt;BR /&gt;&lt;BR /&gt;Would appreciate your diagnotics and hint to resolve it. Thanking in advance&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Sep 2005 01:50:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-and-compile-error/m-p/4929235#M558276</guid>
      <dc:creator>Kevin Tan</dc:creator>
      <dc:date>2005-09-27T01:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: pthread and compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pthread-and-compile-error/m-p/4929236#M558277</link>
      <description>Besides -pthread option in compiler and linker as describe in newsgroup and DECthread manual i added following to compiler flag to resolve my compilation error,&lt;BR /&gt;&lt;BR /&gt;-D_POSIX_C_SOURCE=199506L&lt;BR /&gt;&lt;BR /&gt;I found useful explanation in /usr/include/pthread.h</description>
      <pubDate>Tue, 27 Sep 2005 04:51:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pthread-and-compile-error/m-p/4929236#M558277</guid>
      <dc:creator>Kevin Tan</dc:creator>
      <dc:date>2005-09-27T04:51:39Z</dc:date>
    </item>
  </channel>
</rss>

