| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Warren Young | Date: | November 12 2010 6:58pm |
| Subject: | Re: Link error when building mysql++-3.1.0 with --as-needed | ||
| View as plain text | |||
On Nov 12, 2010, at 9:44 AM, Adrian Cornish wrote: > This is related to link order, please place static library > mysqlpp_ssqls2parser before the "--as-needed" flag and it will link fine. > > g++ -o test_ssqls2 test_ssqls2_ssqls2.o -lmysqlpp_ssqls2parse > -Wl,--as-needed -L. -L/usr/local/lib/mysql -lmysqlclient -lmysqlpp To make that fix apply to MySQL++, you'd have to patch Bakefile, or convince the maintainer to do it for you. There's nothing in mysql++.bkl you can change to force -l flags to appear before -L.
| Thread | ||
|---|---|---|
| • Link error when building mysql++-3.1.0 with --as-needed | Andrew Ray | 12 Nov |
| • Re: Link error when building mysql++-3.1.0 with --as-needed | Adrian Cornish | 12 Nov |
| • Re: Link error when building mysql++-3.1.0 with --as-needed | Adrian Cornish | 12 Nov |
| • Re: Link error when building mysql++-3.1.0 with --as-needed | Warren Young | 12 Nov |
| • Re: Link error when building mysql++-3.1.0 with --as-needed | Warren Young | 12 Nov |
| • Re: Link error when building mysql++-3.1.0 with --as-needed | Adrian Cornish | 12 Nov |
| • Re: Link error when building mysql++-3.1.0 with --as-needed | Warren Young | 12 Nov |
| • Re: Link error when building mysql++-3.1.0 with --as-needed | Warren Young | 12 Nov |
