473,388 Members | 1,346 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,388 software developers and data experts.

linking error (using interbase 6.0 API library)

I'm compiling a C program that is using Interbase 6.0 APIS. Getting
the following errors at the time of linking.
Linking test.exe:
Linker Warning: No module definition file specified: using defaults
Linker Error: Undefined symbol isc_detach_database in module TEST.C
.....
.....

If I set the option not to generate the underscore (function prefixed
with "_") I get the following errors. Interbase 6.0 APIs resolved
here, but the problem is with C std lib.
Linking test1.exe:
Linker Warning: No module definition file specified: using defaults
Linker Error: Undefined symbol strlen in module TEST.C
Linker Error: Undefined symbol strcpy in module TEST.C
Linker Error: Undefined symbol _main in library file
C:\TCWIN45\LIB\cwl.lib in module winmain
I'm using Borland 4.5 C++ compiler.
Should I use some other compiler or write wrappers to translate the
functions one without underscore prefix to functions with underscore ?

What is the best option?
Nov 13 '05 #1
1 6073
Venky wrote:

I'm compiling a C program that is using Interbase 6.0 APIS. Getting
the following errors at the time of linking.
Linking test.exe:
Linker Warning: No module definition file specified: using defaults
Linker Error: Undefined symbol isc_detach_database in module TEST.C
....
....

If I set the option not to generate the underscore (function prefixed
with "_") I get the following errors. Interbase 6.0 APIs resolved
here, but the problem is with C std lib.
Linking test1.exe:
Linker Warning: No module definition file specified: using defaults
Linker Error: Undefined symbol strlen in module TEST.C
Linker Error: Undefined symbol strcpy in module TEST.C
Linker Error: Undefined symbol _main in library file
C:\TCWIN45\LIB\cwl.lib in module winmain

I'm using Borland 4.5 C++ compiler.
Should I use some other compiler or write wrappers to translate the
functions one without underscore prefix to functions with underscore ?

What is the best option?


Perhaps you need to supply a "module definition file,"
whatever that might be ...

It appears that you're not running your compiler and
linker with the proper incantations. Unfortunately, here in
comp.lang.c we only know about the C language and library,
not about the details of how to build C programs on all the
different C implementations in the world. Look for a news
group (or other source of information) devoted to the Borland
compilers and/or to the Intergraph libraries, because it doesn't
seem that your immediate problem has to do with C as such.

Good luck!

--
Er*********@sun.com
Nov 13 '05 #2

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

Similar topics

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...
2
by: | last post by:
Help! I'm new to c++, and am breaking my teeth on MS Visual C++ (bundled within Visual Studio .NET 2003). Am trying to link simple c++ code to fortran dlls created in Compaq Visual Fortran (v6.1)....
7
by: wmkew | last post by:
Hello everyone I'm encountering a R6002 Runtime error and several bugs when trying to generate a simple Managed C++ application with .NET 2003. The main problem seems to arise from linking with...
1
by: Kay | last post by:
I already specified to ignore specific library: MSVCPRT.lib MSVCRT.lib LIBC.lib MSVCRTD.lib LIBCD.lib command line is like: /INCREMENTAL /NOLOGO /DLL /NODEFAULTLIB:"MSVCPRT.lib MSVCRT.lib LIBC.lib...
10
by: Julian | last post by:
I get the following error when i try to link a fortran library to a c++ code in .NET 2005. LINK : fatal error LNK1104: cannot open file 'libc.lib' the code was working fine when built using...
0
by: Philip Lowman | last post by:
I am in the process of trying to migrate a couple of build solutions to Visual Studio Express 2005 from VS 2003 Professional and I am running into a weird C/C++ runtime library linking issue when...
0
by: OverTheTop | last post by:
All the usual Newbie stuff applies... I have a Windows2000 Server with ActivePerl and a module (DBD-Interbase) that worked fine. Trying to duplicate the environment on Windows2003 Server for...
0
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
7
by: bajichuan | last post by:
Hello! I have the world's strangest linking error, and I'm hoping that someone can help me sort it out. I recently installed and compiled a library called LinBox without a problem. I have an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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:
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...

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.