Results 1 to 6 of 6

Thread: Installation question (New and Improved)

  1. #1

    Thread Starter
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Installation question (New and Improved)

    I'm a bit embarrassed to ask this, since I suspect the answer is simple, but I haven't been able to track it down by any means. I was working on a program in VC6 on a computer which turned out to be inadequate for testing purposes. Therefore, I got a new system with sufficient memory for my purposes, installed VC6, and moved all the project files across. The program compiled and built just fine on the old system, but now I get a string of link errors which I have determined to be occuring because I am linking to retail versions of the libraries instead of debug versions.

    That should be something simple to fix, but all the settings show that I am building the debug version, and I can't find anywhere to specify a different version of the .dlls to link in.

    There must be something that I am overlooking, but I can't figure out what it is. Any suggestions?
    Last edited by Shaggy Hiker; Feb 4th, 2003 at 10:15 AM.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Of which libraries?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106
    Ahh, I can't recall. The problems are really standard stuff, and I don't think they are any of the directx dll's, but I'll have to look tonight to be certain. I'll get that info and post tomorrow.

  4. #4

    Thread Starter
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106
    Sorry, I think I will have to deal with this Monday. I am in the middle of moving, and realized that all references to this program are currently packed in boxes. Furthermore, our IT dept is demanding that we shut down so that they can clean our computers.

  5. #5

    Thread Starter
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106
    The link error is LNK2001, and it only occurs when I compile the debug version, the retail version is fine. Since this could occur when linking to the wrong versions of the libraries, I think I have something set wrong. The libraries in question appear to be user32.lib, gdi.lib, winmm.lib, and the directx libraries. The errors are for really simple functions like cos(), sin(), and some similar simple math related functions. Interstingly, I don't think I actually use cos() or sin(), since I created a lookup table to handle those functions.

    I have a vague memory of installing something that asked whether I wanted to install the retail or the debug version. Could this have been DirectX 7, and could that be the problem?

  6. #6
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403
    Perhaps you set those libraries to be linked only in the Release build? Check under the linker options and make sure they are set for "All Builds" not just Release.
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width