LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error while running 'make' (https://www.linuxquestions.org/questions/linux-software-2/error-while-running-make-649543/)

deepumnit 06-15-2008 11:43 PM

Error while running 'make'
 
Dear all:

I got this error (mentioned below) while compiling some source code. What is the cause and how do I correct it?

Code:

make[4]: Leaving directory `/home/deepu/Desktop/prozilla-2.0.4/libprozilla/src'
make[4]: Entering directory `/home/deepu/Desktop/prozilla-2.0.4/libprozilla'
make[4]: Leaving directory `/home/deepu/Desktop/prozilla-2.0.4/libprozilla'
make[3]: Leaving directory `/home/deepu/Desktop/prozilla-2.0.4/libprozilla'
make[2]: Leaving directory `/home/deepu/Desktop/prozilla-2.0.4/libprozilla'
Making all in src
make[2]: Entering directory `/home/deepu/Desktop/prozilla-2.0.4/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I../libprozilla/src -I../intl -I/usr/local/include  -fno-inline -DLOCALEDIR=\"/usr/local/share/locale\"  -Wall -ggdb -D_REENTRANT -MT main.o -MD -MP -MF ".deps/main.Tpo" \
          -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \
        then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
        else rm -f ".deps/main.Tpo"; exit 1; \
        fi
In file included from main.cpp:39:
download_win.h:55: error: extra qualification ‘DL_Window::’ on member ‘print_status’
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/deepu/Desktop/prozilla-2.0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/deepu/Desktop/prozilla-2.0.4'
make: *** [all] Error 2


TB0ne 06-16-2008 08:17 AM

The cause is that you have an error in that include (.h) file. What's the source code to? Have you checked that file?

deepumnit 06-16-2008 08:22 AM

Yes, I have installed Prozilla from source previously.

colucix 06-16-2008 08:46 AM

This is a problem with newer GNU C/C++ compilers. To solve it just edit the file src/download_win.h and strip out the class name before the method at line 55, that is
Code:

void DL_Window::print_status(download_t * download, int quiet_mode);
should be
Code:

void print_status(download_t * download, int quiet_mode);

deepumnit 06-16-2008 09:14 AM

Thanks. I am compiling. Will post back if I have problems.

deepumnit 06-16-2008 09:15 AM

Pro man! It worked :) Thanks a lot.

nmansour 06-26-2008 09:15 PM

that was helpful, thank you for posting the problem and many thanks for the solution.
But, why does this error occur? And what does it mean? And why are new C++ compiler buggy?

Noha

burkass 07-25-2010 12:11 PM

@colucic
Thanks mate, it's very help

colucix 07-25-2010 03:01 PM

You're welcome! :)

amuro 04-27-2011 08:40 AM

Quote:

Originally Posted by colucix (Post 3186230)
This is a problem with newer GNU C/C++ compilers. To solve it just edit the file src/download_win.h and strip out the class name before the method at line 55, that is
Code:

void DL_Window::print_status(download_t * download, int quiet_mode);
should be
Code:

void print_status(download_t * download, int quiet_mode);

thanks man.. your a life saver !!


All times are GMT -5. The time now is 03:47 AM.