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

How to Build on Windows #11

Open
dwvisser opened this issue Oct 18, 2023 · 0 comments
Open

How to Build on Windows #11

dwvisser opened this issue Oct 18, 2023 · 0 comments

Comments

@dwvisser
Copy link

I am trying to build libfec on Windows using “Build Tools for Visual Studio” and running Visual Studio Code with the C/C++ Extension Pack and CMake Tools. It just doesn't build for me. Here is the start of the long list of compiler warnings and errors I get when trying to compile the fec target:

[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,66): error C2061: syntax error: identifier '__attribute__' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,66): error C2059: syntax error: ';' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,90): error C2143: syntax error: missing ')' before 'constant' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,90): warning C4255: 'aligned': no function prototype given: converting '()' to '(void)' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,92): error C2059: syntax error: ')' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,93): error C2059: syntax error: ')' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(14,94): error C2059: syntax error: ')' [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(49,17): error C2065: 'Branchtab27': undeclared identifier [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(49,16): error C2109: subscript requires array or pointer type [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(50,17): error C2065: 'Branchtab27': undeclared identifier [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]
[build] C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\viterbi27_port.c(50,16): error C2109: subscript requires array or pointer type [C:\Users\dvisser\Documents\Tasks\FABRIC\libfec\build\fec.vcxproj]

Another clue: libraries like getopt.h are not found by the check_include_file test. If anyone out there knows the secret sauce to get this to work, please let me know.

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