[Spread-users] Compiling spread example (simple_user.c) in Windows

Jacob Green jgreen at spreadconcepts.com
Mon Jan 22 14:54:51 EST 2007


While I have not personally tested using a compiler other then Visual Studio
on windows, it should work fine.  However the package ships with VC++
project file that make it easier on using VC++.  

There is a document explaining how to build from source in the \docs
directory called "Win32BuildInstructions.pdf".

>From your output, it looks like you aren't linking in the spread library. 

Jacob

-----Original Message-----
From: spread-users-bounces at lists.spread.org
[mailto:spread-users-bounces at lists.spread.org] On Behalf Of Chan Nan
Sent: Monday, January 22, 2007 2:42 PM
To: spread-users at lists.spread.org
Subject: [Spread-users] Compiling spread example (simple_user.c) in Windows

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

_______________________________________________
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