By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,512 Members | 3,520 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,512 IT Pros & Developers. It's quick & easy.

V++6 compiles OK but VS2005 gives errors

P: n/a
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
Dec 21 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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
Dec 22 '06 #2

P: n/a
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.v sprops

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.m anifest"
/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]" <cp*****************************@mvps.org.nospam >
wrote in message news:Ob**************@TK2MSFTNGP06.phx.gbl...
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


Dec 22 '06 #3

P: n/a

" Franky" <fr***********@a-znet.comwrote in message
news:76***************************@ISPNET.US...
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.v sprops

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.m anifest"
/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]" <cp*****************************@mvps.org.nospam >
wrote in message news:Ob**************@TK2MSFTNGP06.phx.gbl...
>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



Dec 26 '06 #4

P: n/a
Thanks, I've got it resolved now.
"Ben Voigt" <rb*@nospam.nospamwrote in message
news:Ol**************@TK2MSFTNGP04.phx.gbl...
>
" Franky" <fr***********@a-znet.comwrote in message
news:76***************************@ISPNET.US...
>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.m anifest"
/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]"
<cp*****************************@mvps.org.nospamw rote in message
news:Ob**************@TK2MSFTNGP06.phx.gbl...
>>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




Dec 26 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.