[Klone-users] Usind make to build the embedded web server
Stefano Barbato
barbato at koanlogic.com
Tue Aug 28 11:51:44 EDT 2007
Hi,
Klone by default use C; if you want to use c++ in your dynamic pages
just rename your .kl1 files in .klx.
.klx pages are compiled by g++ instead of gcc so everything should work
properly (explicit c++ include directory should not be needed).
Note: --disable_cxx must not be used in KLONE_CONF_ARGS var in the
Makefile.
bye!
stefano
On Aug 28, 2007, at 3:17 PM, Ralf Dünkelmann wrote:
> 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
>
> _______________________________________________
> 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