1
0
mirror of https://github.com/OlafvdSpek/ctemplate.git synced 2025-09-28 19:05:49 +08:00
Go to file
2012-05-31 14:09:19 +00:00
contrib Tue Jan 24 16:00:51 2012 Google Inc. <google-ctemplate@googlegroups.com> 2012-01-25 01:28:24 +00:00
doc Tue Jan 24 16:00:51 2012 Google Inc. <google-ctemplate@googlegroups.com> 2012-01-25 01:28:24 +00:00
m4 * Update acx_pthread.m4 for nostdlib (liuujisi) 2011-05-19 21:31:50 +00:00
packages Thu Mar 22 00:29:09 2012 Olaf van der Spek <olafvdspek@gmail.com> 2012-03-21 23:35:25 +00:00
src Drop const from size_t 2012-05-31 14:09:19 +00:00
vsprojects Fri Jul 22 15:31:05 2011 Google Inc. <opensource@google.com> 2011-07-22 22:56:35 +00:00
aclocal.m4 Autoreconf 2012-03-14 14:51:49 +00:00
AUTHORS Tue Jan 24 16:00:51 2012 Google Inc. <google-ctemplate@googlegroups.com> 2012-01-25 01:28:24 +00:00
autogen.sh Forgot to update this file when I updated the rest for ctemplate-1.0rc1. 2011-07-27 00:39:12 +00:00
ChangeLog Wed Apr 18 23:36:08 2012 Olaf van der Spek <olafvdspek@gmail.com> 2012-04-18 21:55:40 +00:00
compile Mon Jan 24 15:38:31 2011 Google Inc. <opensource@google.com> 2011-01-25 03:45:13 +00:00
config.guess Fri Jul 22 15:31:05 2011 Google Inc. <opensource@google.com> 2011-07-22 22:56:35 +00:00
config.sub Fri Jul 22 15:31:05 2011 Google Inc. <opensource@google.com> 2011-07-22 22:56:35 +00:00
configure Wed Apr 18 23:36:08 2012 Olaf van der Spek <olafvdspek@gmail.com> 2012-04-18 21:55:40 +00:00
configure.ac Wed Apr 18 23:36:08 2012 Olaf van der Spek <olafvdspek@gmail.com> 2012-04-18 21:55:40 +00:00
COPYING ctemplate 0.1 2007-03-21 23:06:14 +00:00
ctemplate.sln Rename google-ctemplate.sln to ctemplate.sln 2012-02-29 16:25:46 +00:00
depcomp Fri Jul 22 15:31:05 2011 Google Inc. <opensource@google.com> 2011-07-22 22:56:35 +00:00
INSTALL Fri Jul 22 15:31:05 2011 Google Inc. <opensource@google.com> 2011-07-22 22:56:35 +00:00
install-sh Fri Jul 22 15:31:05 2011 Google Inc. <opensource@google.com> 2011-07-22 22:56:35 +00:00
ltmain.sh * Accept . as part of tag/attr names (falmeida) 2011-01-14 22:12:21 +00:00
Makefile.am Add -no-undefined 2012-05-21 21:53:01 +00:00
Makefile.in Rebuild Makefile.in 2012-05-21 22:13:53 +00:00
missing Fri Jul 22 15:31:05 2011 Google Inc. <opensource@google.com> 2011-07-22 22:56:35 +00:00
NEWS Wed Apr 18 23:36:08 2012 Olaf van der Spek <olafvdspek@gmail.com> 2012-04-18 21:55:40 +00:00
README Thu May 7 11:27:28 2009 Google Inc. <opensource@google.com> 2009-05-07 15:35:04 +00:00
README_windows.txt Tue Jan 24 16:00:51 2012 Google Inc. <google-ctemplate@googlegroups.com> 2012-01-25 01:28:24 +00:00

See the documentation in the doc/ directory for information about how
to use the ctemplate library.

COMPILING
---------
To compile test applications with these classes, run ./configure
followed by make.  To install these header files on your system, run
'make install'.  (On Windows, the instructions are different; see
README.windows.)  See INSTALL for more details.

This code should work on any modern C++ system.  It has been tested on
Linux (Ubuntu, Fedora, RedHat), Solaris 10 x86, FreeBSD 6.0, OS X 10.3
and 10.4, and Windows under both VC++7 and VC++8.

There are a few Windows-specific details; see README.windows for more
information.

CTEMPLATE AND THREADS
---------------------
The ctemplate library has thread support, so it works properly in a
threaded environment.  For this to work, if you link libraries with
-lctemplate you may find you also need to add -pthread (or, on some
systems, -pthreads, and on others, -lpthread) to get the library to
compile.  If you leave out the -pthread, you'll see errors like this:

   symbol lookup error: /usr/local/lib/libctemplate.so.0: undefined symbol: pthread_rwlock_init

If your code isn't multi-threaded, you can instead use the
ctemplate_nothread library:
   -lctemplate_nothreads

To summarize, there are two ways to link in ctemlpate in non-threaded
applications.  For instance:
   1) gcc -o my_app my_app.o -lctemplate -pthread
   2) gcc -o my_app my_app.o -lctemplate_nothreads

If your application uses threads, you should use form (1).