gdc-8 lang fails on link
Issue:
gdc-8 lang fails on link after installing g++. gdc-7 & gdc-9 work as expected.
Environment:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Steps to reproduce:
# Install g++
add-apt-repository ppa:ubuntu-
apt-get update -y
apt-get -y install "g++-7"
apt-get -y install "g++-8"
apt-get -y install "g++-9"
# Install gdc-8
apt-get -y install gdc-8
# Simple program
cat >simple.d <<EOF
import std.stdio : stdin, writeln;
void simple(int n, int otherNumber)
{
writeln(n);
writeln(
}
void main()
{
int n;
stdin.
int otherNumber;
stdin.
simple(n, otherNumber);
}
EOF
gdc-8 simple.d
Error:
/tmp/ccQm5EYZ.o: In function `_Dmain':
simple.
simple.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu gcc-8 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Aleksandr for more information if necessary.