[Spread-users] [newbie] import problem with libtspread.lib on Win32
Jacob Green
jgreen at spreadconcepts.com
Wed Sep 28 08:02:02 EDT 2005
Some of the undefined references are against the Windows Socket Calls. Make
sure you are linking with Ws2_32.lib (the windows socket library).
Next, make sure everything (and everything you link with) is built with the
same runtime libraries. VC++ compile options are
Multi-threaded (/MT)
Multi-threaded Debug (/MTd)
Multi-threaded DLL (/MD)
Multi-threaded Debug DLL (/MDd)
Single Threaded (/ML)
Single Threaded Debug (/MLd)
Spread client libraries are built with the /MT for libtspread and /ML for
libspread.
Jacob
-----Original Message-----
From: spread-users-bounces at lists.spread.org
[mailto:spread-users-bounces at lists.spread.org] On Behalf Of Ivo
Sent: Tuesday, September 27, 2005 5:37 PM
To: spread-users at lists.spread.org
Subject: [Spread-users] [newbie] import problem with libtspread.lib on Win32
Hi folks,
I'm just starting to explore Spread and while the VC++ project libtsp
seemed to work fine, when I attempt to link to libtspread.lib I get a
large number of errors. Any suggestions? I'm sure I'm missing
something simple.
One possible issue is that I building the project that uses Spread
with mingw gcc/g++/ld... Is there some way to build libtspread with
mingw? Like make arch-mingw? Or should that matter for this?
Here are some of the errors, one of each type, in order:
..\Spread\lib\libtspread.lib(.\Alarm.obj):D:\Projects\Spread:(.text[_Alarmp]
+0x64):
variable '_iob' can't be auto-imported. Please read the documentation
for ld's --enable-auto-import for details.
..\Spread\lib\libtspread.lib(.\Alarm.obj):D:\Projects\Spread:(.text[_Alarm_s
et_output]+0x6):
variable '_iob' can't be auto-imported. Please read the documentation
for ld's --enable-auto-import for details.
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib"
/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" '
unrecognized
..\Spread\lib\libtspread.lib(.\Sp.obj):D:\Projects\Spread:(.text[_sp_initial
ize_locks]+0x43):
undefined reference to `WSAStartup at 8'
..\Spread\lib\libtspread.lib(.\Sp.obj):D:\Projects\Spread:(.text[_SP_connect
_timeout]+0xd2):
undefined reference to `gethostbyname at 4'
..\Spread\lib\libtspread.lib(.\Events.obj):D:\Projects\Spread:(.text[_E_hand
le_events]+0x36e):
undefined reference to `__WSAFDIsSet at 8'
nmth000000.o:: undefined reference to `_nm___iob'
There are over 100 undefined reference errors all told...
Thank you kindly,
Ivo
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Spread-users mailing list
Spread-users at lists.spread.org
http://lists.spread.org/mailman/listinfo/spread-users
More information about the Spread-users
mailing list