V++6 compiles OK but VS2005 gives errors

F

Franky

I have a cpp program that use to compile in C++6 but give a bunch of errors
in VS2005

I'm wondering if I need to reference to some library.

I'd appreciate any helpful suggestion

Even if it's just a suggestion of where to look or something that might
work.

--------------------------description------------------------------file--------
Error 20 error LNK2001: unresolved external symbol __ftol2_sse
MainOn.obj

Error 27 error LNK2001: unresolved external symbol ___security_cookie
Files.obj

Error 39 error LNK2001: unresolved external symbol __chkstk
Play.obj

Error 43 error LNK2019: unresolved external symbol __gmtime64 referenced in
function _gmtime MainOn.obj

Error 13 error LNK2001: unresolved external symbol _strstr
Bitmap.obj


Mostly, I don't know these symbols
For example I searched all files for chkstk without a hit. The same for
"security"


Thanks in advance for any help
 
C

Carl Daniel [VC++ MVP]

Franky said:
I have a cpp program that use to compile in C++6 but give a bunch of
errors in VS2005

I'm wondering if I need to reference to some library.

I'd appreciate any helpful suggestion

Even if it's just a suggestion of where to look or something that
might work.

It looks like you're linking VC2005 compiled code against the VC6 runtime
libraries. Check your Tools|Options|VC++ Directories for libraries and
include files and make sure that the VC6 paths are NOT present. Also check
the additional include and addition library path properties of your project
to make sure that the VC6 paths are NOT present.

-cd
 
F

Franky

Thanks for the reply.

If I copy the entire solution to another folder and the open it into VS and
deleted some of the stuff below, the original soultion will still be intact.
Is that correct? None of this stuff is global for all VS2005 is it?

I do not have VC6++ installed.

Below are a few things from the project property pages. Maybe you can
quickly see something that should not be there.


Thanks a lot


Under Configuration Properties/General/Inherited Project Property Sheet
$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops

Under Configuration Properties/C/C++/command Line
/O2 /Ob1 /I "C:\Program Files\HTML Help Workshop\include" /D "WIN32" /D
"NDEBUG" /D "_WINDOWS" /D "_VC80_UPGRADE=0x0600" /GF /FD /EHsc /MT /Gy
/Fp".\Release/AnnGame.pch" /Fo".\Release/" /Fd".\Release/" /W3 /nologo /c
/TP /errorReport:prompt

Under Configuration Properties/Linker/Input/additional directories
odbc32.lib odbccp32.lib comctl32.lib htmlhelp.lib winmm.lib

Under Configuration Properties//Linker/command Line
/OUT:".\Release/AnnGame.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST
/MANIFESTFILE:".\Release\AnnGame.exe.intermediate.manifest"
/NODEFAULTLIB:"LIBCMT.LIB" /PDB:".\Release/AnnGame.pdb" /SUBSYSTEM:WINDOWS
/MACHINE:X86 /ERRORREPORT:pROMPT odbc32.lib odbccp32.lib comctl32.lib
htmlhelp.lib winmm.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib

Under Configuration Properties//Resources/Command Line
/d "NDEBUG" /d "_VC80_UPGRADE=0x0600" /l 0x409 /fo".\Release/AnnGame.res"
 
B

Ben Voigt

Franky said:
Thanks for the reply.

If I copy the entire solution to another folder and the open it into VS
and deleted some of the stuff below, the original soultion will still be
intact. Is that correct? None of this stuff is global for all VS2005 is
it?

Make sure you delete all the files created by the VC6 compiler (*.obj,
*.sbr, etc) and recreate them with VC2005. The "Rebuild All" option usually
works well for this.
 
F

Franky

Thanks, I've got it resolved now.


Ben Voigt said:
Franky said:
Thanks for the reply.

If I copy the entire solution to another folder and the open it into VS
and deleted some of the stuff below, the original soultion will still be
intact. Is that correct? None of this stuff is global for all VS2005 is
it?

Make sure you delete all the files created by the VC6 compiler (*.obj,
*.sbr, etc) and recreate them with VC2005. The "Rebuild All" option
usually works well for this.
I do not have VC6++ installed.

Below are a few things from the project property pages. Maybe you can
quickly see something that should not be there.


Thanks a lot


Under Configuration Properties/General/Inherited Project Property Sheet
$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops

Under Configuration Properties/C/C++/command Line
/O2 /Ob1 /I "C:\Program Files\HTML Help Workshop\include" /D "WIN32" /D
"NDEBUG" /D "_WINDOWS" /D "_VC80_UPGRADE=0x0600" /GF /FD /EHsc /MT /Gy
/Fp".\Release/AnnGame.pch" /Fo".\Release/" /Fd".\Release/" /W3 /nologo /c
/TP /errorReport:prompt

Under Configuration Properties/Linker/Input/additional directories
odbc32.lib odbccp32.lib comctl32.lib htmlhelp.lib winmm.lib

Under Configuration Properties//Linker/command Line
/OUT:".\Release/AnnGame.exe" /INCREMENTAL:NO /NOLOGO /MANIFEST
/MANIFESTFILE:".\Release\AnnGame.exe.intermediate.manifest"
/NODEFAULTLIB:"LIBCMT.LIB" /PDB:".\Release/AnnGame.pdb"
/SUBSYSTEM:WINDOWS /MACHINE:X86 /ERRORREPORT:pROMPT odbc32.lib
odbccp32.lib comctl32.lib htmlhelp.lib winmm.lib kernel32.lib user32.lib
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

Under Configuration Properties//Resources/Command Line
/d "NDEBUG" /d "_VC80_UPGRADE=0x0600" /l 0x409 /fo".\Release/AnnGame.res"

"Carl Daniel [VC++ MVP]"
Franky wrote:
I have a cpp program that use to compile in C++6 but give a bunch of
errors in VS2005

I'm wondering if I need to reference to some library.

I'd appreciate any helpful suggestion

Even if it's just a suggestion of where to look or something that
might work.

It looks like you're linking VC2005 compiled code against the VC6
runtime libraries. Check your Tools|Options|VC++ Directories for
libraries and include files and make sure that the VC6 paths are NOT
present. Also check the additional include and addition library path
properties of your project to make sure that the VC6 paths are NOT
present.

-cd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top