From: Tuomo L. <dj...@ik...> - 2009-01-31 13:11:22
|
David Eaton wrote: > I seem to have run into what I believe is a limit to the length of a line in a .bat file (or the command line) while trying to include the libraries for building a libusb and gtk application. As such, I looked on the internet and a site showed how to put the include libraries in the cpp area with -Ixxxxx. I put each of the libs with a -I before it all on that one single line - it's over 256 characters long - is this a problem when the file is processed? > > Also, using a very simple test program (not really a program, but used to test the includes) in C, it does not appear to picking up the -I paths as my #include <xxx> fail. > > I also saw on this same internet page where to place the link libraries. I have no idea if this is right or not since it never gets to a link. First of all, how about putting in some line breaks? Second, you are using a specs file but don't know the difference between a header and a library? Why are you using a specs file? It's usually a good idea to know why you're doing something before you actually do it. >From what I can tell, you should read up on compiling C and libraries, etc: http://www.cs.cf.ac.uk/Dave/C/node3.html http://www.cs.cf.ac.uk/Dave/C/node35.html#ch:prog http://www.cs.cf.ac.uk/Dave/C/node3.html#SECTION00326000000000000000 ...and see GCC manual: http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/ ...and maybe find out about make and Makefiles. -- Tuomo ... Point not found. A)bort, R)eread, I)gnore |