This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build problems


Stefano Facchetti wrote:

> When I compile my cc files under cygwin with this command line:
> g++ -c festivalDll.cc -o festivalDll.o -L. -lfestival -lestools -lestbase
> -leststring -ltermcap -lwinmm -I../src/include/
> -I../../speech_tools/include/ -I ./ -mno-cygwin -I./mingw/include
> -L./mingw/lib/

This command makes no sense.  You're running "g++ -c" which means
compile but do not link.  -L and -l are options that are only relevant
when linking, so they serve no purpose when used with -c.  Undefined
reference errors only occur when linking, so they can't be the output of
this command.  Please don't edit things, copy and paste the *exact*
command and *exact* output.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]