Re: gcc compiling problem



Yinghui Zhang <y.zhang@xxxxxxxxxxxxxx> wrote:
I am trying to compile a C programm on a hp c3000, 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:
------------------------------
/opt/graphics/OpenGL/include/GL/glHPInt:33:error: thread-local storage
not supported for this target
------------------------------

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.

gcc can't cope with the __thread storage type. You can avoid the
entire macro mechanism and use normal function calls by compiling with
"-D__glHpInt_h__" to ifdef away the body of glHpInt.h.
.



Relevant Pages

  • Re: Y2038 and time_t
    ... is the smallest and largest I can get in there so I know whether conversion ... |> Later I generalized the problem with the macros shown in the code below. ... |> to a final value at compile time. ... I don't know how far back in gcc versions ...
    (comp.unix.programmer)
  • Re: stringify with embedded quotes
    ... > I have a couple of macros: ... > workaround, hopefully at the level of a macro? ... As an example, the following won't compile on gcc, gcc, ...
    (comp.lang.c)
  • Re: How do I install this missing library?
    ... you really should be carefully following LSTC's installation ... libg2c is part of gcc. ... to tell a newcomer to compile. ... like the source code to GNU tar, and make sure you understand what's ...
    (comp.os.linux.misc)
  • Re: HPGCC Questions ladies and gentlemen!!!
    ... No matter how you slice it in order to compile a C program you need to know ... it took a few hours just to get gcc running in my computer ... of the students that used an ide in the c++ class I took a few years ago. ... so why not use a data inspector if it's available? ...
    (comp.sys.hp48)
  • Re: Yet another when to use macros question....
    ... Lisp data to go in, and quality machine code to pop out! ... You keep saying that code with functions only is better than macros. ... compile all the way to native code). ... SETQ is a general-purpose assignment operator that ...
    (comp.lang.lisp)