www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - linker error: Previous Definition Different : _GL_VERTEX_ARRAY_EXT

reply Cris <central_p hotmail.com> writes:
.objs\Release\src\base\glee\glee_h.obj(glee_h)  Offset 0C27AH Record 
Type 0091
  Error 1: Previous Definition Different : _GL_VERTEX_ARRAY_EXT

What can cause this linker error?

Previously I had all files in /src and I moved them in /src/base (with 
the already existing subdirectories).
I had to add base. to all imports.
Original:
import glee.glee;
import glee.glee_h;

Now:

import base.glee.glee;
import base.glee.glee_h;

etc.

The program compiles but cannot link and multiple errors like the quoted 
  one are issued when linking.

As I see they are all about constants.

Cris
Feb 28 2006
parent reply Cris <central_p hotmail.com> writes:
I've found what causes that. I've compiled gl.d too. When I removed gl.d 
  The program compiles and links.

Is there any manual explaining the meaning of the linker and compiler 
messages?

Cris wrote:
 .objs\Release\src\base\glee\glee_h.obj(glee_h)  Offset 0C27AH Record 
 Type 0091
  Error 1: Previous Definition Different : _GL_VERTEX_ARRAY_EXT
 
 What can cause this linker error?
 
 Previously I had all files in /src and I moved them in /src/base (with 
 the already existing subdirectories).
 I had to add base. to all imports.
 Original:
 import glee.glee;
 import glee.glee_h;
 
 Now:
 
 import base.glee.glee;
 import base.glee.glee_h;
 
 etc.
 
 The program compiles but cannot link and multiple errors like the quoted 
  one are issued when linking.
 
 As I see they are all about constants.
 
 Cris
Feb 28 2006
parent "Walter Bright" <newshound digitalmars.com> writes:
"Cris" <central_p hotmail.com> wrote in message 
news:du3fr9$2c54$1 digitaldaemon.com...
 Is there any manual explaining the meaning of the linker and compiler 
 messages?
http://www.digitalmars.com/ctg/OptlinkErrorMessages.html#previous_definition_different
Mar 01 2006