Skip to content

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

Description

@uzername

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

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