New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perror was not declared in this scope (Origin: bugzilla #654244) #4332

doxygen opened this Issue Jul 2, 2018 · 0 comments


None yet
1 participant

doxygen commented Jul 2, 2018

status RESOLVED severity normal in component build for ---
Reported in version 1.7.4 on platform Other
Assigned to: Dimitri van Heesch

On 2011-07-08 13:12:26 +0000, FJack wrote:

When compiling Doxygen 1.7.4 with GCC v 6.4.0 for HP Itanium 11i3 I found I had to modify the following file:


to include a system header file to enable perror to be defined:

line 46, insert

include <stdio.h>

If I didn't do this then the following is reported by g++ after gmake executes the following line:

g++ -c -DQT_LITE_UNICODE -D_LARGEFILE_SOURCE -Wall -W -I. -o ../objects/qthread_unix.o qthread_unix.cpp
qthread_unix.cpp: In static member function 'static int QThread::idealThreadCount()':
qthread_unix.cpp:190:32: error: 'perror' was not declared in this scope
gmake[2]: *** [../objects/qthread_unix.o] Error 1

Fortunately I found perror in the man pages ;o)

On 2011-07-08 13:13:22 +0000, FJack wrote:

of course I meant #include <stdio.h>

On 2011-07-08 19:51:48 +0000, Dimitri van Heesch wrote:

Thanks, I'll add that.

On 2011-08-14 14:04:56 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.5. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment