GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Link error in dirobj.obj when static linking is used · Issue #440 · stepcode/stepcode

Link error in dirobj.obj when static linking is used #440

New issue
Copy link
New issue
Copy link
Open
Open
Link error in dirobj.obj when static linking is used#440
Copy link

Description

@Aderiani
Aderiani
opened on May 6, 2022
Issue body actions

I am trying to use stepcode using static library linking, but if face two LNK2019 errors about unresolved external symbols in dirobj.obj in steputils-static.lib. One symbol is PathCanonicalizeA and the other one is PathIsDirectoryA.
When I change to dynamic libraries the problem is solved and it runs without any problem.
I am using VS2022 with C++17, on Windows 10. Any idea of what could be the problem?

Error LNK2019 unresolved external symbol __imp_PathCanonicalizeA referenced in function "public: static class std::basic_string<char,struct std::char_traits,class std::allocator > __cdecl DirObj::Normalize(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?Normalize@DirObj@@sa?AV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@AEBV23@@z)

Error LNK2019 unresolved external symbol __imp_PathIsDirectoryA referenced in function "public: static bool __cdecl DirObj::IsADirectory(char const *)" (?IsADirectory@DirObj@@SA_NPEBD@Z)

Activity

  1. cshorler commented on Apr 23, 2023

    @cshorler
    cshorler
    on Apr 23, 2023
    Member
    More actions

    I'd suspect this is due to changed default unicode declarations of the compiler or incorrect linker libraries. I'm also surprised. Not tested with VS2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.