Results 1 to 2 of 2

Thread: LNK1123: failure during conversion to COFF

  1. #1
    Junior Member Newbie
    Join Date
    May 2014
    Posts
    4

    LNK1123: failure during conversion to COFF

    I need help trying to fix the following error message:

    1>------ Build started: Project: Starting_square, Configuration: Debug Win32 ------
    1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    I am have a Win 7, 64-bit Win computer and followed the Guide to Installing OpenGL for Windows, through the download section of at www.sumantaguha.com. I installed Visual C++ 2010 Express, glew, freeglut and glext.h files in the suggested places. I then used the Property Pages of Visual C++ to indicate where to find the added include and library files. I tried running the following sample code, for which I will only show the first few lines. Thanks for helping me to get started.

    ///////////////////////////////////
    // square.cpp
    //
    // OpenGL program to draw a square.
    //
    // Sumanta Guha.
    ///////////////////////////////////

    #ifdef __APPLE__
    # include <GL/glew.h>
    # include <GL/freeglut.h>
    # include <OpenGL/glext.h>
    #else
    # include <GL/glew.h>
    # include <GL/freeglut.h>
    # include <GL/glext.h>
    #pragma comment(lib, "glew32.lib")
    #endif

    // Drawing routine.
    void drawScene(void)

  2. #2
    Junior Member Newbie
    Join Date
    May 2014
    Posts
    4
    I was able to solve the "LNK1123: failure during conversion to COFF" by installing
    Visual C++ 2010 service pack 1


    Hopefully this may be of help to other beginners.

Similar Threads

  1. FBO failure
    By eldritch in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 12-18-2006, 11:44 AM
  2. wglMakeCurrent failure
    By V-man in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 02-22-2005, 11:58 AM
  3. wglChoosePixelFormatARB failure
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-12-2004, 01:41 PM
  4. wglUseFontOutlines failure on W2K
    By JoeFinn in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-15-2003, 10:48 AM
  5. wglCreateContext failure
    By clunis_immensus in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 07-18-2002, 02:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean