[mnet-devel] Mnet build questions.

icepick at icepick.info icepick at icepick.info
Tue Jun 3 17:46:03 BST 2003


On Mon, Jun 02, 2003 at 09:44:50AM -0700, rob kinninmont wrote:
> Trying to build on windows (what I'm aiming for at the moment) after  
> working around the fact that 'patch' doesn't work, things go fine  
> through 'setup.py download'  When I try and build, VC++ barfs on the  
> FEC code:
> 
> C:\mnet\mnet_new>python setup.py build_ext --inplace
> running build_ext
> building 'mnetlib.filesystem.fec' extension
> C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe /c /nologo /Ox  
> /MD /W3 /GX -DGF_BITS=8 -DPYTHON_MODULE -DWIN32 -DGX -DCRYPTOPP_51  
> -IC:\Python22\include -Ibuild\crypto51 /Tcmnetlib\filesystem\fec.c  
> /Fobuild\temp.win32-2.2\Release\fec.obj fec.c
> mnetlib\filesystem\fec.c(159) : error C2054: expected '(' to follow  
> 'inline'
> mnetlib\filesystem\fec.c(160) : error C2085: 'modnn' : not in formal  
> parameter list
> mnetlib\filesystem\fec.c(160) : error C2143: syntax error : missing ';'  
> before '{'
> mnetlib\filesystem\fec.c(196) : warning C4013: 'modnn' undefined;  
> assuming extern returning int
> mnetlib\filesystem\fec.c(239) : warning C4013: 'snprintf' undefined;  
> assuming extern returning int
> error: command '"C:\Program Files\Microsoft Visual  
> Studio\VC98\BIN\cl.exe"' failed with exit status 2
> 
> It looks to my rusty C++ eye that the compiler is full of it here, but  
> I'd still like to get past it.
> 
> I have to admit, I was kind of surprised to see it using VC++, having  
> installed all the mingw stuff, but I guess that's a 'feature' of  
> python's distutils stuff.  Any advice on how I can fix this and/or how  
> it worked for others would be appreciated.

The key here is to run "python setup.py build_ext -i -c mingw32"

-c is for the compiler.

icepick




-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel




More information about the Mnet-devel mailing list