[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. 


-----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


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
-I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include" 
gcc.exe spread-bin-4.0.0/examples/simple_user.o  -o
"spread.exe" -L"C:/Dev-Cpp/lib"
-L"C:/chan/VC/lib" -lstdutil VC/lib/WSOCK32.LIB
undefined reference to `SP_connect'
undefined reference to `SP_error'
undefined reference to `SP_join'
undefined reference to `SP_multicast'
undefined reference to `SP_receive'
undefined reference to `SP_error'
undefined reference to `SP_get_memb_info'
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

More information about the Spread-users mailing list