compiling C++ in the toolchain.
peter at familienijs.be
Wed Jan 14 21:07:39 CET 2009
It is indeed the toolchain wiki I was following.
The only thing I didn't do already was replacing AC_PROG_CC for AC_PROG_CXX.
After replacing that I did make clean, om-conf and make. It still complains it
still says "*** No rule to make target `main.c', needed by `main.o'".
I've put my complete project on http://peter.industria.be/labyrinth/ so anyone
can directly see what the problem might be. (I've not uploaded data/ball.png
because of licensing issues.)
Thank you all for the help,
On Wednesday 14 January 2009 18:49:21 Juan Alberto Aranda Alvarez wrote:
> One question, which wiki is the one you used as reference? is it the
> toolchain wiki page?
> The issue is the way you have autotools configured for the project.
> Let's suppose I followed the wiki page:
> The issue is modifying 2 files: configure.ac and src/Makefile.am
> AC_CONFIG_SRCDIR(src/main.c) <-- change here to main.cpp
> In configure.ac you have to replace AC_PROG_CC for AC_PROG_CXX.
> in the file src/Makefile.am you replace the file main.c for main.cpp
> This way it will use the Toolchain's C++ compiler.
> I found this link to be very helpful :
> Hope it helps.
> Juan Aranda.
More information about the devel