danielacevedonet / googlesitemapgenerator

Automatically exported from code.google.com/p/googlesitemapgenerator
Apache License 2.0
0 stars 0 forks source link

Compiling from SVN, getting 'In static member function static void' errors #131

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. yum install httpd-devel, apr-devel
2. ./configure --with-apache-include=/usr/include/httpd 
--with-apr-include=/usr/include/apr-1
3. make installer

What is the expected output? What do you see instead?
I expect it to build the binaries and produce an install directory

What version of the product are you using? On what operating system?
SVN checked out files from Aug. 25 2010.

Please provide any additional information below.
I get the following errors that halts the make script:

In file included from 
/home/mike/googlesitemapgenerator-read-only/src/common/basesetting.h:39,
                 from basesetting.cc:17:
/home/mike/googlesitemapgenerator-read-only/src/common/url.h: In static member 
function ‘static void Url::EscapeUrlComponent(const char*, std::string*)’:
/home/mike/googlesitemapgenerator-read-only/src/common/url.h:45: error: 
‘strlen’ was not declared in this scope
/home/mike/googlesitemapgenerator-read-only/src/common/url.h: In static member 
function ‘static bool Url::UnescapeUrlComponent(const char*, std::string*)’:
/home/mike/googlesitemapgenerator-read-only/src/common/url.h:50: error: 
‘strlen’ was not declared in this scope
make[1]: *** [basesetting.o] Error 1
make[1]: Leaving directory 
`/home/mike/googlesitemapgenerator-read-only/src/common'
make: *** [all] Error 2

Original issue reported on code.google.com by vendi...@gmail.com on 25 Aug 2010 at 9:57

GoogleCodeExporter commented 9 years ago
This problem can be solved by adding #include <cstring> to basesetting.h file.
There are some other problems too.
So if you get error about srtlen, you need to add #include <cstring> to file 
that it says, typically with extension .h.
If you get other error, like fopen, fwrite or something missing, you need to 
add #include <cstdlib> to .h file.

I hope this will help you.

Original comment by matti.mi...@gmail.com on 23 Aug 2011 at 1:15