View Full Version: compiling the code in windows

camerahacks >>Questions >>compiling the code in windows


<< Prev | Next >>

anewguy- 10-19-2008
compiling the code in windows
I'm trying to port my modified avidownload for the coomand line and the gtk gui'd version to windows. I have the lib usb 10 stuff from ops and have installed mingw, etc. When I tried gcc I had -lc:\libusb (where I put the libusb.lib file), it comes up and tells me it can't find libusb when into the complilation process. I know it's just me not knowing how to do it, so could BillW, saturnNights, or someone else help a dumb guy out? Thanks in advance! Dave

anewguy- 10-19-2008

Okay, I changed it to -Lc:\libusb, and that helped it get past the initial errors. However, now each time one of the usb_* functions is called the compiler says it's not defined. I assumed these would all be in libusb.lib, so I'm confused as to why it's not finding them. Also, I noticed that with Windows the compiler is not reading the files in alphabetical order, but instead by date/time created. Not knowing how to do some of this stuff, I have a file I called a_start.c in Linux so it always was the first read in, and it references the usb calls. Now, it's the last file to be read in. Does anyone know how to "sort" a folders' contents so everything is back in sequence? Thanks! Dave EDIT: Fixed that by copying to a temp folder. However, it still isn't finding any of the usb* functions at compilation time (gcc apparently scans the files first prior to starting the compile as the output shows on the screen even though I piped the output of gcc to a file). Maybe I'm missing how this is all supposed to work in Windows??

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.