<?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: compiling problem in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979888#M99689</link>
    <description>&lt;!--!*#--&gt;It sounds like you just didn't link with libglut or linked with&lt;BR /&gt;it before the code that used it.  It is available on HP-UX as&lt;BR /&gt;/opt/graphics/OpenGL/contrib/libglut/libglut.a which you can&lt;BR /&gt;use with -L/opt/graphics/OpenGL/contrib/libglut -lglut .&lt;BR /&gt;Because it is an archive library it must appear in the link line&lt;BR /&gt;after the file that calls the glut functions.  If it is listed too&lt;BR /&gt;early then the linker won't know to pull in the required functions.&lt;BR /&gt;&lt;BR /&gt;  You can use -Wl,+n to ask the HP-UX linker to loop around retrying archive libraries to pick up missing symbols.  I don't usually consider the +n option unless the libraries have circular dependencies.  Getting the source files and libraries in the correct dependency order is more portable.&lt;BR /&gt;&lt;BR /&gt;The version of glut shipped with HP-UX is quite old.  If you have&lt;BR /&gt;code that uses newer glut features you will need to compile a newer&lt;BR /&gt;version.  You can find that at&lt;BR /&gt;&lt;A href="http://www.opengl.org/resources/libraries/glut/glut_downloads.php" target="_blank"&gt;http://www.opengl.org/resources/libraries/glut/glut_downloads.php&lt;/A&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 22 May 2006 10:19:00 GMT</pubDate>
    <dc:creator>Mike Stroyan</dc:creator>
    <dc:date>2006-05-22T10:19:00Z</dc:date>
    <item>
      <title>compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979880#M99681</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;I am trying comple a very simple C programm, the program is very simple it creates a glut window and that's all. I compile it using gcc 4.1 and got some problems:&lt;BR /&gt;------------------------------&lt;BR /&gt;/opt/graphics/OpenGL/include/GL/glHPInt:33:error: thread-local storage not supported for this target&lt;BR /&gt;------------------------------&lt;BR /&gt;can anyone give some help to me, what's the problem? thanks in advance!&lt;BR /&gt;&lt;BR /&gt;yz&lt;BR /&gt;</description>
      <pubDate>Fri, 19 May 2006 05:51:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979880#M99681</guid>
      <dc:creator>John712_1</dc:creator>
      <dc:date>2006-05-19T05:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979881#M99682</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Check this out, &lt;A href="http://lists.debian.org/debian-glibc/2006/02/msg00303.html" target="_blank"&gt;http://lists.debian.org/debian-glibc/2006/02/msg00303.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;it could be a bug in GCC.. Try latest available version of GCC or try with HP Ansi C or aCC. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Fri, 19 May 2006 06:00:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979881#M99682</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-05-19T06:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979882#M99683</link>
      <description>thanks, Arun&lt;BR /&gt;&lt;BR /&gt;I am using a hp c3000 system running hpux 11i v1, not a debian system. I think the gcc 4.1.0 is the latest. any suggestions on a stable gcc version? thanks</description>
      <pubDate>Fri, 19 May 2006 07:32:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979882#M99683</guid>
      <dc:creator>John712_1</dc:creator>
      <dc:date>2006-05-19T07:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979883#M99684</link>
      <description>Shalom yz,&lt;BR /&gt;&lt;BR /&gt;The gcc is stable, I think this code has included an invalid reference to the file in the error.&lt;BR /&gt;&lt;BR /&gt;Does the file exist?&lt;BR /&gt;&lt;BR /&gt;If not, see about modifying your code to stop including it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 19 May 2006 07:37:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979883#M99684</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-05-19T07:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979884#M99685</link>
      <description>thanks Steven,&lt;BR /&gt;&lt;BR /&gt;the .h files included in my programm are:&lt;BR /&gt;#include &lt;GL&gt;&lt;BR /&gt;#include &lt;GL&gt;&lt;BR /&gt;&lt;BR /&gt;nothing else.&lt;BR /&gt;&lt;BR /&gt;I do not know if there really have a file called glHPInt, I will check it when  I am home. thanks&lt;/GL&gt;&lt;/GL&gt;</description>
      <pubDate>Fri, 19 May 2006 09:16:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979884#M99685</guid>
      <dc:creator>John712_1</dc:creator>
      <dc:date>2006-05-19T09:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979885#M99686</link>
      <description>The gl.h header file includes glHpInt.h, which uses macros to make faster calls to OpenGL functions.  The macros call through an array of function pointers that is declared as thread local storage.&lt;BR /&gt;&lt;BR /&gt;  gcc can't cope with the __thread storage type.  You can avoid the entire macro mechanism and use normal function calls by using "-D__glHpInt_h__" to ifdef away the body of&lt;BR /&gt;glHpInt.h.&lt;BR /&gt;</description>
      <pubDate>Fri, 19 May 2006 13:11:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979885#M99686</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2006-05-19T13:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979886#M99687</link>
      <description>Many thanks, Mike. It works! Brilliant! However, I got some other&lt;BR /&gt;problems:&lt;BR /&gt;------------------&lt;BR /&gt;/usr/ccs/bin/ld: Unsatisfied symbols:&lt;BR /&gt;   glutInitWindowSize(code)&lt;BR /&gt;   glutInitDisplayMode(code)&lt;BR /&gt;   glutMainLoop(code)&lt;BR /&gt;   glutCreateWindow(code)&lt;BR /&gt;   glutInitWindowPosition(code)&lt;BR /&gt;   glutInit(code)&lt;BR /&gt;collect2:ld returned 1 exit status&lt;BR /&gt;gmake: ***[glutw] Error 1&lt;BR /&gt;--------------------&lt;BR /&gt;&lt;BR /&gt;So what's the problem? Many thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Yinghui Zhang</description>
      <pubDate>Mon, 22 May 2006 03:46:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979886#M99687</guid>
      <dc:creator>John712_1</dc:creator>
      <dc:date>2006-05-22T03:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979887#M99688</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;You may need to link your program with OpenGL libraries. Check this out &lt;A href="http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B6268AA" target="_blank"&gt;http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B6268AA&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Mon, 22 May 2006 03:58:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979887#M99688</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-05-22T03:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979888#M99689</link>
      <description>&lt;!--!*#--&gt;It sounds like you just didn't link with libglut or linked with&lt;BR /&gt;it before the code that used it.  It is available on HP-UX as&lt;BR /&gt;/opt/graphics/OpenGL/contrib/libglut/libglut.a which you can&lt;BR /&gt;use with -L/opt/graphics/OpenGL/contrib/libglut -lglut .&lt;BR /&gt;Because it is an archive library it must appear in the link line&lt;BR /&gt;after the file that calls the glut functions.  If it is listed too&lt;BR /&gt;early then the linker won't know to pull in the required functions.&lt;BR /&gt;&lt;BR /&gt;  You can use -Wl,+n to ask the HP-UX linker to loop around retrying archive libraries to pick up missing symbols.  I don't usually consider the +n option unless the libraries have circular dependencies.  Getting the source files and libraries in the correct dependency order is more portable.&lt;BR /&gt;&lt;BR /&gt;The version of glut shipped with HP-UX is quite old.  If you have&lt;BR /&gt;code that uses newer glut features you will need to compile a newer&lt;BR /&gt;version.  You can find that at&lt;BR /&gt;&lt;A href="http://www.opengl.org/resources/libraries/glut/glut_downloads.php" target="_blank"&gt;http://www.opengl.org/resources/libraries/glut/glut_downloads.php&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 May 2006 10:19:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979888#M99689</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2006-05-22T10:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979889#M99690</link>
      <description>Many thanks, Mike. It works! The strange thing is I have use&lt;BR /&gt;-L/opt/graphics/OpenGL/contrib/libglut/libglut.a -lglut &lt;BR /&gt;instead of&lt;BR /&gt;-L/opt/graphics/OpenGL/contrib/libglut -lglut.&lt;BR /&gt;Anyway, I got my glut window! &lt;BR /&gt;Many thanks.</description>
      <pubDate>Tue, 23 May 2006 04:17:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979889#M99690</guid>
      <dc:creator>John712_1</dc:creator>
      <dc:date>2006-05-23T04:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: compiling problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979890#M99691</link>
      <description>Thanks all your guys for your help&lt;BR /&gt;&lt;BR /&gt;YZ</description>
      <pubDate>Wed, 24 May 2006 05:02:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compiling-problem/m-p/4979890#M99691</guid>
      <dc:creator>John712_1</dc:creator>
      <dc:date>2006-05-24T05:02:16Z</dc:date>
    </item>
  </channel>
</rss>

