Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.utils.bug > #2275
| Path | csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Norman Goldstein <normvcr@telus.net> |
| Newsgroups | gnu.utils.bug |
| Subject | bug: gnu linker resolves two symbols but of different type |
| Date | Wed, 5 Feb 2020 00:05:24 -0800 |
| Lines | 26 |
| Approved | bug-gnu-utils@gnu.org |
| Message-ID | <mailman.330.1580909581.2412.bug-gnu-utils@gnu.org> (permalink) |
| References | <67023aae-5c6b-5b27-b0a6-43cb59af2fce@telus.net> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | usenet.stanford.edu 1580909581 22971 209.51.188.17 (5 Feb 2020 13:33:01 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-gnu-utils@gnu.org |
| Envelope-to | bug-gnu-utils@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=neo; t=1580889936; bh=lRBSFSxMFDvpTYL6olGn/w+Zeq1Xd6KiLhXLP4Q4IzQ=; h=To:From:Subject:Date; b=WFrn+9NPthy83BvNFoJ5zagUYH1VOkmPtvRgKvuEJCsV9qLuHSaiPpNQJTbEHmo5/ s7BBSsIjoCPikpDReU/2YmwtFlL885wNsmBnlxRP3UuFO6Tr1y6NoxffdnUiJPJH7M qQlrxiU3Tjhcp+3VPr3vF2p0a5KvNjUdd2tnxp9Pt2yzAEln9Q+2Df6DafRrZJzxZd NNYF0Q+WgOj+2dbHmxBwR0qw8SGNZTEXWg8jGm5WuDmNz8TzTwXAlnsg4RhVKDFRFP sESPdSiTihYtQ7SRafP1CUhdFRoh3g520DuH8Lsdv/ZVD+0Ce/xe3VNnqijzdzKoo6 9SVaypMCRQc5A== |
| X-Telus-Authed | none |
| X-Authority-Analysis | v=2.3 cv=NruvjPVJ c=1 sm=1 tr=0 a=c259RqH085UPayaMlDPCbg==:117 a=c259RqH085UPayaMlDPCbg==:17 a=IkcTkHD0fZMA:10 a=ImacjLIl88_p1lyM-yMA:9 a=QEXdDO2ut3YA:10 |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
| Content-Language | en-CA |
| X-CMAE-Envelope | MS4wfETr+7bPdNzApNjFaIQKPf/hjjZAIUrALNewr0bNXZNMUnFo8r+vsHwS4LN3zLM/98gkR6RRg7qBYc/Ejc2TMqBjgi3AJzQIYW1Swsy4RABt0tvGHdOo 7W88S3LfglEdcMdWdsO1HVEOrNic9gY5YBkhRH07SRosdNQBO8X0L/L+ |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 3.x |
| X-Received-From | 209.171.16.92 |
| X-Mailman-Approved-At | Wed, 05 Feb 2020 08:33:00 -0500 |
| X-BeenThere | bug-gnu-utils@gnu.org |
| X-Mailman-Version | 2.1.23 |
| Precedence | list |
| List-Id | Bug reports for the GNU utilities <bug-gnu-utils.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-gnu-utils>, <mailto:bug-gnu-utils-request@gnu.org?subject=unsubscribe> |
| List-Archive | <https://lists.gnu.org/archive/html/bug-gnu-utils> |
| List-Post | <mailto:bug-gnu-utils@gnu.org> |
| List-Help | <mailto:bug-gnu-utils-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-gnu-utils>, <mailto:bug-gnu-utils-request@gnu.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <67023aae-5c6b-5b27-b0a6-43cb59af2fce@telus.net> |
| Xref | csiph.com gnu.utils.bug:2275 |
Show key headers only | View raw
Runnig on fedora 30, x86-64.
Here are two source files which compile and link without error, but
which break type expectations and not what the programmer would want.
The type of "foo" is different in the two files:
a.cpp:
//////
double foo = 2.1;
b.cpp
//////
#include <iostream>
using namespace std;
extern int foo;
int main( int argc, char* argv[] )
{
cout << "foo= " << foo << endl;
return 0;
}
////////////
On Windows 10, the visual studio cl.exe complains at link time.
Back to gnu.utils.bug | Previous | Next | Find similar
bug: gnu linker resolves two symbols but of different type Norman Goldstein <normvcr@telus.net> - 2020-02-05 00:05 -0800
csiph-web