6 Replies - 762 Views - Last Post: 31 July 2014 - 08:56 AM Rate Topic: -----

#1 Fatov  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 30
  • Joined: 08-May 14

undefined reference to `_imp__glewInit@0'

Posted 29 July 2014 - 02:47 PM

Hello,
I tried to setup GLEW with C++ Eclipse CDT, but always if I call the 'glewInit()' function I get this error message.
How I can fix it?

So I installed it:
I downloaded the GLEW source and compiled it as I called the mingw mysis make command to the MAKEFILE.
Than I added the include path from GLEW to the GCC C++ Compiler, copied the glew32.dll and glew32mx.dll to the System32 and SysWOW64 folder and added glew32, glew32mx to the linker after I added the lib path to the linker.
That all worked fine.

And can someone explain to me, what's the difference between the glew32 and glew32mx ?
Need I both ?

I hope someone can help me.

Is This A Good Question/Topic? 0
  • +

Replies To: undefined reference to `_imp__glewInit@0'

#2 #define  Icon User is offline

  • Duke of Err
  • member icon

Reputation: 1432
  • View blog
  • Posts: 4,968
  • Joined: 19-February 09

Re: undefined reference to `_imp__glewInit@0'

Posted 30 July 2014 - 03:55 AM

The GLEW MX is for multiple rendering contexts, which most people don't require. There is a paragraph in the website source generation page.

So try not linking with the glew mx library.

Are you building as 32 bit or 64?
.

This post has been edited by #define: 30 July 2014 - 03:56 AM

Was This Post Helpful? 0
  • +
  • -

#3 Fatov  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 30
  • Joined: 08-May 14

Re: undefined reference to `_imp__glewInit@0'

Posted 30 July 2014 - 04:43 AM

32 bit
Was This Post Helpful? 0
  • +
  • -

#4 Fatov  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 30
  • Joined: 08-May 14

Re: undefined reference to `_imp__glewInit@0'

Posted 30 July 2014 - 05:29 AM

Mh,
now I tried the pre compiled windows binaries from the glew website, and the error's gone.
But now I get a ugly warning message:

Warning: corrupt .drectve at end of def file

What does this mean ?
Was This Post Helpful? 0
  • +
  • -

#5 Fatov  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 30
  • Joined: 08-May 14

Re: undefined reference to `_imp__glewInit@0'

Posted 30 July 2014 - 07:06 AM

Hello again,
I downloaded the GLEW Windows 32 binaries.
Than I added the include path, lib path and linker libraries in Eclipse CDT.
It seems to be all ok and work, but I get a ugly warning message:

Warning: corrupt .drectve at end of def file

What does this mean ?

Ah, and I forgot to say, that I use the mingw compiler.
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9573
  • View blog
  • Posts: 36,259
  • Joined: 12-June 08

Re: undefined reference to `_imp__glewInit@0'

Posted 30 July 2014 - 07:12 AM

Please do not create duplicate topics.. merging.
Was This Post Helpful? 0
  • +
  • -

#7 #define  Icon User is offline

  • Duke of Err
  • member icon

Reputation: 1432
  • View blog
  • Posts: 4,968
  • Joined: 19-February 09

Re: undefined reference to `_imp__glewInit@0'

Posted 31 July 2014 - 08:56 AM

Hi, the definition file is a text file, so you could look at it.

My feeling is that the DLL is for MS and there is a difference for MinGW.

HOWTO Create an Import Library for a DLL using MinGW

If messing around with it maybe copy/backup the DEF file.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1