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. ATL / WTL / STL
  4. getting this error related to linking

getting this error related to linking

Scheduled Pinned Locked Moved ATL / WTL / STL
c++debugginghelp
2 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.
  • Y Offline
    Y Offline
    yang__lee
    wrote on last edited by
    #1

    Hi I have created an ATL application exe type (jjjj) where I am using to create ATL component it gives following error QLView.obj : error LNK2005: _CLSID_MyAWrapper already defined in jjjj.obj SQLView.obj : error LNK2005: _LIBID_Project1Lib already defined in jjjj.obj SQLView.obj : error LNK2005: _IID_IMyAWrapper already defined in jjjj.obj Debug/jjjj.exe : fatal error LNK1169: one or more multiply defined symbols found what to do here.. please suggest .. thanks Lee

    Leya

    S 1 Reply Last reply
    0
    • Y yang__lee

      Hi I have created an ATL application exe type (jjjj) where I am using to create ATL component it gives following error QLView.obj : error LNK2005: _CLSID_MyAWrapper already defined in jjjj.obj SQLView.obj : error LNK2005: _LIBID_Project1Lib already defined in jjjj.obj SQLView.obj : error LNK2005: _IID_IMyAWrapper already defined in jjjj.obj Debug/jjjj.exe : fatal error LNK1169: one or more multiply defined symbols found what to do here.. please suggest .. thanks Lee

      Leya

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      I think you'll find this is caused because you're #including initguid.h in more than one .cpp file. Make sure that it's only included in *one* cpp file explicitly. If it's in stdafx.h, take it out of there and put it in a .cpp file instead.

      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