[users@httpd] using apxs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I created a C1.hpp and C1.cpp, compiled and linked into a C1.a
file. I did copy the C1.a file into /usr/local/apache2/lib and
C1.hpp into /usr/local/apache2/include. This class provides
some usefull methods to process a request.

OK. Now I would like to use it in my module mod_xyz.
Entering the command

	/usr/local/apache2/bin/apxs -c -i -a mod_xyz.c

returns these lines:

/usr/local/apache2/build/libtool --silent --mode=compile gcc3 -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/apache2/include -c -o mod_xyz.lo mod_xyz.c && touch mod_xyz.slo
In file included from mod_xyz.c:4:
/usr/local/apache2/include/C1.hpp:6: parse error before "C1"
/usr/local/apache2/include/C1.hpp:7: syntax error before '{' token
/usr/local/apache2/include/C1.hpp:20: syntax error before "int"
/usr/local/apache2/include/C1.hpp:27: syntax error before "int"
/usr/local/apache2/include/C1.hpp:33: syntax error before "int"
/usr/local/apache2/include/C1.hpp:39: syntax error before "void"
/usr/local/apache2/include/C1.hpp:46: syntax error before "int"
/usr/local/apache2/include/C1.hpp:53: syntax error before "char"
/usr/local/apache2/include/C1.hpp:55: parse error before ':' token
apxs:Error: Command failed with rc=65536
.

How can I fix it?
-----------------

László Graf


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux