PDA

Click to See Complete Forum and Search --> : Installation question (New and Improved)


Shaggy Hiker
Jan 28th, 2003, 06:36 PM
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?

CornedBee
Jan 28th, 2003, 07:34 PM
Of which libraries?

Shaggy Hiker
Jan 29th, 2003, 08:54 PM
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.

Shaggy Hiker
Jan 31st, 2003, 03:11 PM
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.:rolleyes:

Shaggy Hiker
Feb 4th, 2003, 09:15 AM
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?

sunburnt
Feb 7th, 2003, 05:54 PM
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.