[Klone-users] Usind make to build the embedded web server
Ralf Dünkelmann
r.duenkelmann at oxalis.de
Tue Aug 28 09:17:58 EDT 2007
Ok, I found out that when I say
WEBAPP_CFLAGS ?= -I$//usr/include/c++/4.1.2
the double // is turned into one slash and the libraries are found.
However, I run into the next trouble when the compile wants to
do a gcc on a c++-source:
gcc -I/home/ralf/01Projekte/klone_evaluation/klone_ftxd/build/target/klone-core-2.0.0rc9/libu/include -I/home/ralf/01Projekte/klone_evaluation/klone_ftxd/build/target/klone-core-2.0.0rc9 -DHAVE_CONF_H
-I/usr/local/include -O2 -I/usr/include/c++/4.1.2/i486-linux-gnu -I/usr/include/c++/4.1.2/ -I/01Projekte/ftx_working_copy/ftxpress/lib -I/home/ralf/01Projekte/klone_evaluation/klone_ftxd
-I/home/ralf/01Projekte/klone_evaluation/klone_ftxd/build/target/klone-core-2.0.0rc9/ -I/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/rdbms/public/ -c
pg_2cc3da97e110aefe2f9367222c408ec1.c -o
pg_2cc3da97e110aefe2f9367222c408ec1.o
This seems to be a compile on a "translated" html. Since my Injections are C++
not C, this leads to errors:
---
In file included from /usr/include/c++/4.1.2/iostream:43,
from /home/ralf/01Projekte/klone_evaluation/klone_ftxd/webapp/www/index.kl1:4:
/usr/include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:43: error:
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gnu_debug_def’
/usr/include/c++/4.1.2/i486-linux-gnu/bits/c++config.h:45: error:
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gnu_debug’
In file included from /usr/include/c++/4.1.2/cstring:50,
from /usr/include/c++/4.1.2/i486-linux-gnu/bits/c++locale.h:41,
from /usr/include/c++/4.1.2/iosfwd:45,
from /usr/include/c++/4.1.2/ios:43,
from /usr/include/c++/4.1.2/ostream:44,
from /usr/include/c++/4.1.2/iostream:44,
---
If make used g++ here, the compile would have worked.
So I think, I am also missing a configuration option with which I can tell
that my webapp is C++.
Is there sth like that?
/Ralf
Am Dienstag, 28. August 2007 13:41 schrieb Mark Richards:
> Ralf Dünkelmann wrote:
> > Hi,
> >
> > yes. My toplevel Makefile reads in that line
> >
> > WEBAPP_CFLAGS ?= -I$(KLONE_APP_TOP) -I$(KLONE_SRC)
> > -I$(TOP)/usr/include/c++/4.1.2
> >
> > But it seems as if it would never use these hints.
> > (Since I do not know what "TOP" does I tried with and without it)
>
> $(TOP) starts at the toplevel of your build tree. Try hard-coding the
> full path to your c++ include files instead.
>
>
>
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
More information about the klone-users
mailing list