Reputation: 674
I'm trying to build an Apache Module in C++ using Eclipse. From the command-line, the Apache utility apxs can be used to build and install a module from source, but I'd like to be able to build from within Eclipse. I've set Eclipse to use the cross-g++ compiler, added /usr/include/http to the includes folder, and added the libraries "apr-1", "aprutil-1", and "pcre" to the linker.
The code compiles, i.e. it sees the Apache headers, but fails to link with errors indicating it cannot find the Apache libraries. But for the life of me I cannot figure out what library includes the module APIs, and all online references I've found simply say "use apxs".
undefined reference to `ap_log_error_'
undefined reference to `ap_hook_handler'
Any insights appreciated!
Upvotes: 0
Views: 241
Reputation: 26
Upvotes: 1