Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / February 2005

Tip: Looking for answers? Try searching our database.

error LNK2001: unresolved external symbol __RTC_CheckEsp

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raghavendra.A.N - 20 Mar 2004 11:24 GMT
Hi,

I got the above error while compiling with Visual Studio .NET 7.0.
I was building a DLL (DEBUG version) for Symbian OS emulator for
windows. And it also gives error as

->error LNK2001: unresolved external symbol __RTC_CheckEsp
->error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
->error LNK2001: unresolved external symbol __RTC_Shutdown
->error LNK2001: unresolved external symbol __RTC_InitBase

And sometimes it gives error as
unresolved external symbol __security_cookie.

When I compiled this code with VC6.0 it compiled without  any warnings
or error.

Herewith I am sending the .MMP file(which is project seeting file). Do
I have to include any other libraries.

SYSTEMINCLUDE     \epoc32\include
SYSTEMINCLUDE     \epoc32\include\libc

LIBRARY           euser.lib
LIBRARY           fbscli.lib
LIBRARY           estlib.lib
LIBRARY           ws32.lib

#if !defined(WINS)
   LIBRARY           libgcc.a
   STATICLIBRARY     egcc.lib
   STATICLIBRARY           edllstub.lib
#endif

#if defined(WINS)
   STATICLIBRARY     CHKSTK.OBJ
#endif

Help me out.
Thanks in Advance.

Regards,
Raghavendra.A.N
Tomas Restrepo \(MVP\) - 20 Mar 2004 17:58 GMT
>  I got the above error while compiling with Visual Studio .NET 7.0.
>  I was building a DLL (DEBUG version) for Symbian OS emulator for
[quoted text clipped - 10 lines]
> When I compiled this code with VC6.0 it compiled without  any warnings
> or error.

Sounds like you're running into conflicts with the use of /RTC checks. Try
disabling the use of runtime checks by the compiler by disabling all
relevant compiler switches (/RTC1, /RTCc, /RTCs, /RTCu and friends) in your
project.

Signature

Tomas Restrepo
tomasr@mvps.org

EK - 21 Mar 2004 09:52 GMT
I also have this error.
I tried your solution but
error LNK2001: unresolved external symbol __security_cookie.
still present.
EK

> >  I got the above error while compiling with Visual Studio .NET 7.0.
> >  I was building a DLL (DEBUG version) for Symbian OS emulator for
[quoted text clipped - 15 lines]
> relevant compiler switches (/RTC1, /RTCc, /RTCs, /RTCu and friends) in your
> project.
EK - 21 Mar 2004 11:23 GMT
Any suggestion please?

> I also have this error.
> I tried your solution but
[quoted text clipped - 22 lines]
> your
> > project.
Tomas Restrepo \(MVP\) - 21 Mar 2004 14:10 GMT
Try disabling /GS as well.

Signature

Tomas Restrepo
tomasr@mvps.org

> I also have this error.
> I tried your solution but
[quoted text clipped - 22 lines]
> your
> > project.
EK - 22 Mar 2004 07:29 GMT
No way
I still have the error

> Try disabling /GS as well.
>
[quoted text clipped - 25 lines]
> > your
> > > project.
anliwang - 04 Nov 2004 07:13 GMT
Remove the "/GZ" option from the project option.
Be careful! It was case sensitive!
If you remove the "/Gz" option from the project option, it don't affec
anything

-
anliwan
Ronald Laeremans [MSFT] - 22 Mar 2004 19:29 GMT
You are linking with the wrong version of the C runtime library. Make sure
you are not picking up either the system CRT version or a 6.0 version of the
CRT. All of the missing externals are ones that are in the 7.0 CRT and not
in the 6.0 or system CRT (and that are needed by the code the 7.0 compiler
generates).

Ronald Laeremans
Visual C++ team

> Hi,
>
[quoted text clipped - 39 lines]
> Regards,
> Raghavendra.A.N
Kirill Burtsev - 23 Feb 2005 18:43 GMT
> [B]You are linking with the wrong version of the C runtime library.
> Make sure
[quoted text clipped - 9 lines]
> Visual C++ team
>  

Well, how I would make sure, that the right version of CRT is linked?
I've got VC++ 2005 Express Beta and I have LIB path
(Tools->Options->VC++ Directories) set up like that:

$(VCInstallDir)lib
$(VSInstallDir)lib
$(VCInstallDir)PlatformSDK\lib\prerelease
$(VCInstallDir)PlatformSDK\lib
$(FrameworkSDKDir)lib
$(VSInstallDir)
C:\Program Files\Microsoft SDK\Lib

and I'm getting the same errors. I went to "C:\Program Files\Microsoft
Visual Studio 8\VC\lib\" ( $(VCInstallDir)lib should point to this
folder, as I thought) and I was able to manually find these symbols in
some of .lib files (like libcmt.lib, RunTmChk.lib). I also try to add
this actual folder in VC++ Derictories lib thinking that may be
$(VCInstallDir) variable is wrong. Didn't help.

--
Kirill Burtsev


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.