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. C->C++ ported app - unresolved externals

C->C++ ported app - unresolved externals

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsonhelpquestion
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.
  • N Offline
    N Offline
    nadiric
    wrote on last edited by
    #1

    I'm porting an old app that was created in VC6 in C-code to VS2005 C++ code. This is an api app that hits a shared lib for interaction with the main app. As soon as I change from C to C++ and build, I have unresolved externals... change back and it builds fine... I've added the project dirs (include and lib), maybe missed something else?? Any ideas? This seems to apply to functions from the shared lib, as well as other c-coded functions in the solution: gen_geo.obj : error LNK2019: unresolved external symbol _rabs referenced in function _make_bbox Thanks

    N 1 Reply Last reply
    0
    • N nadiric

      I'm porting an old app that was created in VC6 in C-code to VS2005 C++ code. This is an api app that hits a shared lib for interaction with the main app. As soon as I change from C to C++ and build, I have unresolved externals... change back and it builds fine... I've added the project dirs (include and lib), maybe missed something else?? Any ideas? This seems to apply to functions from the shared lib, as well as other c-coded functions in the solution: gen_geo.obj : error LNK2019: unresolved external symbol _rabs referenced in function _make_bbox Thanks

      N Offline
      N Offline
      nadiric
      wrote on last edited by
      #2

      Sometimes just stating a problem helps you fix it... A good ole' extern "C" {} around the api #includes did the trick Thanks for allowing me to waste your time :)

      J 1 Reply Last reply
      0
      • N nadiric

        Sometimes just stating a problem helps you fix it... A good ole' extern "C" {} around the api #includes did the trick Thanks for allowing me to waste your time :)

        J Offline
        J Offline
        John R Shaw
        wrote on last edited by
        #3

        :-D A stated problem with a good solution is never a waste of our time, in my opinion. If they have not already, then one of the guys who likes compiling solution faqs will include this. Good work!

        INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

        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