hello.
I've got problem with linking asm and c procedures.
I've got main.c where i've got my external definitions:
extern int buffer(int,int, int); // coded in asm
extern int hash(int,int); //coded in asm
I've got simple make file for my project:
BC=c:\bc5
BCBIN=c:\bc5\bi n
proj.exe: main.obj buffer.obj
$(BCBIN)\tlink3 2 -L$(BC)\lib c0x32.obj $**, proj.exe, ,import32.lib +
cw32.lib
main.obj: main.c
$(BCBIN)\bcc32 -c main.c
buffer.obj: buffer.asm
$(BCBIN)\tasm /ml buffer.asm
Both buffer.obj and main.obj are created but when i try link them using
tlink32 i get:
MAKE Version 5.0 Copyright (c) 1987, 1997 Borland International
c:\bc5\bin\tlin k32 -m -Lc:\bc5\lib c0x32.obj main.obj buffer.obj ,
proj.exe, ,import32.lib + cw32.lib
Turbo Link Version 2.0.68.0 Copyright (c) 1993,1997 Borland International
Error: Unresolved external '__ExceptInit' referenced from module c0nt.ASM
Error: Unresolved external '__startup' referenced from module c0nt.ASM
Error: Unresolved external '__GetExceptDLL infoInternal' referenced from
module c0nt.ASM
Error: Unresolved external '_printf' referenced from module main.c
Error: Unresolved external '_getch' referenced from module main.c
Error: Unresolved external '_exit' referenced from module main.c
Error: Unresolved external '__matherr' referenced from module c0nt.ASM
Error: Unresolved external '__matherrl' referenced from module c0nt.ASM
Error: Unresolved external '__fmode' referenced from module c0nt.ASM
Error: Unresolved external '__setargv__' referenced from module c0nt.ASM
Error: Unresolved external '__setenvp__' referenced from module c0nt.ASM
** error 2 ** deleting proj.exe
the problem is only when i try to link both OBJ files.
what am i doing wrong?
maybe i should include more libs? i use only: c0x32.obj, import32.lib and
cw32.lib
thanks in advance
best regards R 1 3306
R <ruthless@@@poc zta.onet.pl> scribbled the following: hello.
I've got problem with linking asm and c procedures.
I've got main.c where i've got my external definitions:
extern int buffer(int,int, int); // coded in asm extern int hash(int,int); //coded in asm
I've got simple make file for my project:
BC=c:\bc5 BCBIN=c:\bc5\bi n proj.exe: main.obj buffer.obj $(BCBIN)\tlink3 2 -L$(BC)\lib c0x32.obj $**, proj.exe, ,import32.lib + cw32.lib main.obj: main.c $(BCBIN)\bcc32 -c main.c buffer.obj: buffer.asm $(BCBIN)\tasm /ml buffer.asm
Both buffer.obj and main.obj are created but when i try link them using tlink32 i get:
MAKE Version 5.0 Copyright (c) 1987, 1997 Borland International c:\bc5\bin\tlin k32 -m -Lc:\bc5\lib c0x32.obj main.obj buffer.obj , proj.exe, ,import32.lib + cw32.lib Turbo Link Version 2.0.68.0 Copyright (c) 1993,1997 Borland International Error: Unresolved external '__ExceptInit' referenced from module c0nt.ASM Error: Unresolved external '__startup' referenced from module c0nt.ASM Error: Unresolved external '__GetExceptDLL infoInternal' referenced from module c0nt.ASM Error: Unresolved external '_printf' referenced from module main.c Error: Unresolved external '_getch' referenced from module main.c Error: Unresolved external '_exit' referenced from module main.c Error: Unresolved external '__matherr' referenced from module c0nt.ASM Error: Unresolved external '__matherrl' referenced from module c0nt.ASM Error: Unresolved external '__fmode' referenced from module c0nt.ASM Error: Unresolved external '__setargv__' referenced from module c0nt.ASM Error: Unresolved external '__setenvp__' referenced from module c0nt.ASM ** error 2 ** deleting proj.exe
the problem is only when i try to link both OBJ files.
what am i doing wrong?
maybe i should include more libs? i use only: c0x32.obj, import32.lib and cw32.lib
Your question is about your compiler, not about the C language. Please
ask in a Borland newsgroup.
--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"This isn't right. This isn't even wrong."
- Wolfgang Pauli This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: m.ramana |
last post by:
Two SQL Servers
1) "Test"
Payroll DB
Transaction Table
pr_SubmitTransaction in Payroll DB
********************************************
2) "Production"
Payroll DB
Transaction Table
Pr_SubmitTransaction in Payroll DB
|
by: Steven T. Hatton |
last post by:
I just read this in the description of how C++ is supposed to be
implemented:
"All external object and function references are resolved. Library
components are linked to satisfy external references to functions and
objects not defined in the current translation. All such translator output
is collected into a program image which contains information needed for
execution in its execution environment."
What I'm wondering is what exactly...
|
by: Jeff |
last post by:
I have question about differences in fenced sql procedures and fenced
stored procedures. Do fenced sql procedures take up an extra memory
segment when executed? Reason I ask is we have several fenced sql
procedures that have been excuting o.k. We implemented a fenced stored
procedure on a C program and when trying to execute it, we get the
"DIA3833C The system memory limit was reached."
|
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 that is used
to connect to other databases and generate reports. below is sample
code of how the database does the linking i hope i give you enough
info to help me but if not let me know and i will give more.
Sub txtShipDataFileSub()
Dim...
|
by: Matthew Wells |
last post by:
Good morning...
I have an Access front end that uses SQL Server linked tables. SQL Server
uses Windows authentication. I have one Windows group that all Access users
are a member of. I added that group to SQL Server logins and gave it
public, datareader, and datawriter rights to the one database that's used.
My front end is locked down, but I want to stop users from creating a new
..mdb and linking SQL Server tables through DSNs or...
| |
by: Tim Marshall |
last post by:
I was following the thread "Re: Access Treeview - Is it Safe Yet?" with
interest and on reading the post describing Lauren Quantrell's
SmartTree, I've run into something I don't understand: Stored
Procedures. I thought stored pricedures were an Oracle/MS SQL Server
thing and don't know how they work with Access Jet. I've looked at some
of the help on stored procedures in A2003, but really don't understand
what's going on.
Can someone...
|
by: Quinnie |
last post by:
Hi,
I have a homework assignment that I'm so confused and really need help
with. Here's the description, any help would be appreciated. Thanks!
Assume we have a statically-scoped language with nested procedures.
That is, a procedure
(or function) can contain local procedures (and functions). Procedures
can be nested arbitrarily
deep. The scoping rules for procedure names (i.e., the ability to call
|
by: R |
last post by:
hello.
I've got problem with linking asm and c procedures.
I've got main.c where i've got my external definitions:
extern int buffer(int,int,int); // coded in asm
extern int hash(int,int); //coded in asm
I've got simple make file for my project:
|
by: heyvinay |
last post by:
I have transaction table where the rows entered into the transaction
can come a result of changes that take place if four different tables.
So the situation is as follows:
Transaction Table
-TranId
-Calc Amount
Table 1 (the amount is inserted into the transaction table)
- Tb1Id
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |