link error --enable-auto-imports for details

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

link error --enable-auto-imports for details

jayshankar nair
Hi,

I am getting the following error. Is some sort of definition missing. Do i need to import functions.

Thanks,
Jay


C:\MinGW\bin\g++ -c -g -Wall -D_REENTRANT -fPIC -fno-inlin
e src\spNSServerHandler.cpp -o .\obj\spNSServerHandler.o -I.\inc -I"C:\MinGW\inc
C:\MinGW\bin\g++ -shared -o .\lib\libspNSServerHandler.dll .\obj\spNSServerHandl
er.o -L..\..\spCommon\lib -L"C:\pthreads.2" -lspCommon -L"C:\MinGW\lib" -lws2_32
  -L"C:\xmlrpc-c-1.06.31\src\cpp" -lxmlrpc_cpp -lxmlrpc++ -lpacketsocket -lxmlrp
c_client++ -lpthreadGC2
.\obj\spNSServerHandler.o(.text+0xb2b): In function `Z17sendRespToEServerP18stUI
ControlAndData':
C:/Documents and Settings/zaid/client/simplus/spNetServices_client/spNSServerHan
dler/src/spNSServerHandler.cpp:176: variable 'vtable for xmlrpc_c::rpcPtr' can't
 be auto-imported. Please read the documentation for ld's --enable-auto-import f
or details.
.\obj\spNSServerHandler.o(.text+0xc74):C:/Documents and Settings/zaid/client/sim
plus/spNetServices_client/spNSServerHandler/src/spNSServerHandler.cpp:179: varia
ble 'vtable for xmlrpc_c::rpcPtr' can't be auto-imported. Please read the docume
ntation for ld's --enable-auto-import for details.
.\obj\spNSServerHandler.o(.text+0xf2d):C:/Documents and Settings/zaid/client/sim
plus/spNetServices_client/spNSServerHandler/src/spNSServerHandler.cpp:189: varia
ble 'vtable for xmlrpc_c::rpcPtr' can't be auto-imported. Please read the docume
ntation for ld's --enable-auto-import for details.
.\obj\spNSServerHandler.o(.text+0xf59):C:/Documents and Settings/zaid/client/sim
plus/spNetServices_client/spNSServerHandler/src/spNSServerHandler.cpp:190: varia
ble 'vtable for xmlrpc_c::rpcPtr' can't be auto-imported. Please read the docume
ntation for ld's --enable-auto-import for details.
.\obj\spNSServerHandler.o(.text+0x1035):C:/Documents and Settings/zaid/client/si
mplus/spNetServices_client/spNSServerHandler/src/spNSServerHandler.cpp:192: vari
able 'vtable for xmlrpc_c::rpcPtr' can't be auto-imported. Please read the docum
entation for ld's --enable-auto-import for details.
.\obj\spNSServerHandler.o(.text$_ZN8xmlrpc_c6rpcPtrD1Ev[xmlrpc_c::rpcPtr::~rpcPt
r()]+0xb): In function `ZNSaIN8xmlrpc_c5valueEED2Ev':
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/stl_con
struct.h: variable 'vtable for xmlrpc_c::rpcPtr' can't be auto-imported. Please
read the documentation for ld's --enable-auto-import for details.
.\obj\spNSServerHandler.o(.text$_ZN8xmlrpc_c10client_xmlD1Ev[xmlrpc_c::client_xm
l::~client_xml()]+0x3a):C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../includ
e/c++/3.4.2/bits/stl_construct.h: variable 'vtable for xmlrpc_c::client_xml' can
't be auto-imported. Please read the documentation for ld's --enable-auto-import.







     

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

_______________________________________________
This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.
Reply | Threaded
Open this post in threaded view
|

Re: link error --enable-auto-imports for details

Kai Tietz
Hi Jay,

jayshankar nair <[hidden email]> wrote on 28.11.2008 14:20:32:

> Hi,
>
> I am getting the following error. Is some sort of definition
> missing. Do i need to import functions.
>
> Thanks,
> Jay

You try to autoimport vtables, which are in fact variables. So you should
use your import library, or specify for ld the option --enable-auto-import
(as g++ command line option -Wl,--enable-auto-import).
The warning should be interpreted as written:
"can't be auto-imported. Please read the documentation for ld's
--enable-auto-import".

Hope this helps,
Kai

|  (\_/)  This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

_______________________________________________
This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.