473,395 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Compiling/Linking old C code in .NET

I am trying to port some C code from an old VMS system to Windows 2003.
Recently, I've been having some problems with unresolved externals:

ccm_com error LNK2001: unresolved external symbol ___security_cookie
ccm_com error LNK2001: unresolved external symbol @__security_check_cookie@4
ccm_com error LNK2001: unresolved external symbol __chkstk
ccm_com error LNK2001: unresolved external symbol __fltused
ccm_com error LNK2001: unresolved external symbol __ftol2

I've tried a variety of solutions (including turning off the "buffer
security check"), but haven't had any success. Any assistance would be
greatly appreciated!

Thank you,

Curt
Jul 21 '05 #1
2 2531
Sounds pretty typical. If you can figure out what these calls did, you can
create a proxy object that provides static methods that do something similar
(or nothing at all) and then you can link in the object to resolve the
links.

Sounds like the VMS system had some internal extensions to C that don't
exist on the MS platform.

--- Nick

"Curt86" <Cu****@discussions.microsoft.com> wrote in message
news:0E**********************************@microsof t.com...
I am trying to port some C code from an old VMS system to Windows 2003.
Recently, I've been having some problems with unresolved externals:

ccm_com error LNK2001: unresolved external symbol ___security_cookie
ccm_com error LNK2001: unresolved external symbol @__security_check_cookie@4 ccm_com error LNK2001: unresolved external symbol __chkstk
ccm_com error LNK2001: unresolved external symbol __fltused
ccm_com error LNK2001: unresolved external symbol __ftol2

I've tried a variety of solutions (including turning off the "buffer
security check"), but haven't had any success. Any assistance would be
greatly appreciated!

Thank you,

Curt

Jul 21 '05 #2
Well, I've been able to reduce the bulk of my compilation errors by including
msvcrt.lib as one of the additional dependencies in the linker. I'm now down
to a total of 7 errors, with four of those errors on functions like stat,
fileno, and fstat.

I'm curious though - these functions are used (and compile properly) in
several libraries. When I link these libraries in with other code (to create
an executable), however, the compiler then chokes on the stat, fileno, and
fstat calls. What's the deal?

"Nick Malik" wrote:
Sounds pretty typical. If you can figure out what these calls did, you can
create a proxy object that provides static methods that do something similar
(or nothing at all) and then you can link in the object to resolve the
links.

Sounds like the VMS system had some internal extensions to C that don't
exist on the MS platform.

--- Nick

"Curt86" <Cu****@discussions.microsoft.com> wrote in message
news:0E**********************************@microsof t.com...
I am trying to port some C code from an old VMS system to Windows 2003.
Recently, I've been having some problems with unresolved externals:

ccm_com error LNK2001: unresolved external symbol ___security_cookie
ccm_com error LNK2001: unresolved external symbol

@__security_check_cookie@4
ccm_com error LNK2001: unresolved external symbol __chkstk
ccm_com error LNK2001: unresolved external symbol __fltused
ccm_com error LNK2001: unresolved external symbol __ftol2

I've tried a variety of solutions (including turning off the "buffer
security check"), but haven't had any success. Any assistance would be
greatly appreciated!

Thank you,

Curt


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joonas Paalasmaa | last post by:
Hi, When compiling Sketch's streamfilter C extension the errors below are raised during linking. What could cause the errors? (Python 2.3, MinGw 1.1 with GCC 2.95.3-6, Windows 98) Here are...
5
by: Mike S. | last post by:
Hello, Has anyone had success compiling the informixdb-1.3 module under python 2.2? It seems the absense of makefile.pre.in in python 2.2 causes the break under py2.2. Is there an easy way...
7
by: Steven T. Hatton | last post by:
Is there anything that gives a good description of how source code is converted into a translation unit, then object code, and then linked. I'm particularly interested in understanding why putting...
4
by: Aaron Queenan | last post by:
When I build a C++ library to .NET using the managed C++ compiler, I get the following error message: Linking... LINK : error LNK2020: unresolved token (0A000005) _CrtDbgReport LINK : error...
3
by: c++_Passioner | last post by:
I only know Compiling usede to convert the .cpp file into .obj file. but have really no idea about linking. please let me know about this. Thanking you, Pritam
1
by: fsmountain | last post by:
Hi guys, I am trying to compile VTK5.0 with Qt GUI Support in Windows 2000 that has Qt Open-Sourced 4.1.2 and CMake 2.4.2 installed. After QVTK is enabled in CMake, configuring it will prompt...
5
by: skumar434 | last post by:
Hi everybody, I am faceing problem with strings. The code is given bellow .In this program i am tring to copy data from a file into structure . I am able to copy the data ,but the dat is...
2
by: stevenruiz | last post by:
Hi Everyone, The Strings.h has the function Get_Line which is defined and the error is shown below: Strings.h: void get_line( istream & );
3
by: geoplab | last post by:
I have this error message when compiling mx_init.c by linking libxml library as follow: gcc `xml2-config --cflags` -c mx_init.c `xml2-config --libs` -g -Wall gcc: -lxml2: linker input file...
10
by: Tomás Ó hÉilidhe | last post by:
I'd post this on a gcc newsgroup but I'd be more productive talking to the wall. Anyway, let's say someone throws some source code at you for a particular program and says, "Just compile it, it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.