Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker error when trying to build on C++, MSVC, Windows x64 #48

Open
aseverino opened this issue Mar 8, 2020 · 1 comment
Open

Linker error when trying to build on C++, MSVC, Windows x64 #48

aseverino opened this issue Mar 8, 2020 · 1 comment

Comments

@aseverino
Copy link

aseverino commented Mar 8, 2020

I'm trying to build Verb, but I get linker errors that seem to be related to HXCPP.

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK1120	7 unresolved externals	verbstest	V:\verbstest\x64\Debug\verbstest.exe	1	

Error	LNK2001	unresolved external symbol "int hx::gMarkID" (?gMarkID@hx@@3HA)	verbstest	V:\verbstest\verbstest\main.obj	1	

Error	LNK2001	unresolved external symbol "int hx::gMarkIDWithContainer" (?gMarkIDWithContainer@hx@@3HA)	verbstest	V:\verbstest\verbstest\main.obj	1	

Error	LNK2001	unresolved external symbol "public: static class hx::ObjectPtr<class hx::Class_obj> hx::ArrayBase::__mClass" (?__mClass@ArrayBase@hx@@2V?$ObjectPtr@VClass_obj@hx@@@2@A)	verbstest	V:\verbstest\verbstest\main.obj	1	

Error	LNK2001	unresolved external symbol "struct hx::TLSData<class hx::StackContext,1> hx::tlsStackContext" (?tlsStackContext@hx@@3U?$TLSData@VStackContext@hx@@$00@1@A)	verbstest	V:\verbstest\verbstest\main.obj	1	

Error	LNK2001	unresolved external symbol "unsigned int * hx::gImmixStartFlag" (?gImmixStartFlag@hx@@3PAIA)	verbstest	V:\verbstest\verbstest\main.obj	1	

Error	LNK2001	unresolved external symbol "unsigned int hx::gPrevMarkIdMask" (?gPrevMarkIdMask@hx@@3IA)	verbstest	V:\verbstest\verbstest\main.obj	1	

Error	LNK2019	unresolved external symbol "void __cdecl __hxt_gc_new(struct hx::StackContext *,void *,int,char const *)" (?__hxt_gc_new@@YAXPEAUStackContext@hx@@PEAXHPEBD@Z) referenced in function "public: static void * __cdecl hx::ImmixAllocator::alloc(class hx::ImmixAllocator *,unsigned __int64,bool,char const *)" (?alloc@ImmixAllocator@hx@@SAPEAXPEAV12@_K_NPEBD@Z)	verbstest	V:\verbstest\verbstest\main.obj	1

I have the compile results BuildTool.lib and Host.lib, and I don't know what else I might be missing.

@maz-1
Copy link

maz-1 commented Dec 23, 2020

I went through the header , these symbols are only enabled in debug build, so you may need to add #define NO_HXCPP_DEBUG to cpp file before you include any headers from haxe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants