Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #6308

Re: Linking Issue

From ruben safir <ruben@mrbrklyn.com>
Newsgroups comp.lang.c++
Subject Re: Linking Issue
Date 2011-06-06 14:41 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <isj715$i9v$1@reader1.panix.com> (permalink)
References <ish9ur$c1k$1@reader1.panix.com> <e4f6dfea-4940-46ac-9c65-8b6eb5823e1f@w4g2000yqm.googlegroups.com>

Show all headers | View raw


On 06/06/2011 01:18 PM, red floyd wrote:
> On Jun 5, 6:19 pm, Ruben Safir<ru...@mrbrklyn.com>  wrote:
>> I'm just not undertstanding what I'm doing wrong that the linker can't
>> find my method function
>>
>> I have this header file
>> questionss.h
> [redacted]
>>     void selection(Deck, std::istream&in = std::cin);
>> [redacted]
>> questions.cpp
>>     void selection(Deck&stack, std::istream&is = std::cin) {
>
>
> And the problem becomes clear.  The prototype passes the deck
> by value, the actual function passes by reference.

huh

why is it compiling now then :)  Another mystery.

good catch.

Ruben

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Linking Issue Ruben Safir <ruben@mrbrklyn.com> - 2011-06-06 01:19 +0000
  Re: Linking Issue "Paul" <pchristor@yahoo.co.uk> - 2011-06-06 02:51 +0100
    Re: Linking Issue red floyd <redfloyd@gmail.com> - 2011-06-06 10:16 -0700
      Re: Linking Issue "Paul" <pchristor@yahoo.co.uk> - 2011-06-06 20:22 +0100
      Re: Linking Issue Joshua Maurice <joshuamaurice@gmail.com> - 2011-06-06 14:06 -0700
  Re: Linking Issue Ruben Safir <ruben@mrbrklyn.com> - 2011-06-06 01:52 +0000
  Re: Linking Issue Joshua Maurice <joshuamaurice@gmail.com> - 2011-06-05 19:01 -0700
    Re: Linking Issue Ruben Safir <ruben@mrbrklyn.com> - 2011-06-06 02:18 +0000
      Re: Linking Issue "Paul" <pchristor@yahoo.co.uk> - 2011-06-06 03:24 +0100
  Re: Linking Issue red floyd <redfloyd@gmail.com> - 2011-06-06 10:18 -0700
    Re: Linking Issue ruben safir <ruben@mrbrklyn.com> - 2011-06-06 14:41 -0400
      Re: Linking Issue Paavo Helde <myfirstname@osa.pri.ee> - 2011-06-06 16:21 -0500

csiph-web