[Cppcms-users] basic installation question
Brought to you by:
artyom-beilis
|
From: Lee, J. T. \(WorldQuant\) <Joh...@wo...> - 2013-02-06 13:47:57
|
Hello,
I'm getting started with cppcms. How do you set the right variable so that make/gcc finds the header files? The hello world program won't compile for me as is
~/cppcms-1.0.3/examples/hello_world] $ head hello.cpp
#include <cppcms/application.h>
#include <cppcms/applications_pool.h>
#include <cppcms/service.h>
#include <cppcms/http_response.h>
#include <iostream>
~/cppcms-1.0.3/examples/hello_world] $ cat Makefile
LIBS=-lcppcms -lbooster
all: hello
hello: hello.cpp
$(CXX) -O2 -Wall -g hello.cpp -o hello ${LIBS}
clean:
rm -fr hello hello.exe cppcms_rundir
~/cppcms-1.0.3/examples/hello_world] $ make hello
g++ -O2 -Wall -g hello.cpp -o hello -lcppcms -lbooster
hello.cpp:1:32: error: cppcms/application.h: No such file or directory
hello.cpp:2:38: error: cppcms/applications_pool.h: No such file or directory
hello.cpp:3:28: error: cppcms/service.h: No such file or directory
hello.cpp:4:34: error: cppcms/http_response.h: No such file or directory
hello.cpp:7: error: âcppcmsâ has not been declared
hello.cpp:7: error: expected `{' before âapplicationâ
hello.cpp:7: error: invalid function declaration
hello.cpp:16: error: invalid use of undefined type âclass my_hello_worldâ
hello.cpp:7: error: forward declaration of âclass my_hello_worldâ
hello.cpp: In member function âvoid my_hello_world::main(std::string)â:
hello.cpp:18: error: âresponseâ was not declared in this scope
hello.cpp: In function âint main(int, char**)â:
hello.cpp:29: error: âcppcmsâ has not been declared
hello.cpp:29: error: expected `;' before âsrvâ
hello.cpp:30: error: âsrvâ was not declared in this scope
hello.cpp:30: error: âcppcmsâ has not been declared
hello.cpp:30: error: expected primary-expression before â>â token
hello.cpp:30: error: expected primary-expression before â)â token
make: *** [hello] Error 1
###################################################################################
The information contained in this communication is confidential, may be
subject to legal privilege, and is intended only for the individual named.
If you are not the named addressee, please notify the sender immediately and
delete this email from your system. The views expressed in this email are
the views of the sender only. Outgoing and incoming electronic communications
to this address are electronically archived and subject to review and/or disclosure
to someone other than the recipient.
###################################################################################
|