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

Hope tbox supports more compilation tools #265

Closed
WangZhongDian opened this issue Sep 15, 2024 · 5 comments
Closed

Hope tbox supports more compilation tools #265

WangZhongDian opened this issue Sep 15, 2024 · 5 comments

Comments

@WangZhongDian
Copy link

Current situation

I'm not sure if tbox can only be integrated through xmake, but when I installed it using xmake source code and tried to compile a demo using gcc, I got the following error

/bin/ld: /tmp/ccgXEPCN.o: in function `main':
main.c:(.text+0x28): undefined reference to `tb_init_'
/bin/ld: main.c:(.text+0x51): undefined reference to `tb_trace_done'
/bin/ld: main.c:(.text+0x56): undefined reference to `tb_exit'
collect2: error: ld returned 1 exit status

However, the installation documentation was compiled and used with xmake to obtain the correct results

platform

  • ubuntu24.04
  • x86-64

Installation command

xmake
xmake install

hope

  • I hope it can be installed directly on the system, compiled and linked directly for use
  • If possible, I hope to support Conan

Finally, thank you very much for your efforts and dedication

@waruqi
Copy link
Member

waruqi commented Sep 15, 2024

you need add -ltbox flags to linker. I don't know how do you use it in your project.

@WangZhongDian
Copy link
Author

@waruqi
截图 2024-09-15 20-44-42

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@waruqi
截图 2024-09-15 20-44-42

@waruqi
Copy link
Member

waruqi commented Sep 15, 2024

-lm

@WangZhongDian
Copy link
Author

Thank you very much, you can now work normally.

@waruqi waruqi closed this as completed Sep 15, 2024
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

3 participants