[Spread-users] help building libtsp with mingw / g++ ?

Ivo ivolucien at yahoo.com
Wed Sep 28 04:22:07 EDT 2005


I've done more research and my import problems really seem to be
compiler / library / linker issues with using MSVC to compile
libtspread.lib and gcc & ld to compile and link my main project.

Has anyone built a static Spread library using mingw or cygwin? I'm
just looking for a good way to incorporate Spread into my cross
platform gcc project. I tried "make arch-linux" and that failed with
a "no rule to make target" error. Relatively clueless about 'make'
frankly.

Thanks for any suggestions, no matter how small,

Ivo

------ previous message in thread ------

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_set_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_initialize_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_handle_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


		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com




More information about the Spread-users mailing list