Giter VIP home page Giter VIP logo

hx.module.test's Introduction

Requirements

I started following this guide: http://www.wighawag.com/blog/2014/12/Hxcpp-extern

And compiled hxcpp by doing:

D:\HaxeToolkit\haxe\lib\hxcpp\3,2,37\project
neko build.n -debug -DABI=-MTd

Build

Steps to build:

cd promohx
haxe build.hxml

This will generate the static lib of the haxe module in promohx/out/cpp/module/libPromoHx-debug.lib

CPP Side

We can either use cmake to generate a Visual Studio project.

Update the Hxcpp lib path in project/CMakeLists.txt and then run:

cd project/build
cmake ..

or we can call the compiler directly. Update the Hxcpp lib path in project/runTest.bat and then run

cd project
runTest.bat

Current Errors

Error	6	error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Object::__Field(class String const &,bool)" (?__Field@Object@hx@@UAE?AVDynamic@@ABVString@@_N@Z)	D:\Projects\Code\hx.module.test\project\build\haxetest.obj	PromoHxTest
Error	7	error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Object::__SetField(class String const &,class Dynamic const &,bool)" (?__SetField@Object@hx@@UAE?AVDynamic@@ABVString@@ABV3@_N@Z)	D:\Projects\Code\hx.module.test\project\build\haxetest.obj	PromoHxTest
Error	8	error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Anon_obj::__Field(class String const &,bool)" (?__Field@Anon_obj@hx@@UAE?AVDynamic@@ABVString@@_N@Z)	D:\Projects\Code\hx.module.test\project\build\haxetest.obj	PromoHxTest
Error	9	error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Anon_obj::__SetField(class String const &,class Dynamic const &,bool)" (?__SetField@Anon_obj@hx@@UAE?AVDynamic@@ABVString@@ABV3@_N@Z)	D:\Projects\Code\hx.module.test\project\build\haxetest.obj	PromoHxTest
Error	10	error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall cpp::IteratorBase::__Field(class String const &,bool)" (?__Field@IteratorBase@cpp@@UAE?AVDynamic@@ABVString@@_N@Z)	D:\Projects\Code\hx.module.test\project\build\haxetest.obj	PromoHxTest
Error	11	error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::ArrayBase::__Field(class String const &,bool)" (?__Field@ArrayBase@hx@@UAE?AVDynamic@@ABVString@@_N@Z)	D:\Projects\Code\hx.module.test\project\build\haxetest.obj	PromoHxTest
Error	12	error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Class_obj::__Field(class String const &,bool)" (?__Field@Class_obj@hx@@UAE?AVDynamic@@ABVString@@_N@Z)	D:\Projects\Code\hx.module.test\project\build\haxetest.obj	PromoHxTest
Error	13	error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Class_obj::__SetField(class String const &,class Dynamic const &,bool)" (?__SetField@Class_obj@hx@@UAE?AVDynamic@@ABVString@@ABV3@_N@Z)	D:\Projects\Code\hx.module.test\project\build\haxetest.obj	PromoHxTest
Error	14	error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::EnumBase_obj::__Field(class String const &,bool)" (?__Field@EnumBase_obj@hx@@UAE?AVDynamic@@ABVString@@_N@Z)	D:\Projects\Code\hx.module.test\project\build\haxetest.obj	PromoHxTest
Error	15	error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Interface::__Field(class String const &,bool)" (?__Field@Interface@hx@@UAE?AVDynamic@@ABVString@@_N@Z)	D:\Projects\Code\hx.module.test\project\build\haxetest.obj	PromoHxTest
Error	16	error LNK2001: unresolved external symbol "public: virtual class Dynamic __thiscall hx::Interface::__SetField(class String const &,class Dynamic const &,bool)" (?__SetField@Interface@hx@@UAE?AVDynamic@@ABVString@@ABV3@_N@Z)	D:\Projects\Code\hx.module.test\project\build\haxetest.obj	PromoHxTest
Error	17	error LNK1120: 11 unresolved externals	D:\Projects\Code\hx.module.test\project\build\Debug\PromoHxTest.exe	PromoHxTest

hx.module.test's People

Contributors

bmfs avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.