Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31880
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <renjoki@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '#include': 0.07; 'args)': 0.07; 'null,': 0.07; 'python': 0.09; '-1,': 0.09; 'bool': 0.09; 'referenced': 0.09; 'subject:module': 0.09; 'subject:error': 0.11; 'extension': 0.13; 'static': 0.13; 'library': 0.15; "skip:' 30": 0.15; '3.3.': 0.16; 'dword': 0.16; 'null}': 0.16; 'pymethoddef': 0.16; 'pyobject*': 0.16; 'skip:/ 70': 0.16; 'unresolved': 0.16; '{null,': 0.16; 'sender:addr:gmail.com': 0.18; 'module': 0.19; 'skip:p 30': 0.20; 'trying': 0.21; 'builder': 0.22; 'converted': 0.22; 'file:': 0.22; 'null;': 0.22; 'struct': 0.22; 'skip:_ 20': 0.22; 'external': 0.24; 'wonder': 0.27; 'c++': 0.27; 'message- id:@mail.gmail.com': 0.27; 'source': 0.29; 'received:209.85.215.46': 0.30; 'error': 0.30; "skip:' 20": 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'skip:p 20': 0.36; 'subject: (': 0.36; 'why': 0.37; 'received:209': 0.37; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'from:addr:yandex.ru': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=cZlnFmuKGQiMMBkKktrK974wbc2dhM5lGmccU3OtxgA=; b=nRfjX+E7NbHsVIW+Spz8PfKTdh1qoRkdLzvqVORZZhyc3r/+PL7Pc24EG7CqZlDaOI +ofWNwnb41DEmJzDwSGFp8kOADjaMs9LN3ctZhLQe0FvCVKWfEssw/QGJTTfI1iUgWjE UjSjqXkic9XXxbLgWZIkwxM59zTOqEi+SiY+8nc7wVKCrLfg4g8shUdKAvlSymQ8Fh0T eL7SHaV8/9KmTptTFoLdiJKHN23bAy6dWQ8Qm61Lts8yVX/pYTP53XAqr1D0gRbSeB1Z ENbwrTEiQ3BfRtX8Mo7toYEXHPmWFOWQcDu4kuwmwMcnX9E3EAbILpY+9PoMA2P7HbX0 dYHQ== |
| MIME-Version | 1.0 |
| Sender | renjoki@gmail.com |
| Date | Mon, 22 Oct 2012 14:55:15 +0400 |
| X-Google-Sender-Auth | yoK61Tw-Uwv4Ta2y_3vQePF0Ryg |
| Subject | Compiling extension module (linker error) |
| From | Paul Volkov <capt-obvious@yandex.ru> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2621.1350903324.27098.python-list@python.org> (permalink) |
| Lines | 46 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1350903324 news.xs4all.nl 6938 [2001:888:2000:d::a6]:58724 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:31880 |
Show key headers only | View raw
I am trying to compile an extension module with C++ Builder 6 for Python 3.3.
I converted python33.lib using coff2omf.exe and added this library
into my project.
I wonder why I get this error message while building:
[Linker Error] Unresolved external '_PyModule_Create2TraceRefs'
referenced from 'D:\WORK\FROMAGE\OUT\ROSE_UNIT.OBJ'
My source file:
//---------------------------------------------------------------------------
#include <Python.h>
#include <windows.h>
#pragma argsused
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fwdreason, LPVOID lpvReserved)
{
return 1;
}
static PyObject* __declspec(dllexport) testik(PyObject* self, PyObject* args)
{
return NULL;
}
static PyMethodDef FundRoseMethods[] = {
{"testik", testik, METH_VARARGS, "perform a test"},
{NULL, NULL, 0, NULL}
};
static struct PyModuleDef FundRoseModule = {
PyModuleDef_HEAD_INIT,
"FundRose",
NULL,
-1,
FundRoseMethods
};
PyMODINIT_FUNC
PyInit_FundRose(void)
{
return PyModule_Create(&FundRoseModule);
}
//---------------------------------------------------------------------------
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Compiling extension module (linker error) Paul Volkov <capt-obvious@yandex.ru> - 2012-10-22 14:55 +0400
csiph-web