473,511 Members | 16,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linking problem

noe
Hello,

I have linked a '.c' file and I have obtained next fail:

C:\prueba2\sfilter>build -cZ
BUILD: Object root set to: ==> objchk
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: /i switch ignored
BUILD: Compile and Link for i386
BUILD: Examining c:\prueba2\sfilter directory for files to compile.
BUILD: Compiling c:\prueba2\sfilter directory
Compiling - sfilter.rc for i386
Compiling - sfilter.c for i386
BUILD: Linking c:\prueba2\sfilter directory
Linking Executable - objchk\i386\sfilter.sys for i386
sfilter.obj() : error LNK2019: unresolved external symbol __imp__malloc
referenc
ed in function _SfFastIoRead@32
objchk\i386\sfilter.sys() : error LNK1120: 1 unresolved externals
BUILD: Done

3 files compiled
1 executable built - 2 Errors

I think that the fail is because of 'malloc' function but I have included
'stdlib.h' file. Does someone know what the problem is?

Greetings from a sunny Madrid.

Nov 14 '05 #1
2 4143
"noe" <no*****@mixmail.com> writes:
I have linked a '.c' file and I have obtained next fail:


This is a Microsoft C specific error so you should consult a
Microsoft C newsgroup.
--
"Large amounts of money tend to quench any scruples I might be having."
-- Stephan Wilms
Nov 14 '05 #2
on 7/7/2004 11:47 PM noe Wrote:
Hello,

I have linked a '.c' file and I have obtained next fail:

C:\prueba2\sfilter>build -cZ
BUILD: Object root set to: ==> objchk
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: /i switch ignored
BUILD: Compile and Link for i386
BUILD: Examining c:\prueba2\sfilter directory for files to compile.
BUILD: Compiling c:\prueba2\sfilter directory
Compiling - sfilter.rc for i386
Compiling - sfilter.c for i386
BUILD: Linking c:\prueba2\sfilter directory
Linking Executable - objchk\i386\sfilter.sys for i386
sfilter.obj() : error LNK2019: unresolved external symbol __imp__malloc
referenc
ed in function _SfFastIoRead@32
objchk\i386\sfilter.sys() : error LNK1120: 1 unresolved externals
BUILD: Done

3 files compiled
1 executable built - 2 Errors

I think that the fail is because of 'malloc' function but I have included
'stdlib.h' file. Does someone know what the problem is?

Greetings from a sunny Madrid.



Please verify if the .lib/.obj file containing the symbol __imp__malloc
is getting linked with the executable. Include just includes the header
file in the source code for the function protypes etc.

--
Shanmu.
Nov 14 '05 #3

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

Similar topics

0
1702
by: Wolfgang | last post by:
I have a problem with linking my CPP Code under a irix6 machine (sgi, UNIX). In my CPP code I use some Functions which are written in Python. So its a kind of CPP wrapper for my Python functions In...
27
3069
by: Lee Phillips | last post by:
I believe it is universally accepted that decorating your website with images from someone else's, without permission, is rude and unethical, even if the images are in the public domain, because...
0
2216
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
18
3051
by: Mark P | last post by:
I have a bit of vb code that uses Tables.Append to programatically link tables from Oracle and DB2 datasources. The problem I am having on some client machines is that the link will take anywhere...
17
6966
by: Mitas Nikos | last post by:
I am trying to use the library conio2 and though I have managed with a few relatively simple examples when i try to compile a program which conio's function clrscr is not in main() i get an error...
1
2226
by: buchalino | last post by:
Hi Guys, Please can someone help me, I am having a linking problem . I am writing a socket program, the problem is just the linking . I am using VC++ In the process of the problem, I...
5
2033
by: news.microsoft.com | last post by:
We have recently upgraded from VS2002 to VS2005 and I'm having a problem with the linker always performing a full link even though nothing has changed. In searching the newsgroups I found that I...
13
6467
by: 7stud | last post by:
test1.py: -------------------- import shelve s = shelve.open("/Users/me/2testing/dir1/aaa.txt") s = "red" s.close() --------output:------ $ python test1.py
0
3959
by: xieml2007 | last post by:
Dear Madam or Sir, I encountered one problem which is quite similiar to the discussions launched at the web site: http://www.thescripts.com/forum/thread280324.html
4
8043
by: naveenmurthy | last post by:
Hello All, I have created a .mht file in following format. 1. The .mht file contains following htmls. a. MHTLinkingProblem.html b. Left.html c. Right.html d. Start.html
0
7356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7085
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
7512
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...
1
5069
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1577
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.