Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VC++ 5.00 to VC 6.00 2

Status
Not open for further replies.

bio4ema

Programmer
Mar 13, 2005
11
AT
hello.

i've recently purchased 'a programmer's guide to sound' by tim kienzle which includes sample source code written in visual c++ 5.00.

i'm using visual studio.net 2003 (visual c++ 6.00) and whenever i try to run the code, i get 'unresolved external' errors (LNK 2019 or LNK 2001).

is this a version 5.00 to version 6.00 problem ?

if so, is there a way to fix it ?

thanks for your help.
 
> i'm using visual studio.net 2003 (visual c++ 6.00)
Try to be specific, these are two different versions separated by at least 5 years.

> i get 'unresolved external' errors (LNK 2019 or LNK 2001).
Telling us the actual error messages would probably have helped.

My guess is that the code is so old, and it relies on DOS (or physical device access) that it can no longer be compiled for today's compilers and operating systems.

--
 
I thought the 2003 release was version 7.1? (and 2002 is 7.0)

-Bones
 
ok, i mixed up the versions, sorry.

the sample code is in vc++ 5 and i want to run it in vc++ 7

anyway, the error messages are of the type :

error LNK2001: unresolved external symbol (as stated above)

this, i guess, in my case means that there is a problem accessing a function declared in a header-file.

i do not think that this an OS problem, but rather some syntax change
 
I checked out MSDN and they didn't seem too optimistic.

"Mixing versions of Microsoft libraries and compiler products can be problematic. A new compiler version's libraries may contain new symbols that cannot be found in the libraries included with previous versions. Use DUMPBIN to find out if a symbol is in a 32-bit object file or library."

I got this from
-Bones
 
Which symbols are unresolved? Between 5 and 6, MS prefixed some routines which they didn't consider standard with an underscore. Just do a search for the routine name in the standard header files. You will probably find that they have a leading underscore.
 
xwb (Programmer) 15 Mar 05 2:42
Which symbols are unresolved? Between 5 and 6, MS prefixed some routines which they didn't consider standard with an underscore. Just do a search for the routine name in the standard header files. You will probably find that they have a leading underscore.



the unresolved symbols are in classes defined in the header-files which came with the sample code.

allthough i've spent quite a serious amount of time to search for problems in those headers i couldn't find any...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top