<?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: Compile switch.c Problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973429#M782986</link>
    <description>Arun,&lt;BR /&gt;&lt;BR /&gt;Yes, I did install the B3394BA.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rich</description>
    <pubDate>Wed, 12 Apr 2006 10:10:03 GMT</pubDate>
    <dc:creator>Richard Hurley</dc:creator>
    <dc:date>2006-04-12T10:10:03Z</dc:date>
    <item>
      <title>Compile switch.c Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973425#M782982</link>
      <description>I am trying to compile the switch.c program for CDE workspace switching.  I trying to compile on a workstations with 11iV1. I installed the CD Dev Kit.&lt;BR /&gt;&lt;BR /&gt;Here is the source:&lt;BR /&gt;&lt;BR /&gt;/* include files */&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;/STDIO.H&gt;&lt;BR /&gt;#include &lt;BR /&gt;&lt;BR /&gt;/* functions */&lt;BR /&gt;void main(int, char**);&lt;BR /&gt;void ws_change(Widget widget, Atom aWorkspace, XtPointer client_data);&lt;BR /&gt;&lt;BR /&gt;/* global variables */&lt;BR /&gt;static XmString xms;&lt;BR /&gt;static Widget toplevel;&lt;BR /&gt;static Widget *wWs;&lt;BR /&gt;static Atom *paWsSet = NULL;&lt;BR /&gt;static unsigned long numWorkspaces;&lt;BR /&gt;static Atom *paWs;&lt;BR /&gt;&lt;BR /&gt;static Display *display;&lt;BR /&gt;static Window root;&lt;BR /&gt;static int screen;&lt;BR /&gt;static Widget top, form, top1;&lt;BR /&gt;static XtAppContext app_context;&lt;BR /&gt;static Arg args[10];&lt;BR /&gt;static int n, i, status, pNumWorkspaces;&lt;BR /&gt;static Atom *ppaWorkspaces, foundWsAtom = NULL;&lt;BR /&gt;static DtWsmWorkspaceInfo *ppWsInfo;&lt;BR /&gt;static DtWsmCBContext wsmcontext;&lt;BR /&gt;static char *desiredWs;&lt;BR /&gt;&lt;BR /&gt;/* main - main logic for program */&lt;BR /&gt;void main (int argc, char **argv)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;/* initialize toolkit */&lt;BR /&gt;n = 0;&lt;BR /&gt;XtSetArg (args[n], XmNallowShellResize, True); n++;&lt;BR /&gt;XtSetArg (args[n], XtNmappedWhenManaged, False); n++;&lt;BR /&gt;toplevel = XtAppInitialize (&amp;amp;app_context, "Dtswitch", NULL, 0,&lt;BR /&gt;&amp;amp;argc, argv, NULL, args, n);&lt;BR /&gt;display = XtDisplay(toplevel);&lt;BR /&gt;screen = DefaultScreen(display);&lt;BR /&gt;root = RootWindow(display, screen);&lt;BR /&gt;XSynchronize(display, screen);&lt;BR /&gt;&lt;BR /&gt;if ( argc != 2 )&lt;BR /&gt;{&lt;BR /&gt;printf("must provide name of a workspace to switch to\n");&lt;BR /&gt;printf("we'll just monitor workspace changes now\n");&lt;BR /&gt;desiredWs = NULL;&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;desiredWs = argv[1];&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;status = DtWsmGetWorkspaceList(display, root, &amp;amp;ppaWorkspaces,&lt;BR /&gt;&amp;amp;pNumWorkspaces);&lt;BR /&gt;if (status != Success )&lt;BR /&gt;{&lt;BR /&gt;printf("problem obtaining workspace list, exiting with status %d\n",&lt;BR /&gt;status);&lt;BR /&gt;exit(status);&lt;BR /&gt;}&lt;BR /&gt;/*&lt;BR /&gt;printf("Number of workspaces returned is %d\n", pNumWorkspaces);&lt;BR /&gt;*/&lt;BR /&gt;for (i=0;i&lt;PNUMWORKSPACES&gt;&lt;/PNUMWORKSPACES&gt;{&lt;BR /&gt;status = DtWsmGetWorkspaceInfo(display, root, ppaWorkspaces[i],&lt;BR /&gt;&amp;amp;ppWsInfo);&lt;BR /&gt;if (status != Success )&lt;BR /&gt;{&lt;BR /&gt;printf("problem getting workspace info %d\n", status);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;printf("Workspace %d , title is %s, name is %s\n",i,&lt;BR /&gt;ppWsInfo-&amp;gt;pchTitle,&lt;BR /&gt;XGetAtomName(display,ppWsInfo-&amp;gt;workspace));&lt;BR /&gt;if ((desiredWs != NULL) &amp;amp;&amp;amp;&lt;BR /&gt;(0 == strcmp(desiredWs, ppWsInfo-&amp;gt;pchTitle)))&lt;BR /&gt;{&lt;BR /&gt;foundWsAtom = ppWsInfo-&amp;gt;workspace;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;wsmcontext = DtWsmAddCurrentWorkspaceCallback(toplevel, ws_change, NULL);&lt;BR /&gt;/*&lt;BR /&gt;printf("wsmcontext is %d\n", wsmcontext);&lt;BR /&gt;*/&lt;BR /&gt;XtRealizeWidget (toplevel);&lt;BR /&gt;&lt;BR /&gt;if (foundWsAtom != None)&lt;BR /&gt;{&lt;BR /&gt;printf("Atom is %x, name is %s\n",&lt;BR /&gt;foundWsAtom,XGetAtomName(display, foundWsAtom));&lt;BR /&gt;XFlush(display);&lt;BR /&gt;status = DtWsmSetCurrentWorkspace(toplevel, foundWsAtom);&lt;BR /&gt;XFlush(display);&lt;BR /&gt;printf("status is %d\n",status);&lt;BR /&gt;/*&lt;BR /&gt;if ( status != Success )&lt;BR /&gt;{&lt;BR /&gt;printf("workspace %s does not exist\n", desiredWs);&lt;BR /&gt;}&lt;BR /&gt;*/&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;printf("Never found a match - workspace doesn't exist\n");&lt;BR /&gt;/*&lt;BR /&gt;XtAppMainLoop (app_context);&lt;BR /&gt;*/&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void ws_change(Widget widget, Atom aWorkspace, XtPointer client_data)&lt;BR /&gt;{&lt;BR /&gt;printf("In the change workspace callback\n");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Here are the errors:&lt;BR /&gt;&lt;BR /&gt;# /scripts &amp;gt; cc switch.c -o switch&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 250: error 1000: Unexpected symbol: "*".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 252: error 1000: Unexpected symbol: "unsigned".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 252: error 1616: Unable to open intrinsic file "/usr/local/lib/sysintr".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 253: error 1000: Unexpected symbol: "unsigned".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 254: error 1000: Unexpected symbol: "client_data".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 254: error 1584: Inconsistent type declaration: "XPointer".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 254: warning 525: Redeclaration of identifier "XPointer".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 256: error 1000: Unexpected symbol: "*".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 259: error 1000: Unexpected symbol: ")".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 259: error 1616: Unable to open intrinsic file "/usr/local/lib/sysintr".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 290: error 1000: Unexpected symbol: "Display".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 291: error 1000: Unexpected symbol: "XPContext".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 290: error 1573: Type of "display" is undefined due to an illegal declaration.&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 290: error 1578: Size of struct or union member is unknown.&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 291: error 1573: Type of "context" is undefined due to an illegal declaration.&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 291: error 1578: Size of struct or union member is unknown.&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 302: error 1000: Unexpected symbol: "Display".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 303: error 1000: Unexpected symbol: "XPContext".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 302: error 1573: Type of "display" is undefined due to an illegal declaration.&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 302: error 1578: Size of struct or union member is unknown.&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 303: error 1573: Type of "context" is undefined due to an illegal declaration.&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 303: error 1578: Size of struct or union member is unknown.&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 313: error 1000: Unexpected symbol: "Display".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 314: error 1000: Unexpected symbol: "XPContext".&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 313: error 1573: Type of "display" is undefined due to an illegal declaration.&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 313: error 1578: Size of struct or union member is unknown.&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 314: error 1573: Type of "context" is undefined due to an illegal declaration.&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 314: error 1578: Size of struct or union member is unknown.&lt;BR /&gt;(Bundled) cc: "/usr/include/X11/extensions/Print.h", line 552: error 1000: Unexpected symbol: "XpCreateContext".&lt;BR /&gt;(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.&lt;BR /&gt;&lt;BR /&gt;Any C people that can help me out?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rich&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Apr 2006 09:58:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973425#M782982</guid>
      <dc:creator>Richard Hurley</dc:creator>
      <dc:date>2006-04-12T09:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compile switch.c Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973426#M782983</link>
      <description>Rich,&lt;BR /&gt;have you spotted Alex Glennies answer in &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1019177" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1019177&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I hope he re-posts it here. Please also read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:02:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973426#M782983</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-04-12T10:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compile switch.c Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973427#M782984</link>
      <description>Hi Rich, &lt;BR /&gt;&lt;BR /&gt;You can probably try installing HP-UX Develepor's toolkit and try compiling your code again, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B3394BA" target="_blank"&gt;http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B3394BA&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It may help you since it is  supported technologies include:&lt;BR /&gt;&lt;BR /&gt;    * OSF/Motif 2.1&lt;BR /&gt;    * X11 R6.2 Xlib&lt;BR /&gt;    * X11 R6.2 Xt Intrinsics&lt;BR /&gt;    * X11 R6.2 Athena Widget Set&lt;BR /&gt;    * Imake&lt;BR /&gt;    * HP CDE 2.1  (11.00, 11.11 only)&lt;BR /&gt;    * Audio and imaging multimedia  (11.00, 11.11 only)&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 12 Apr 2006 10:03:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973427#M782984</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-04-12T10:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compile switch.c Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973428#M782985</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;Thanks, I just saw the reply to my other thread.  I will also assign the points.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;Rich</description>
      <pubDate>Wed, 12 Apr 2006 10:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973428#M782985</guid>
      <dc:creator>Richard Hurley</dc:creator>
      <dc:date>2006-04-12T10:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compile switch.c Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973429#M782986</link>
      <description>Arun,&lt;BR /&gt;&lt;BR /&gt;Yes, I did install the B3394BA.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rich</description>
      <pubDate>Wed, 12 Apr 2006 10:10:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973429#M782986</guid>
      <dc:creator>Richard Hurley</dc:creator>
      <dc:date>2006-04-12T10:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Compile switch.c Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973430#M782987</link>
      <description>Hi Rich, &lt;BR /&gt;&lt;BR /&gt;Perhaps, you can try installing Ansi C compiler or aCC to compile this program since you were using bundled CC. Just a thought i should say &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 12 Apr 2006 10:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973430#M782987</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-04-12T10:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compile switch.c Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973431#M782988</link>
      <description>Arun,&lt;BR /&gt;&lt;BR /&gt;Thanks, I got a complied version from Alex.&lt;BR /&gt;&lt;BR /&gt;Rich</description>
      <pubDate>Wed, 12 Apr 2006 11:07:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973431#M782988</guid>
      <dc:creator>Richard Hurley</dc:creator>
      <dc:date>2006-04-12T11:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Compile switch.c Problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973432#M782989</link>
      <description>Got compiled version from Alex.</description>
      <pubDate>Wed, 12 Apr 2006 11:13:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compile-switch-c-problem/m-p/4973432#M782989</guid>
      <dc:creator>Richard Hurley</dc:creator>
      <dc:date>2006-04-12T11:13:23Z</dc:date>
    </item>
  </channel>
</rss>

