Author Topic: C++ Compilation failed (Linux/Ubuntu)  (Read 4444 times)

0 Members and 1 Guest are viewing this topic.

Offline SirCrow

  • Forum Regular
  • Posts: 144
    • View Profile
C++ Compilation failed (Linux/Ubuntu)
« on: May 28, 2018, 08:21:55 pm »
I finally got QB64 to run on my new PC running Ubuntu.  But when I try to run one of my programs, I get this:

Code: QB64: [Select]
  1. In file included from ../../src/minimp3.c:24:0:
  2. ../../src/libc.h:57:36: error: conflicting types for ‘uint64_t’
  3.          typedef unsigned long long uint64_t;
  4.                                     ^~~~~~~~
  5. In file included from /usr/include/stdint.h:37:0,
  6.                  from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9,
  7.                  from ../../src/libc.h:26,
  8.                  from ../../src/minimp3.c:24:
  9. /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h:27:20: note: previous declaration of ‘uint64_t’ was here
  10.  typedef __uint64_t uint64_t;
  11.                     ^~~~~~~~
  12. In file included from ../../src/minimp3.c:24:0:
  13. ../../src/libc.h:58:37: error: conflicting types for ‘int64_t’
  14.          typedef   signed long long  int64_t;
  15.                                      ^~~~~~~
  16. In file included from /usr/include/stdint.h:34:0,
  17.                  from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9,
  18.                  from ../../src/libc.h:26,
  19.                  from ../../src/minimp3.c:24:
  20. /usr/include/x86_64-linux-gnu/bits/stdint-intn.h:27:19: note: previous declaration of ‘int64_t’ was here
  21.  typedef __int64_t int64_t;
  22.                    ^~~~~~~
  23. ar: temp/minimp3.o: No such file or directory
  24. g++: error: parts/audio/decode/mp3_mini/os/lnx/src.a: No such file or directory
  25.  

EDIT: I've disabled all lines related to playing SOUND FILES and now the prog. runs....kind of.  The screen now goes black and I can't do anything but exit using Alt-F4 (Should be able to use Esc).  As to the .mp3 issue, can you tell from the log file what I can do about it?  There appear to be 3 or 4 versions of file src.a;  can I copy one of them to parts/audio/decode/mp3_mini/os/lnx/?

I tried another of my progs. and it seemed to run OK.  It's very hard to get things done on my new PC because I currently have use of mouse or keyboard, but not both.  (I'm using my crashy old PC to post this plea for help.)  I've had many, many headaches in my attempt to abandon Windows Vista forever.   

Let me know if you need to see the source;  I'll figure out a way to put it here.  Thanks!
« Last Edit: May 28, 2018, 09:41:08 pm by SirCrow »
I may not always finish what I've started....

FellippeHeitor

  • Guest
Re: C++ Compilation failed (Linux/Ubuntu)
« Reply #1 on: May 28, 2018, 08:47:07 pm »
I guess we need to see the source.

Offline SirCrow

  • Forum Regular
  • Posts: 144
    • View Profile
Re: C++ Compilation failed (Linux/Ubuntu)
« Reply #2 on: May 30, 2018, 10:23:13 pm »
I guess we need to see the source.

I've made progress with this, but now I need to figure out how to use sound and font files in Ubuntu.
I look forward to sharing my new game prog. with the community, but I need to fix it up somewhat, esp. now that I'm trying to switch from Vista to Linux.
I may not always finish what I've started....

FellippeHeitor

  • Guest