Hi!
 
I am running Cygwin and have installed the libid3tag and libmad libraries. After installation I got the following message in the command window:
 
Libraries have been installed in:
      /usr/local/lib
 
If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR´ flag during linking and do at least one of the following:

-add LIBDIR to the `PATH´ environment variable during execution
-add LIBDIR to the `LD_RUN_PATH´ environment variable during linking
-use the `-Wl,--rpath -Wl,LIBDIR´ linker flag
 
When I try to compile the minimad.c file in libmad with:
 
gcc -static -pg -minimad.c -o minimad -lmad  
(I'm using -static to be able to do a profiling later on )
 
I get an error message that says that:
/i686-pc-cygwin/bin/ld: cannot find -lmad
When I am triyng to use just:
gcc -static -pg minimad.c -o minimad
 
I get several errors telling me that there are
"undefined references to `name_of_function´".
I'm guessing both of these problems have something to do with me not linking against installed libraries?
 
As you probably already have figured out, I'm kind of a newbie to all of this and I would really appreciate your help. Tanks.
H.