473,503 Members | 8,959 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

compiling/linking issues.

Hi All,

I embedded some Python/C API functions in my C dll. I use the Borland
freecommandline tools.

I converted the python23.lib with coff2omf but still get unresolved
externals.
If I use coff2omf like this ... (default)
coff2omf python23.lib python23omf.lib
I get the following Errors

Error: Unresolved external 'Py_Initialize'
Error: Unresolved external 'PyString_FromString'
Error: Unresolved external 'PyImport_Import'
Error: Unresolved external 'PyModule_GetDict'
Error: Unresolved external 'PyDict_GetItemString'
Error: Unresolved external 'PyCallable_Check'
Error: Unresolved external 'PyString_AsString'
Error: Unresolved external 'Py_Finalize'

When I use coff2omf like this ... (Don't perform MS cdecl aliasing)
coff2omf -lib:ca python23.lib python23omf.lib
I only get one unresolved external '_PyObject_CallFunction'
The Dll only has one EXPORT function and is compiled with
"bcc32 -c -ps -tWD" options (-ps = generate standerd call)
Can someone please advise me on my linking/compiling options please?

Thanks in advance.
Tertius
ps. When I embed the same code in a main.exe using default coff2omf it
all works just fine.


Jul 18 '05 #1
0 1252

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

Similar topics

0
4916
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
2677
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
5072
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
11328
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
1977
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
2086
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...
3
2268
by: B. | last post by:
We converted VC++ 6.0 to VS 2005 and tried to compile with /clr, however, we got few linking errors: MSVCMRTD.lib(mstartup.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent...
2
1949
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
3821
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...
0
7207
marktang
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,...
0
7294
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,...
0
7361
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...
1
7015
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
5602
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,...
1
5026
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
3183
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
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
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 ...

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.