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

Build process fails on MacOS #26

Closed
wbenoot opened this issue Jul 7, 2023 · 2 comments
Closed

Build process fails on MacOS #26

wbenoot opened this issue Jul 7, 2023 · 2 comments

Comments

@wbenoot
Copy link

wbenoot commented Jul 7, 2023

Host OS: macOS Ventura 13.4
Compiler: AppleClang 14.0.3

The build process fails at pi2_bpsk.cc due to

error: implicit conversion from '_Complex double' to 'float' is not permitted in C++

Regarding the following lines:

Line 26: (SQRT2_2 + SQRT2_2i), // bit 0
Line 27: (-SQRT2_2 - SQRT2_2i) // bit 1
Line 32: (-SQRT2_2 + SQRT2_2i), // bit 0
Line 33: (SQRT2_2 - SQRT2_2i) // bit 1
Line 58: (SQRT2_2 - SQRT2_2i), // rotation factor for even indexes
Line 59: (-SQRT2_2 - SQRT2_2i) // rotation factor for odd indexes
Line 185: (SQRT2_2 - SQRT2_2i), // rotation factor for even indexes
Line 186: (-SQRT2_2 - SQRT2_2i) // rotation factor for odd indexes

@wbenoot
Copy link
Author

wbenoot commented Jul 7, 2023

Managed to get passed this error by using gcc-13 instead of the default compiler, did not find a way to fix the casting to build using AppleClang

@wbenoot
Copy link
Author

wbenoot commented Jul 7, 2023

Fixed all my compilation issues in: #28

@wbenoot wbenoot closed this as completed Jul 7, 2023
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