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. Mobile Development
  3. Mobile
  4. error LNK2019: unresolved external symbol

error LNK2019: unresolved external symbol

Scheduled Pinned Locked Moved Mobile
helpdata-structuresdebuggingquestionannouncement
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.
  • R Offline
    R Offline
    Rockone
    wrote on last edited by
    #1

    when I porting a win32 application to a PPC 2002 application, there are many link errors, but they are the same type, error LNK2019. .Exe project link options(Debug): .lib commctrl.lib coredll.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"wWinMainCRTStartup" /verbose /incremental:yes /pdb:"ARMDbg/fch.pdb" /map:"ARMDbg/fch.map" /debug /nodefaultlib:$(CENoDefaultLib) /out:"ARMDbg/fch.exe" /libpath:"..\vg\ARMDbg" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM .Exe project link options(Release): .lib commctrl.lib coredll.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"wWinMainCRTStartup" /incremental:no /pdb:"ARMRel/fch.pdb" /map:"ARMRel/fch.map" /nodefaultlib:$(CENoDefaultLib) /out:"ARMRel/fch.exe" /libpath:"..\vg\ARMRel" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM .Dll project link options(Debug): commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /verbose /dll /incremental:yes /pdb:"X86Dbg/.pdb" /map:"X86Dbg/.map" /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /def:".\.def" /out:"X86Dbg/.dll" /implib:"X86Dbg/.lib" /pdbtype:sept /subsystem:$(CESubsystem) /MACHINE:IX86 .Dll project link options(Release): /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /verbose /dll /incremental:no /pdb:"ARMRel/.pdb" /map:"ARMRel/.map" /nodefaultlib:$(CENoDefaultLib) /def:".\.def" /out:"ARMRel/.dll" /implib:"ARMRel/.lib" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM a typical error message is bellow: myDoc.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Quantity::Set(unsigned long)" (?Set@Quantity@@QAE_NK@Z) referenced in function "protected: void __thiscall CmyDoc::OverrideDefaultInitialValues (class IO_Rack *)" (?OverrideDefaultInitialValues@CmyDoc@@IAEXPAVIO_Rack@@@Z) The function in the Dll: >> bool Quantity::Set(unsigned long ulInput) >> { >> dBase = (double)(ulInput) ; >> return true ; >> } any tip or suggestion would of great help. Thank you advanced.

    E 1 Reply Last reply
    0
    • R Rockone

      when I porting a win32 application to a PPC 2002 application, there are many link errors, but they are the same type, error LNK2019. .Exe project link options(Debug): .lib commctrl.lib coredll.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"wWinMainCRTStartup" /verbose /incremental:yes /pdb:"ARMDbg/fch.pdb" /map:"ARMDbg/fch.map" /debug /nodefaultlib:$(CENoDefaultLib) /out:"ARMDbg/fch.exe" /libpath:"..\vg\ARMDbg" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM .Exe project link options(Release): .lib commctrl.lib coredll.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"wWinMainCRTStartup" /incremental:no /pdb:"ARMRel/fch.pdb" /map:"ARMRel/fch.map" /nodefaultlib:$(CENoDefaultLib) /out:"ARMRel/fch.exe" /libpath:"..\vg\ARMRel" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM .Dll project link options(Debug): commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /verbose /dll /incremental:yes /pdb:"X86Dbg/.pdb" /map:"X86Dbg/.map" /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /def:".\.def" /out:"X86Dbg/.dll" /implib:"X86Dbg/.lib" /pdbtype:sept /subsystem:$(CESubsystem) /MACHINE:IX86 .Dll project link options(Release): /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /verbose /dll /incremental:no /pdb:"ARMRel/.pdb" /map:"ARMRel/.map" /nodefaultlib:$(CENoDefaultLib) /def:".\.def" /out:"ARMRel/.dll" /implib:"ARMRel/.lib" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM a typical error message is bellow: myDoc.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Quantity::Set(unsigned long)" (?Set@Quantity@@QAE_NK@Z) referenced in function "protected: void __thiscall CmyDoc::OverrideDefaultInitialValues (class IO_Rack *)" (?OverrideDefaultInitialValues@CmyDoc@@IAEXPAVIO_Rack@@@Z) The function in the Dll: >> bool Quantity::Set(unsigned long ulInput) >> { >> dBase = (double)(ulInput) ; >> return true ; >> } any tip or suggestion would of great help. Thank you advanced.

      E Offline
      E Offline
      eli15021979
      wrote on last edited by
      #2

      Maybe you need to import some library?

      R 1 Reply Last reply
      0
      • E eli15021979

        Maybe you need to import some library?

        R Offline
        R Offline
        Rockone
        wrote on last edited by
        #3

        Thank your reply. I miss define a macro, so the dll cannot be export

        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