Re: Sourcecode Examples in C/C++ available?
Brandon Long <[email protected]> Tue, 19 May 2009 13:31:12 -0700
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Organization | Fiction L Networks |
| Message-ID | <20090519203112.GB11503@bl1> |
On 05/19/09 Andreas Wehrmann uttered the following other thing: > Thanks for the responses. > static.c seems to be a good start. > However, when trying to link it, I get a lot of "undefined reference" > errors, > although I link to the proper libs... I think. > Here's how I call the compiler: > gcc -I/usr/include/ClearSilver -lneo_cgi -lneo_cs -lneo_utl static.c I would need to know what the undefined reference is to to know what you're missing. A local link line looks like: gcc -o cs_static.cgi static.o -lneo_cgi -lneo_cs -lneo_utl -lz Brandon > > I'm using Ubuntu 8.10 (Intrepid) here with Clearsilver installed from > the repository. > > > About Clearsilver++: I tried to download it, but the file does not exist > anymore. > > > > Regards, > > Andreas > > > > Brandon Long wrote: > > There's a basic example in cgi/cs_static.c as well. I keep meaning to > > get some better example code listed somewhere. > > > > For C++, there is Clearsilver++: > > > > http://biology.nmsu.edu/software/clearsilver++/index.html > > > > Though, that's not an example, just a C++ wrapper. > > > > Brandon > > > > On 05/18/09 David Jeske uttered the following other thing: > > > >> I don't know of an OO structured C++ example. If this is what you're looking to > >> do, I recommend taking a look at the Python CSPage.py example, and extrapolate > >> it into C++. > >> > >> For C, there is some example code in imd/imd.c, though I think Brandon's > >> commented that it's not the best example. > >> > >> What are you having trouble with specifically? > >> > >> -- Andreas Wehrmann wrote: > >> > >>> I recently discovered Clearsilver and it > >>> makes a good impression. I'd like to use it > >>> in C/C++ application but am having trouble > >>> to get it working. > >>> Are there source code examples for C/C++ > >>> that demonstrate the use of CS? > >>> > >> ------------------------------------ > >> > >> Yahoo! Groups Links > >> > >> > >> > > > > > > > > ------------------------------------ > > Yahoo! Groups Links > > > > ============================================================================ > Andreas Wehrmann Internet: [email protected] > Cand. Ing. Work: +43 (0)190 199 3616 > Centersystems GmbH;Software Developm Fax: +43 (0)190 199 2110 > > Ignaz-Koeck-Strasse 19 > Vienna > Vienna > 1210 > Austria > > Additional information: > > Last Name: Wehrmann > First Name: Andreas > ============================================================================ -- "Kill a man, and you are an assassin. Kill millions of men, and you are a conqueror. Kill everyone, and you are a god." -- Jean Rostand http://www.fiction.net/blong/