<?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>Operating System - HP-UXのトピックRe: Error compiling posix threds program?</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-posix-threds-program/m-p/4571393#M679166</link>
    <description>&lt;!--!*#--&gt;&amp;gt;the code generated with the "-P" option:&lt;BR /&gt;&lt;BR /&gt;A better option is: -E -.i&lt;BR /&gt;&lt;BR /&gt;&amp;gt;B.11.00&lt;BR /&gt;&lt;BR /&gt;This isn't supported.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Is it strange, the precompiled code has an extra "}". &lt;BR /&gt;&lt;BR /&gt;It appears these are macros and you need to use them in pairs:&lt;BR /&gt;   pthread_cleanup_push(TPV_closing_state, (void*)obj);&lt;BR /&gt;   ; // stuff&lt;BR /&gt;   pthread_cleanup_pop(true);&lt;BR /&gt;</description>
    <pubDate>Tue, 26 Jan 2010 23:30:37 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-01-26T23:30:37Z</dc:date>
    <item>
      <title>Error compiling posix threds program?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-posix-threds-program/m-p/4571390#M679163</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Why this program doesn't compile?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;SNIP begin=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;m3vmsa3.extpex /tmp &amp;gt; cat kk.c                                               &lt;BR /&gt;#include &lt;PTHREAD.H&gt;&lt;BR /&gt;&lt;BR /&gt;void TPV_closing_state(void *arg){}&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; void *obj= 0L ;&lt;BR /&gt; pthread_cleanup_push(TPV_closing_state, (void *)obj);&lt;BR /&gt;}&lt;BR /&gt;m3vmsa3.extpex /tmp &amp;gt; aCC   -AA -D_POSIX_THREADS_ -D_RWSTD_MULTI_THREAD  kk.c&lt;BR /&gt;Error 20: "kk.c", line 8679 # '}' expected before '&lt;END of="" file=""&gt;'.&lt;BR /&gt;m3vmsa3.extpex /tmp &amp;gt; aCC -V                                                 &lt;BR /&gt;aCC: HP ANSI C++ B3910B A.03.27&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;SNIP end=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Jose Luis&lt;BR /&gt;&lt;/SNIP&gt;&lt;/END&gt;&lt;/PTHREAD.H&gt;&lt;/SNIP&gt;</description>
      <pubDate>Tue, 26 Jan 2010 11:51:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-posix-threds-program/m-p/4571390#M679163</guid>
      <dc:creator>jose_luis_fdez_diaz</dc:creator>
      <dc:date>2010-01-26T11:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error compiling posix threds program?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-posix-threds-program/m-p/4571391#M679164</link>
      <description>&amp;gt;Why this program doesn't compile?&lt;BR /&gt;&lt;BR /&gt;Is pthread_cleanup_push(3t) defined in &lt;SYS&gt;?  What OS version are you using?&lt;BR /&gt;&lt;BR /&gt;A.03.27 is obsolete, the latest is A.03.85.&lt;BR /&gt;(If -mt is supported, you should use that.)&lt;BR /&gt;&lt;/SYS&gt;</description>
      <pubDate>Tue, 26 Jan 2010 12:26:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-posix-threds-program/m-p/4571391#M679164</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-26T12:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error compiling posix threds program?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-posix-threds-program/m-p/4571392#M679165</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;This is my OS version and the code generated with the "-P" option:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;SNIP begin=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;m3vmsa3.extpex /tmp &amp;gt; aCC  -P -AA -D_POSIX_THREADS_ -D_RWSTD_MULTI_THREAD  kk.c&lt;BR /&gt;m3vmsa3.extpex /tmp &amp;gt; tail  -6 kk.i                                            &lt;BR /&gt;void TPV_closing_state(void *arg){}&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; void *obj= 0L ;&lt;BR /&gt; { __pthread_cleanup_handler_t __handler, **__handler_queue; __handler.__handler_function = TPV_closing_state; __handler.__handler_arg = (void *)obj; __handler_queue = (__pthread_cleanup_handler_t **)(__pthread_cancel_stack()); __handler.__next_handler = *__handler_queue; *__handler_queue = &amp;amp;__handler; ;&lt;BR /&gt;}&lt;BR /&gt;m3vmsa3.extpex /tmp &amp;gt; uname -a&lt;BR /&gt;HP-UX m3vmsa3 B.11.00 U 9000/800 178951547 unlimited-user license&lt;BR /&gt;m3vmsa3.extpex /tmp &amp;gt; aCC  -mt -AA -D_POSIX_THREADS_ -D_RWSTD_MULTI_THREAD  kk.c&lt;BR /&gt;aCC: warning 901: unknown option: `-mt': use +help for online documentation. &lt;BR /&gt;Error 20: "kk.c", line 8679 # '}' expected before '&lt;END of="" file=""&gt;'.&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;SNIP end=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is is strange, the precompiled code has an extra "}".&lt;BR /&gt;&lt;BR /&gt;The "-mt" option is not supported.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jose Luis.&lt;BR /&gt;&lt;/SNIP&gt;&lt;/END&gt;&lt;/SNIP&gt;</description>
      <pubDate>Tue, 26 Jan 2010 14:23:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-posix-threds-program/m-p/4571392#M679165</guid>
      <dc:creator>jose_luis_fdez_diaz</dc:creator>
      <dc:date>2010-01-26T14:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error compiling posix threds program?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-posix-threds-program/m-p/4571393#M679166</link>
      <description>&lt;!--!*#--&gt;&amp;gt;the code generated with the "-P" option:&lt;BR /&gt;&lt;BR /&gt;A better option is: -E -.i&lt;BR /&gt;&lt;BR /&gt;&amp;gt;B.11.00&lt;BR /&gt;&lt;BR /&gt;This isn't supported.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Is it strange, the precompiled code has an extra "}". &lt;BR /&gt;&lt;BR /&gt;It appears these are macros and you need to use them in pairs:&lt;BR /&gt;   pthread_cleanup_push(TPV_closing_state, (void*)obj);&lt;BR /&gt;   ; // stuff&lt;BR /&gt;   pthread_cleanup_pop(true);&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Jan 2010 23:30:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-compiling-posix-threds-program/m-p/4571393#M679166</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-26T23:30:37Z</dc:date>
    </item>
  </channel>
</rss>

