[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:

>     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 instead (untested).  HTH.


## Process this file with automake to produce
bin_PROGRAMS = amtest
amtest_SOURCES = amtest.c amtest.h
TESTS = amtest

reply via email to

[Prev in Thread] Current Thread [Next in Thread]