Re: unresolved external symbol in VS8 from VS6
- From: "JIGE" <nacho@xxxxxxxx>
- Date: Fri, 9 Mar 2007 16:26:44 +0100
I have yet solved it!!
Here is the solution to this problem:
http://www.pcreview.co.uk/forums/thread-1428747.php
The problem was here:
"When getting the errors:
error LNK2001: unresolved external symbol ___security_cookie
error LNK2001: unresolved external symbol @__security_check_cookie@4
in Visual Studio .NET, it is likely that another library is being pulled
into the project. Add the /verbose:lib switch to the Linker command line
and do a rebuild all. This will output all of the libraries that are being
searched. If you see any libs that live in folders that are not part of
the Microsoft Visual Studio .NET install folder and you are not sure why
they are there, then that is probably the cause of this problem.
Go to Tools | Options | Projects | VC++ Directories and in the Include
Files and Library Files directories check for additional paths that should
not be there."
I used a path in the library files option and then it took a library that
was wrong instead of the right VS8 library. I have put that path at the end
of the library file options and now everything goes fine!! :-)
"JIGE" <nacho@xxxxxxxx> escribió en el mensaje
news:esrssd$aea$1@xxxxxxxxxxxxxxxxxxx
Hi again,
I have just created a new MFC project with Visual Studio 8 and it gives
the same errors... Debug version works while release version doesn´t link.
All the code is on default, so I haven´t wrriten anything this time...
What do I have to change to solve this problem? :-(
It gives me these errors on the default MFC project for release
version:
Linking...
pruebaMFC.obj : error LNK2001: unresolved external symbol
@__security_check_cookie@4
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
@__security_check_cookie@4
atls.lib(atltrace.obj) : error LNK2001: unresolved external symbol
@__security_check_cookie@4
stdafx.obj : error LNK2001: unresolved external symbol
__imp___resetstkoflw
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
__imp___resetstkoflw
stdafx.obj : error LNK2001: unresolved external symbol __imp___recalloc
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
__imp___recalloc
stdafx.obj : error LNK2001: unresolved external symbol __imp__wcscpy_s
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
__imp__wcscpy_s
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
__SEH_epilog4_GS
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
__except_handler4
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
__SEH_prolog4_GS
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
__alloca_probe_16
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
___CxxFrameHandler3
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
__EH_epilog3_GS
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
__EH_prolog3_GS
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
___security_cookie
atls.lib(atltrace.obj) : error LNK2001: unresolved external symbol
___security_cookie
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
__EH_prolog3
D
Thanks again!!
JIGE
"JIGE" <nacho@xxxxxxxx> escribió en el mensaje
news:esrrgc$ac5$1@xxxxxxxxxxxxxxxxxxx
Hi,
I have just converted an application from Visual Studio 6 to Visual
Studio 8 and it works fine under debug version, but it doesn´t work under
release.
It compiles without any problem, but it gives me a lot of linked
errors, like these:
CImage.obj : error LNK2001: unresolved external symbol __alloca_probe_16
mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol
___CxxFrameHandler3
mfcs80.lib(stdafx.obj) : error LNK2019: unresolved external symbol
__SEH_epilog4_GS referenced in function "bool __cdecl
ATL::_ATL_SAFE_ALLOCA_IMPL::_AtlVerifyStackAvailable(unsigned long)"
(?_AtlVerifyStackAvailable@_ATL_SAFE_ALLOCA_IMPL@ATL@@YA_NK@Z)
I have revised my app property pages, and I have changed all the
different properties and now the only difference between debug and
release versions is Configuration properties\C/C++\Code
Generation\Runtime Library, where it is Multi-threaded Debug DLL (/MDd)
for debug version and Multi-threaded DLL (/MD) for release version.
Release version only works if I put Multi-threaded Debug DLL (/MDd)
for that option, but obviously, that isn´t a good solution because
really I would work with a debug version instead a release version.
Do you know how to solve this problem?
Thanks in advance,
JIGE
.
- References:
- unresolved external symbol in VS8 from VS6
- From: JIGE
- Re: unresolved external symbol in VS8 from VS6
- From: JIGE
- unresolved external symbol in VS8 from VS6
- Prev by Date: Looking for example: custmized CFileDialog with tooltip support
- Next by Date: Re: How to subscript a CString? (CSimpleStringT::operator[])
- Previous by thread: Re: unresolved external symbol in VS8 from VS6
- Next by thread: Re: unresolved external symbol in VS8 from VS6
- Index(es):
Relevant Pages
|