Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. template friend operator function ?

template friend operator function ?

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebuggingquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anycallmy
    wrote on last edited by
    #1

    :(:( Who can help me? #include "stdafx.h" template struct S { int qqq; friend bool operator< (const S&t1,const S&t2); }; template bool operator< (const S&t1,const S&t2) { return true; } int _tmain(int argc, _TCHAR* argv[]) { Ss; Ss2; bool uintb = s2 const &,struct S const &)" (??M@YA_NABU?$S@H@@0@Z) ,该符号在函数 _main 中被引用 Debug/TestSTL.exe : fatal error LNK1120: 1 个无法解析的外部命令 ~_~

    T 1 Reply Last reply
    0
    • A anycallmy

      :(:( Who can help me? #include "stdafx.h" template struct S { int qqq; friend bool operator< (const S&t1,const S&t2); }; template bool operator< (const S&t1,const S&t2) { return true; } int _tmain(int argc, _TCHAR* argv[]) { Ss; Ss2; bool uintb = s2 const &,struct S const &)" (??M@YA_NABU?$S@H@@0@Z) ,该符号在函数 _main 中被引用 Debug/TestSTL.exe : fatal error LNK1120: 1 个无法解析的外部命令 ~_~

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      "该符号在函数 _main 中被引用" ??? :confused::confused::confused:


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      A 1 Reply Last reply
      0
      • T toxcct

        "该符号在函数 _main 中被引用" ??? :confused::confused::confused:


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        A Offline
        A Offline
        anycallmy
        wrote on last edited by
        #3

        o sorry ,i am a Chinese,so the words is Chinese.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups