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

Compile error on Solaris 8 - variable time clashes with function time() (Origin: bugzilla #621653) #3802

Closed
doxygen opened this Issue Jul 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@doxygen
Owner

doxygen commented Jul 2, 2018

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

On 2010-06-15 14:43:44 +0000, Steve Evans wrote:

I get this compile error on Solaris 8:

g++ -c -DENGLISH_ONLY -Wall -W -O2 -I../qtools -o ../objects/portable.o portable.cpp
portable.cpp:30: error: QTime time' redeclared as different kind of symbol /usr/include/iso/time_iso.h:91: error: previous declaration of time_t time(time_t*)'
portable.cpp:30: error: declaration of QTime time' /usr/include/iso/time_iso.h:91: error: conflicts with previous declaration time_t time(time_t*)'
portable.cpp: In function void portable_sysTimerStart()': portable.cpp:381: error: request for member start' in time', which is of non-class type time_t ()(time_t*)'
portable.cpp: In function void portable_sysTimerStop()': portable.cpp:386: error: request for member elapsed' in time', which is of non-class type time_t ()(time_t*)'

Renaming the variable time on line 30 of portable.cpp and all of its uses in the file fixes the compile error.

On 2010-06-15 14:52:44 +0000, Dimitri van Heesch wrote:

Thanks Steve, I'll but a g_ in front of this global variable.

On 2010-06-25 11:49:05 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.1. 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.

On 2010-10-09 08:19:27 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.2. 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