[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: library search test fails, please help
From: |
aaragon |
Subject: |
Re: library search test fails, please help |
Date: |
Sun, 22 Feb 2009 19:31:23 -0800 (PST) |
cpputils is a C++ library I wrote. The result from that command is
address@hidden:~/Lib/lib$ nm -g libcpputils.so | grep flip
00003c20 T _ZN8cpputils4flipEd
and if I filter that using c++filt:
address@hidden:~/Lib/lib$ nm -g libcpputils.so | grep flip | c++filt
00003c20 T cpputils::flip(double)
Is there a way to make this macro work with C++ functions??? for the time
being, I thought that it might be a very good idea to create a function with
C linkage, so for example in my library I wrote:
extern "C" {
int cpputils_autotools() {
return 0;
}
}
so I can use that function in the test for autotools. This I guess is
something that should be done automatically by autotools when creating C++
libraries, so that people don't break their head agains the wall trying to
find out why the macros to test for libraries don't work.
aa
Peter O'Gorman wrote:
>
> aaragon wrote:
>> Hello,
>>
>> I found working with autoconf sometimes very frustrating. This is an
>> example. I want to check for a particular static library that I created.
>> Thus, I put the following in the configure.ac file
>
>> configure:15785: g++-mp-4.3 -g -O3 -o conftest -g -O2
>> -I/Users/aaragon/Lib/include -L/Users/aaragon/Lib/lib conftest.cpp
>> -lcpputils >&5
>> Undefined symbols:
>> "_flip", referenced from:
>
>
> I'm guessing that the cpputils library does not define "_flip". Does nm
> -g libcpputils.a | grep _flip show it with a capital letter?
>
> Peter
> --
> Peter O'Gorman
> http://pogma.com
>
>
> _______________________________________________
> Autoconf mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/autoconf
>
>
--
View this message in context:
http://www.nabble.com/library-search-test-fails%2C-please-help-tp22140739p22155024.html
Sent from the Gnu - Autoconf - General mailing list archive at Nabble.com.
- Re: library search test fails, please help, (continued)
- Re: library search test fails, please help, Thomas Dickey, 2009/02/22
- Re: library search test fails, please help, aaragon, 2009/02/22
- Re: library search test fails, please help, aaragon, 2009/02/22
- Re: library search test fails, please help, Bob Friesenhahn, 2009/02/22
- Re: library search test fails, please help, aaragon, 2009/02/22
- Re: library search test fails, please help, Allan Caffee, 2009/02/22
- Re: library search test fails, please help, Keith Marshall, 2009/02/23
Re: library search test fails, please help, Duane Ellis, 2009/02/22
Re: library search test fails, please help, Peter O'Gorman, 2009/02/22
- Re: library search test fails, please help,
aaragon <=
- Re: library search test fails, please help, Peter Johansson, 2009/02/22
- Message not available
- Re: library search test fails, please help, Peter Johansson, 2009/02/23
- RE: library search test fails, please help, John Calcote, 2009/02/23
- Re: library search test fails, please help, aaragon, 2009/02/23
- Re: library search test fails, please help, aaragon, 2009/02/23
Re: library search test fails, please help, Keith Marshall, 2009/02/23
RE: library search test fails, please help, John Calcote, 2009/02/23
RE: library search test fails, please help, aaragon, 2009/02/23
RE: library search test fails, please help, Bob Friesenhahn, 2009/02/23
RE: library search test fails, please help, John Calcote, 2009/02/23