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 — [question] Issue with SchemaInit(Registry &) · Issue #409 · stepcode/stepcode

[question] Issue with SchemaInit(Registry &) #409

New issue
Copy link
New issue
Copy link
Open
Open
[question] Issue with SchemaInit(Registry &)#409
Copy link

Description

@uzername
uzername
opened on Jul 9, 2021
Issue body actions

Hello. Please, may you explain how do I link a schema properly?
I am trying to compile and link code from: http://stepcode.github.io/docs/p21_cpp_example/
I get such error when linking

Error	LNK2019	unresolved external symbol "__declspec(dllimport) void __cdecl SchemaInit(class Registry &)" (__imp_?SchemaInit@@YAXAEAVRegistry@@@Z) referenced in function main	readStepFILE

My list of VC++ directories is:

$(STEPCODE_DIR);
$(STEPCODE_DIR)\include\stepcode;
$(STEPCODE_DIR)\include\stepcode\clutils;
$(STEPCODE_DIR)\include\stepcode\cldai;
$(STEPCODE_DIR)\include\stepcode\cleditor;
$(STEPCODE_DIR)\include\stepcode\base;
$(STEPCODE_DIR)\include\stepcode\clstepcore;
$(STEPCODE_DIR)\include\schemas\sdai_pdm;
$(IncludePath)

My list of linked libs is:

$(STEPCODE_DIR)\lib\stepcore.lib;
$(STEPCODE_DIR)\lib\stepeditor.lib;
$(STEPCODE_DIR)\lib\stepdai.lib;
$(STEPCODE_DIR)\lib\steputils.lib;
$(STEPCODE_DIR)\lib\base.lib;
%(AdditionalDependencies)

How to use schema? How do I link the schema and overcome error?

Activity

  1. uzername commented on Jul 9, 2021

    @uzername
    uzername
    on Jul 9, 2021
    Author
    More actions

    I had to link to sdai_pdm.lib as well. I got it from built repository.
    Check the \Debug\lib\ folder inside your built repository. Generate with CMAKE, Compile it in VS, and manually copypaste the lib file with schema. It won't be copied to INSTALL directory.

    If you have something to comment - write it too, and close

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.