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

Compile Error #738

Closed
baikaishiuc opened this issue Apr 24, 2023 · 3 comments
Closed

Compile Error #738

baikaishiuc opened this issue Apr 24, 2023 · 3 comments

Comments

@baikaishiuc
Copy link

baikaishiuc commented Apr 24, 2023

I build with box64 with Debug Type on Arm64 CPU

but rebuild box64 with -DCMAKE_BUILD_TYPE=RelWithDebInfo is success

[ 99%] Building C object CMakeFiles/box64.dir/src/wrapped/wrappedicui18n72.c.o
[100%] Linking C executable box64
/usr/bin/ld: CMakeFiles/box64.dir/src/wrapped/generated/wrapper.c.o: in function `xFx':
/home/doraemon/source/box64/src/wrapped/generated/wrapper.c:2601: undefined reference to `to_complexf'
/usr/bin/ld: /home/doraemon/source/box64/src/wrapped/generated/wrapper.c:2601: undefined reference to `from_complexf'
/usr/bin/ld: CMakeFiles/box64.dir/src/wrapped/generated/wrapper.c.o: in function `XFX':
/home/doraemon/source/box64/src/wrapped/generated/wrapper.c:2602: undefined reference to `to_complex'
/usr/bin/ld: /home/doraemon/source/box64/src/wrapped/generated/wrapper.c:2602: undefined reference to `from_complex'
/usr/bin/ld: CMakeFiles/box64.dir/src/wrapped/generated/wrapper.c.o: in function `xFxx':
/home/doraemon/source/box64/src/wrapped/generated/wrapper.c:2801: undefined reference to `to_complexf'
/usr/bin/ld: /home/doraemon/source/box64/src/wrapped/generated/wrapper.c:2801: undefined reference to `to_complexf'
/usr/bin/ld: /home/doraemon/source/box64/src/wrapped/generated/wrapper.c:2801: undefined reference to `from_complexf'
/usr/bin/ld: CMakeFiles/box64.dir/src/wrapped/generated/wrapper.c.o: in function `XFXX':
/home/doraemon/source/box64/src/wrapped/generated/wrapper.c:2802: undefined reference to `to_complex'
/usr/bin/ld: /home/doraemon/source/box64/src/wrapped/generated/wrapper.c:2802: undefined reference to `to_complex'
/usr/bin/ld: /home/doraemon/source/box64/src/wrapped/generated/wrapper.c:2802: undefined reference to `from_complex'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/box64.dir/build.make:4292: box64] Error 1
make[1]: *** [CMakeFiles/Makefile2:342: CMakeFiles/box64.dir/all] Error 2
@ptitSeb
Copy link
Owner

ptitSeb commented Apr 24, 2023

Those functions are inline and define inside wrapper.c. This file is generated so be sure to have latest one.

@ptitSeb
Copy link
Owner

ptitSeb commented Apr 24, 2023

Also, I have pushed a small change to make those function static inline instead of just inline, that might help.

@baikaishiuc
Copy link
Author

Also, I have pushed a small change to make those function static inline instead of just inline, that might help.

thanks, After I pull the latest code, the Debug version can be compiled successfully.

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