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: Trying to build crm114 (20050721) under CygWin 1.5.18-1


Herb Martin wrote:

> If I change -L/usr/local/lib to -L/usr/local/lib:/lib

-L takes a single path, no colon.  You specify it multiple times to add
multiple paths.  But /lib is already be in the search path so this is
redundant and unnecessary.

> gcc -static -L/usr/local/lib:/lib  -lintl -liconv  crm_main.o crm_compiler.o
> crm_errorhandlers.o crm_exec_engine.o crm_p
> reprocessor.o crm_var_hash_table.o crm_math_exec.o crm_expandvar.o
> crm_stmt_parser.o crm_expr_alter.o crm_expr_match.o c
> rm_css_maintenance.o crm_markovian.o    crm_osb_bayes.o crm_osb_hyperspace.o
> crm_correlate.o crm_osb_winnow.o crm_winnow
> _maintenance.o crm_osbf_bayes.o crm_osbf_maintenance.o crm_expr_window.o
> crm_expr_isolate.o  crm_expr_file_io.o crm_expr
> _syscall.o crm_expr_classify.o crm_debugger.o crm_str_funcs.o  \
>   crmregex_tre.o \
>   -lm -ltre -o crm114_tre
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot
> find -ltre
> collect2: ld returned 1 exit status
> make[1]: *** [crm114_tre] Error 1
> make[1]: Leaving directory
> `/etc/mail/spamassassin/crm114-20050721-BlameNeilArmstrong.src'
> make: *** [crm114] Error 2

Now you've got the order wrong.  The objects must be specified in
dependent order, which generally means libraries after objects.

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]