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. problem building with .net 2003

problem building with .net 2003

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpc++graphicsquestion
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.
  • B Offline
    B Offline
    Binayak
    wrote on last edited by
    #1

    Hi, I can build my program (atl ) using visual 6.0. But if I try to build with .net2003 I get the following errors. I think it has something to do with the library file settings. Please advise. HelloHierarchy.obj : error LNK2019: unresolved external symbol "public: class std::vector >::iterator __thiscall SvIoMessageItemArray::end(void)" (?end@SvIoMessageItemArray@@QAE?AViterator@?$vector@PAVSvIoItem@@V?$allocator@PAVSvIoItem@@@std@@@std@@XZ) referenced in function "public: virtual enum tagMSGSUCCESS __thiscall HelloPollMessage::Send(class SvIoTopic *,class SvIoHierarchy *)" (?Send@HelloPollMessage@@UAE? AW4tagMSGSUCCESS@@PAVSvIoTopic@@PAVSvIoHierarchy@@ @Z) ServerBase.lib(IosItem.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall std::basic_string,class std::allocator >::_Tidy(bool)" (__imp_?_Tidy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEX_N@Z)

    A 1 Reply Last reply
    0
    • B Binayak

      Hi, I can build my program (atl ) using visual 6.0. But if I try to build with .net2003 I get the following errors. I think it has something to do with the library file settings. Please advise. HelloHierarchy.obj : error LNK2019: unresolved external symbol "public: class std::vector >::iterator __thiscall SvIoMessageItemArray::end(void)" (?end@SvIoMessageItemArray@@QAE?AViterator@?$vector@PAVSvIoItem@@V?$allocator@PAVSvIoItem@@@std@@@std@@XZ) referenced in function "public: virtual enum tagMSGSUCCESS __thiscall HelloPollMessage::Send(class SvIoTopic *,class SvIoHierarchy *)" (?Send@HelloPollMessage@@UAE? AW4tagMSGSUCCESS@@PAVSvIoTopic@@PAVSvIoHierarchy@@ @Z) ServerBase.lib(IosItem.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall std::basic_string,class std::allocator >::_Tidy(bool)" (__imp_?_Tidy@?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@AAEX_N@Z)

      A Offline
      A Offline
      Antti Keskinen
      wrote on last edited by
      #2

      You have some sort of a header file included that declares the function/structure specified in the first error. However, you are not linking against a suitable library. Check your project settings and the function that causes the error (HelloPollMessage::Send). When you find the missing function, see it's reference for the library to link with. The second error if of similar sorts, however, it just says that it cannot find the definition of 'basic_string' class. Make sure you are linking against the standard C/C++ library files. Of course, you could check the VS .Net help files for the new features of ATL version 7 to see if some note there would explain your problem. The final option is to copy the ATL library files from VC++ 6.0 and link against them instead of the version 7 ones. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

      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