Author Topic: c++ compliation failed  (Read 3022 times)

0 Members and 1 Guest are viewing this topic.

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
c++ compliation failed
« on: June 26, 2020, 05:41:53 am »
I do not believe this to be a bug with QB64...

Just upgraded to Linux Mint 19.3 from LM 18.1 and may not have installed everything that QB64 requires.

The logfile states:

In file included from libqb.cpp:16460:0:
parts/zlib/src.c:1:10: fatal error: zlib.h: No such file or directory
 #include <zlib.h>
          ^~~~~~~~
compilation terminated.
g++: error: libqb/os/lnx/libqb_1_4_0001010010001.o: No such file or directory

---------------------------------------

g++ is installed (version 7.5.0)
john@john-H81M-DS2:~$ g++ --version
g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Logic is the beginning of wisdom.

Offline jack

  • Seasoned Forum Regular
  • Posts: 408
    • View Profile
Re: c++ compliation failed
« Reply #1 on: June 26, 2020, 07:04:14 am »
just guessing, perhaps you are missing the zlib headers?
I suggest you apt install zlib-dev, don't know if it's zlib or libzlib but hopefully one is right
« Last Edit: June 26, 2020, 07:05:23 am by jack »

FellippeHeitor

  • Guest
Re: c++ compliation failed
« Reply #2 on: June 26, 2020, 07:34:28 am »
Alternatively, try running the setup script again.

Code: [Select]
./setup_lnx.sh

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: c++ compliation failed
« Reply #3 on: June 26, 2020, 11:28:40 am »
Thanks guys. Running the 'setup' should have been my first action... My apologies for wasting your time. Thanks Jack and Fellippe. Much appreciated.
Logic is the beginning of wisdom.