Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#9 Doesn't compile with GCC4.3

closed
nobody
None
5
2008-05-31
2008-05-24
Davide Totaro
No

This is the problem:
http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg444821.html

But if you add the line:
#include <string.h>
in advanced.cxx file
and modify the line:
#include <string> in #include <string.h> in the file settings.cxx the problem is solved (I've tested it).

Discussion

  • Logged In: YES
    user_id=7574
    Originator: NO

    I am not sure I understand the problem and the fix proposed.
    Please post the error message compiling the original source, an tell which version is compiled.

     
  • Davide Totaro
    Davide Totaro
    2008-05-25

    Modified source files

     
    Attachments
  • Davide Totaro
    Davide Totaro
    2008-05-25

    Logged In: YES
    user_id=2097117
    Originator: YES

    Ok, I will explain more detailed:
    I use ArchLinux 64bit. I download the last relase 1.0.1 (but with the 1.0.0 I've the same problem), extract and make it, this is the error:

    g++ -DHAVE_CONFIG_H -I. -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -MT advanced.o -MD -MP -MF .deps/advanced.Tpo -c -o advanced.o advanced.cxx
    advanced.cxx: In member function 'void Advanced::cb_fdm_i(Fl_Choice*, void*)':
    advanced.cxx:59: error: 'strcmp' was not declared in this scope
    make[2]: *** [advanced.o] Error 1

    So I replace the file advanced.cxx with the attached one and after a while I have another error:

    g++ -DHAVE_CONFIG_H -I. -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -MT settings.o -MD -MP -MF .deps/settings.Tpo -c -o settings.o settings.cxx
    settings.cxx: In function 'int string_to_coverage(const char*)':
    settings.cxx:54: error: 'strcmp' was not declared in this scope
    settings.cxx: In member function 'void Advanced::save_settings(Fl_Preferences&)':
    settings.cxx:179: error: 'strlen' was not declared in this scope
    settings.cxx: In member function 'void Advanced::load_settings(Fl_Preferences&)':
    settings.cxx:404: error: 'strcmp' was not declared in this scope
    settings.cxx:409: error: 'strcmp' was not declared in this scope
    settings.cxx:426: error: 'strcmp' was not declared in this scope
    settings.cxx:544: error: 'strcmp' was not declared in this scope
    make[2]: *** [settings.o] Error 1

    Replacing the settins.cxx file with the attached one also this error is fixed.

    Ask if you need more detail.
    File Added: source.tar.gz

     
  • Logged In: YES
    user_id=7574
    Originator: NO

    This is fixed now

     
    • status: open --> closed