View Full Version : Updating a Project From V.C 6.0 to Visual Studio 2013

03-02-2015, 06:29 AM
Hello all:

First of all,I hace no idea of using OpenGL but I'm trying to update a project that uses OpenGl. The problem is that it uses the library glaux.lib and it give me SAFESEH errors. I know that is a very old and not updated library

Error 4 error LNK2026: module unsafe for en SAFESEH. C:\...\glaux.lib(image.obj)
Error 7 error LNK2026: module unsafe for en SAFESEH. C:\...\glaux.lib(tk.obj)
Error 6 error LNK2026: module unsafe for en SAFESEH. C:\...\glaux.lib(tkdib.obj)
Error 5 error LNK2026: module unsafe for en SAFESEH. C:\..\glaux.lib(tkimage.obj)

Disabling SAFESEH is not a solution becaus it gives me more than 100 erros (Its quite a big project :p )

So does anybody know how to solve this errors?

Thank you!!!:D:D:D

Alfonse Reinheart
03-02-2015, 06:58 AM
If you're updating the project, then you should simply replace all the GLaux stuff with some other library(ies). Most people used GLaux for image loading, so find a library that handles image loading for you.

03-02-2015, 08:10 AM
For SAFESEH you can find the setting under Project Properties, Linker, Advanced, then set "Image has Safe Exception Handlers" to "No".

Either way I second Alfonse's advice to just use something else instead of glaux: in the longer term you're going to have other compatibility issues with it.

03-02-2015, 08:28 AM
Thank you for replying so fast :)

I'll try replacing it because if I use the \NOSAFESEH option i get 160 errors of lnk2001 unresolved external symbol :doh: