#2 missing include in packagedialog.h

closed
nobody
5
2007-01-11
2007-01-08
Anonymous
No

In order to successfully compile qucs-0.0.10 I had to add an include for stdlib.h in packagedialog.h. Not sure if that was the right place to do it but that fixed it. The compile had failed at packagedialog.h complaining of a missing free and malloc.

Discussion

  • Stefan Jahn
    Stefan Jahn
    2007-01-09

    Logged In: YES
    user_id=80302
    Originator: NO

    Can you tell which system/compiler combination did cause the error? Does the include in packagedialog.cpp (not in the header) solve the prblem as well?

     
  • Logged In: NO

    Here is the output from gcc -v:

    Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/specs
    Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
    Thread model: posix
    gcc version 3.3.4

    this is Slackware-10.1

    I also tried adding the include for stdlib.h to packagedialog.cpp instead of packagedialog.h, that worked also. Where is the include for stdlib.h supposed to occur?

     
  • Stefan Jahn
    Stefan Jahn
    2007-01-11

    • status: open --> closed
     
  • Stefan Jahn
    Stefan Jahn
    2007-01-11

    Logged In: YES
    user_id=80302
    Originator: NO

    I sent a patch for CVS to Raimund today. It's fixed then.