[Spread-users] Compiling spread example (simple_user.c) in Windows
Chan Nan
channan99 at yahoo.com
Mon Jan 22 14:42:02 EST 2007
Hi,
I got spread working pretty good in Redhat but had a
hard time on Windows platform. Here's my environment:
Windows XP Pro
dev-c++ v4.9.9.2 (www.bloodshed.net)
spread spread-src-4.0.0.tar.gz
I couldn't compile the included example
(simple_user.c) at all. Can I use this compiler or do
I have to use Visual C++? If so, what version of VC++
should I use? Is there anything else I need to set up
on my Windows?
Here's some information when I linked it:
Compiler: Default compiler
Building Makefile: "C:\chan\Makefile.win"
Executing make clean
rm -f spread-bin-4.0.0/examples/simple_user.o
spread.exegcc.exe -c
spread-bin-4.0.0/examples/simple_user.c -o
spread-bin-4.0.0/examples/simple_user.o
-I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/include"
-I"C:/chan/spread-src-4.0.0rc2/include"
-I"C:/chan/spread-src-4.0.0rc2/daemon"
-I"C:/chan/spread-src-4.0.0rc2/stdutil/src/stdutil"
gcc.exe spread-bin-4.0.0/examples/simple_user.o -o
"spread.exe" -L"C:/Dev-Cpp/lib"
-L"C:/chan/spread-bin-4.0.0/lib/win32"
-L"C:/chan/spread-src-4.0.0rc2/stdutil/lib"
-L"C:/chan/VC/lib" -lstdutil VC/lib/WSOCK32.LIB
spread-src-4.0.0rc2/libspread/libspread.a
spread-bin-4.0.0/examples/simple_user.o(.text+0x75):simple_user.c:
undefined reference to `SP_connect'
spread-bin-4.0.0/examples/simple_user.o(.text+0x89):simple_user.c:
undefined reference to `SP_error'
spread-bin-4.0.0/examples/simple_user.o(.text+0xaa):simple_user.c:
undefined reference to `SP_join'
spread-bin-4.0.0/examples/simple_user.o(.text+0x131):simple_user.c:
undefined reference to `SP_multicast'
spread-bin-4.0.0/examples/simple_user.o(.text+0x1d7):simple_user.c:
undefined reference to `SP_receive'
spread-bin-4.0.0/examples/simple_user.o(.text+0x1f4):simple_user.c:
undefined reference to `SP_error'
spread-bin-4.0.0/examples/simple_user.o(.text+0x374):simple_user.c:
undefined reference to `SP_get_memb_info'
spread-bin-4.0.0/examples/simple_user.o(.text+0x39d):simple_user.c:
undefined reference to `SP_error'
collect2: ld returned 1 exit statusmake.exe: ***
[spread.exe] Error 1Execution terminated
Thanks a lot for your help..
____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com
More information about the Spread-users
mailing list