[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mixing C and C++?
From: |
Ralf Wildenhues |
Subject: |
Re: Mixing C and C++? |
Date: |
Fri, 6 Jun 2008 14:05:10 +0200 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
* Erik de Castro Lopo wrote on Fri, Jun 06, 2008 at 01:49:15PM CEST:
> http://www.mega-nerd.com/tmp/amtest-0.1.tar.gz
> gcc -g -O2 -o amtest amtest.o
> amtest.o: In function `main':
> /tmp/amtest-0.1/amtest.c:10: undefined reference to `cpp_test'
>
> For some reason, the automake generated Makefile drops the C++ object
> file from the link.
Well, try this for a Makefile.am instead (untested). HTH.
Cheers,
Ralf
## Process this file with automake to produce Makefile.in
bin_PROGRAMS = amtest
amtest_SOURCES = cpp.cc amtest.c amtest.h
EXTRA_DIST = autogen.sh
TESTS = amtest
- Mixing C and C++?, Erik de Castro Lopo, 2008/06/06
- Re: Mixing C and C++?, Ralf Wildenhues, 2008/06/06
- Re: Mixing C and C++?, Erik de Castro Lopo, 2008/06/06
- Re: Mixing C and C++?,
Ralf Wildenhues <=
- Re: Mixing C and C++?, Erik de Castro Lopo, 2008/06/06
- Re: Mixing C and C++?, Olly Betts, 2008/06/06
- Re: Mixing C and C++?, Erik de Castro Lopo, 2008/06/06
- Re: Mixing C and C++?, Ralf Wildenhues, 2008/06/06
- Re: Mixing C and C++?, Erik de Castro Lopo, 2008/06/06