On Sat, Sep 11, 2010 at 3:38 PM, Ozkan Sezer <seze...@gmail.com> wrote: >> It will still producing the following linking errors. Take note the >> underscore. >> > > Well, that should be the easy part to fix, see the new version attached > (was my fault forgetting to add the underscores) > > Try a recompile with this and see > - if the likage succeds > - if you still have a performance issue by comparison to the msvc builds
Strange now it gives errors. gcc -c ./src/driver/abort_endpoint.c -o abort_endpoint.o -O2 -Wall -DWINVER=0x50 1 -DLOG_APPNAME=\"libusb0-sys\" -DTARGETTYPE=DRIVER -I./src -I./src/driver -I. /src/ddk -I. In file included from ./src/ddk/ntddk.h:38:0, from ./src/driver/libusb_driver.h:28, from ./src/driver/abort_endpoint.c:20: ./src/ddk/wdm.h:244:6: error: static declaration of '_InterlockedIncrement' foll ows non-static declaration d:\tdm\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mi ngw32/include/intrin.h:248:5: note: previous declaration of '_InterlockedIncreme nt' was here ./src/ddk/wdm.h:254:6: error: static declaration of '_InterlockedDecrement' foll ows non-static declaration d:\tdm\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mi ngw32/include/intrin.h:204:5: note: previous declaration of '_InterlockedDecreme nt' was here ./src/ddk/wdm.h:264:7: error: static declaration of '_InterlockedExchangePointer ' follows non-static declaration d:\tdm\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mi ngw32/include/intrin.h:221:5: note: previous declaration of '_InterlockedExchang ePointer' was here In file included from ./src/ddk/ntddk.h:38:0, from ./src/driver/libusb_driver.h:28, from ./src/driver/abort_endpoint.c:20: ./src/ddk/wdm.h:6700:36: warning: declaration does not declare anything make: *** [abort_endpoint.o] Error 1 -- Xiaofan ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public