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

Can't build for the C++ target #58

Open
LostBranch5502 opened this issue Sep 10, 2023 · 0 comments
Open

Can't build for the C++ target #58

LostBranch5502 opened this issue Sep 10, 2023 · 0 comments

Comments

@LostBranch5502
Copy link

I'm trying to test whether I could get a small sample program working across the Ammer targets I would need. I've been able to compile and run the code on Neko and Hashlink, but building the same Ammer library fails on C++ with the error message:

Link: Main
/usr/bin/ld: obj/linux64/9e7162b5_CoreExtern_ammer_adder.o: in function `ammer::externs::__CoreExtern_ammer_adder_obj_hx__ammer_core__62DBCB88_ammer_adder_3D5DF277(Dynamic const&, Dynamic const&)':
CoreExtern_ammer_adder.cpp:(.text+0x3b0): undefined reference to `add_numbers'
/usr/bin/ld: obj/linux64/9e7162b5_CoreExtern_ammer_adder.o: in function `_ammer_core__62DBCB88_ammer_adder_3D5DF277(int, int)':
CoreExtern_ammer_adder.cpp:(.text+0x5b5): undefined reference to `add_numbers'
/usr/bin/ld: obj/linux64/9e7162b5_CoreExtern_ammer_adder.o: in function `ammer::externs::CoreExtern_ammer_adder_obj::_hx__ammer_core__62DBCB88_ammer_adder_3D5DF277(int, int)':
CoreExtern_ammer_adder.cpp:(.text+0x6e5): undefined reference to `add_numbers'
collect2: error: ld returned 1 exit status
Error: Build failed

Please find attached the zip file AmmerAdderExample.zip with the minimal example I'm trying to compile. It is based on the old Adder POC sample, but it's possible that I have not updated everything correctly. Compiling the program follows the instructions of the original POC sample.

I'm using the master version of ammer (commit c5ce5b3) and the dev version of ammer-core (commit Aurel300/ammer-core@59ddd7b), as the current ammer-core master version did not work with ammer.

Various other program versions I'm using which might be relevant:

  • Haxe: 4.3.1
  • Hashlink: 1.13.0
  • HXCPP: 4.3.2
  • OS: Ubuntu Linux 20.04
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

1 participant