473,804 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_data base 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 6099
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_data base 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
5127
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 normal functions in header files results in multiple definition errors even when include guards are used. -- STH Hatton's Law: "There is only One inviolable Law" KDevelop: http://www.kdevelop.org SuSE: http://www.suse.com Mozilla:...
2
7258
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). Posts concerning this topic are common, but none of the posted solutions I've tried work correctly with the above software. The linker can't seem to find the dll (reports 'unresolved external symbol __imp__IMSL_FUN@8'; IMSL_FUN.dll is the f77...
7
6553
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 LIBCMT(D).DLL. (My requirement is that we can't link with MSVCRT(D).LIB.) Below are steps I've followed, and the resulting problems 1. Using the New Project wizard, generate a Visual C++ .NET Class Library project (call it "Doomed") and a VC++...
1
9486
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 MSVCRTD.lib LIBCD.lib" but I am still getting conflict linking problems. But if I do specify /NODEFAULTLIB, I'll get anther bunch of linking errors. Anybody knows why? thanks,
10
2694
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 .NET2003. also, when I do not try to link the fortran library (just to see if that was the cause), it builds the exe without any problems. i don't even know how to begin addressing this problem...any help would be
0
2559
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 using the /MT compilation option. Our debug solution's /MTd flag works fine and using /MD also seems to work ok. For some reason I can't fathom, when I use /MT, linking the static excutable completely dies (problems resolving symbols in the STL,...
0
5780
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 future upgrade, and this module won't work (other Perl scripts in IIS6 are OK, just not this Interbase module, which is critical). The error comes from Dynaloader.pm file, which I've read through, and it says that it's a generic message about external...
0
3986
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
1860
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 object-oriented software application, and I want it to call the library. When I add the following 3 lines (copied directly from the library tutorial), #include <linbox/field/modular.h> using namespace LinBox; typedef Modular<shortField;
0
9594
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,...
0
10343
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 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...
0
10089
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9171
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6862
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();...
0
5530
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...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
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
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.